Started by
ObscureBackdrop
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make an item that when right-clicked adds slowness and mining fatigue to an entity that has a custom potion effect, but I can't get the program to target the mob that is affected by the custom potion effect.
have you tried:
Get Entity Iterator in block radius 20
if Entity Iterator has Active Potion Effect: YOUR_EFFECT
do Set Potion Effect TIME to Entity Iterator type: YOUR_EFFECT
else
do Send Message "No Entity Was Found" to Source Entity Show In Action Bar: True/False
and what if i want an entity to attack the player who has a diamond in his inventory? What conditions do i need?
well what you could try is set entities damage to default 0, and on a trigger that checks if the entity attacked a player, If player has Diamond in inventory, deal NUMBER_OF_DAMGE to player