How can I make a trap?

Started by Toibithieunang on

Topic category: Help with Minecraft modding (Java Edition)

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.

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.

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?

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.

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.

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