Topic category: Advanced modding
I'm trying to make an item, which when clicked gives only effects to nearby mobs, not to players. But the only way I found it to do this was with a procedure that runs a command:
effect @e [type =! Player, r = 5] slowness 30 255.
And who runs the command is the player, so, if the player does not have permissions and try to use the item, it can not. So, is there any way I can do what I want other than with commands, or make it not the player that runs the command?
I used google translate, so sorry for the bad english.