How do I make a block poison you when you touch it?

Started by PONNY3DU on

Topic category: Help with modding (Java Edition)

Last seen on 20:23, 23. Feb 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a block poison you when you touch it?

Hey guys, so I was planning on a mod based on poisonous stuff, and then I came to a realization that I do not know how to make a block poison you. can someone show me for solid blocks and pass-through blocks?

Last seen on 22:45, 23. Mar 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
All you need is to make a…
Sun, 02/25/2024 - 01:25

All you need is to make a trigger on When entity collides into block or entity walks on block. Then just the Just add potion effect. the level of the effect is +1, so for Level 2 you would place a 1 in the level slot. then ticks is seconds times 20.