How do I make a block that you can walk through, but also hurts you?

Started by TheSheepishOne on

Topic category: Help with modding (Java Edition)

Last seen on 23:28, 11. Sep 2024
Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a block that you can walk through, but also hurts you?

So I’m trying to make a air block that slowly damages you while you stand inside it. Does anyone know how I’d code this?

Last seen on 15:42, 17. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
basically in block…
Wed, 09/11/2024 - 14:09

basically in block properties you enable "walk through the block" and make a procedure in the "trigger" section with trigger "when entity collides in the block". Then in the procedure you define the effects you want to give to the entity standing in it.