Started by
BlazingGreenFire
on
Topic category: Help with Minecraft modding (Java Edition)
Hello so in my mod I have a dimension and an item. What I am trying to do is make it so that when I hit an entity (player or mob) with my custom specific item, it will teleport that entity to the custom dimension I choose and to break the item I hit them with. The item is a scroll and the idea is basically that I hit them with the scroll of banishment, and they are teleported to the dimension, leaving some particles behind, and the scroll breaks.
entity is hurt global trigger
if item in main hand of source entity = scoll
do switch dimension of event target entity to: DIMENSION
remove 1 SCROLL from source entity main inventory
spawn particles at X Y Z with speed 1 VX 0 VY 0 VZ 0 type: PARTICLES
Hey so I did that, the only thing I'm unsure if I did correctly was the global trigger but anyways, I tested it, and I had to hit the entity a few times with my scroll and didn't get teleported and the scroll didn't break but it showed the particles but then after a few hits *I* got teleported to the dimension, and I'm not sure if the scroll broke since I crashed when it teleported me to the dimension, probably a problem with my dimension but yeah, here's what I did
No No No, follow my procedure as it is, put everything inside the if statement, the if statement needs to be source entity and remove block needs to be source entity too
Is source entity different from event/target entity? Because when I search I can't find "source entity", do you know what section it's in?
also was my global trigger correct?
it is on minecraft components
also no it is not. entity is hurt, not before entity is hurt
I mean it could work the trigger too, but to avoid bugs use entity is hurt
Ohk I found the source entity thing but there is no option to set the global trigger to "entity is hurt", "entity is healed" and "entity is tamed"
Btw I appreciate your help on all my forums :)
only "entity is healed" and "entity is tamed"
entity is hurt is one of the first on entity triggers
those are all the options for me
at the beginning