How to give effect to entity when they walk on the plant

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 to give effect to entity when they walk on the plant

I want to make a mushroom that give nausea and poison to entity when walking on it ( i mean touching).

How can I make that?

Thanks for help.

Last seen on 02:14, 20. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a procedure trigger for…
Sat, 12/03/2022 - 18:34
  • Make a procedure trigger for your custom plant that triggers when the entity collides inside it. (Or, make a procedure that triggers on loaded entity tick, and checks if the entity is inside your custom plant.) 
  • You may want to specify which entities are effected, if you don't want monsters or animals to be poisoned by it. You can do this with the logic tab.
  • When your procedure triggers, use a 'add potion effect,' then add whatever duration and power you want. (Keep in mind that 'level 0' of a potion is the basic level- if you up it to level 1, it will give Poison II.) You'll need one block per potion effect- you can also use random integer blocks to randomize the duration of the effect.
Last seen on 13:41, 8. Nov 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If I want to effect all…
Sun, 12/04/2022 - 02:41

If I want to effect all entity types ( even player, all vannila mob in game), what should I do?