Hello. I'm trying to make an item that, when it hits a creature, will execute a command from that creature and will be removed from the attacker's inventory. I tried to add a procedure to this item, but when I do, an error appears. This is a test item
Снимок экрана 2023-09-03 в 19.16.40
.png
Download PNG • 21KB
Снимок экрана 2023-09-03 в 19.17.20
.png
Download PNG • 80KB
You will need a global trigger "entity attacked" You will also need to test for the player in your condition. The procedure needs to be set up like below on a global procedure with no element trigger. https://imgur.com/a/8SR8xek