Started by
Toibithieunang
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make a trap. When an entity passes through it, it slows the entity down and deals damage if the entity moves.
Help me please.
Thanks.
Topic category: Help with Minecraft modding (Java Edition)
I want to make a trap. When an entity passes through it, it slows the entity down and deals damage if the entity moves.
Help me please.
Thanks.
Under "Triggers" there is an option to add a procedure to "When entity collides in the block". This is the one you want to use your trap procedure on.
But how to make my trap slows entities and deals damage if the entites move?
when your trap trigger is true, add a potion effect "slowness" to the entity ("event/target entity") and for the damages there is already a block to do that in the same library as the first block.
Let me try, thak you.
you could also try changing the values "speed factor" and "jump factor" in the block editor. This allows you to make entities slower, as well as prevent them from jumping (think honey, with a jump factor of 0.6). you will still need a procedure for damage as far as I know, but this should help
Thanks!