How can I make a trap?

Started by Toibithieunang on

Topic category: Help with modding (Java Edition)

Last seen on 13:41, 8. Nov 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make a trap?

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.

Last seen on 17:00, 27. Mar 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Under "Triggers" there is an…
Sun, 01/01/2023 - 20:46

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.

Last seen on 13:41, 8. Nov 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But how to make my trap…
Mon, 01/02/2023 - 02:52

But how to make my trap slows entities and deals damage if the entites move?

Last seen on 15:34, 1. Mar 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
when your trap trigger is…
Wed, 01/04/2023 - 14:25

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.

Last seen on 13:41, 8. Nov 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Let me try, thak you.
Mon, 01/09/2023 - 11:44

Let me try, thak you.

Last seen on 12:17, 22. Mar 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could also try changing…
Mon, 01/09/2023 - 13:40

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

Last seen on 13:41, 8. Nov 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks!
Sat, 01/14/2023 - 10:44

Thanks!