Cactuses is damaging you when you're breaking him. Endermens getting damage while carrying cactus block.
Кактусы наносят урон когда вы ломайти их. Эндермены получают урон когда держут блок кактуса в руках.
You can setting items with datapack :
1 - Create a default datapack structure https://minecraft.gamepedia.com/Data_Pack#Folder_structure
2 - Namespace name should be a damagingcactus
3 - Next need create a item tag with name damaging_items.json or excepting_items.json
4 - In result we get (worldname)/datapacks/(datapackname)/data/damagingcactus/tags/items/damaging_items.json or excepting_items.json
5 - Don't forget create a pack.mcmeta file in data folder like at link below!
6 - If you all done correct. Open game and enter /reload in chat
7 - Done!
Example Of Tag :
damaging_items.json


excepting_items.json
-If that tag have at least one item then all items will damaging unless item in this tag
Вы можете настраивать предметы с помощью датапака :
1 - Создайте стандартную структуру датапака https://minecraft.gamepedia.com/Data_Pack#Folder_structure
2 - Название именного пространства должно быть damagingcactus
3 - Далее нужно создать тег с именем damaging_items.json или excepting_items.json
4 - В результате получается (название мира)/datapacks/(название датапака)/data/damagingcactus/tags/items/damaging_items.json или excepting_items.json
5 - Не забудте создать pack.mcmeta файл в папке data как указана в ссылке ниже!
6 - Если вы всё сделали правильно. Откройте игру и пропишите /reload в чат
7 - Готово!
Пример Тега :
damaging_items.json


excepting_items.json
-Если этот тег имеет хотя бы один предмет - значит все предметы будут наносить урон кроме тех, кто в этом теге
Special Thanks : Will / Отдельное Спасибо : Will