how to make it so that when a player with a custom effect drinks a bucket of milk, he dies?

Started by MrBebra21 on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Aug 2022
Points:
388

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
how to make it so that when a player with a custom effect drinks a bucket of milk, he dies?

how to make it so that when a player with a custom effect drinks a bucket of milk, he dies? 

Active 3 months ago
Joined Sep 2021
Points:
978

User statistics:

  • Modifications: 0
  • Forum topics: 77
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 118
You could make a procedure…
Mon, 01/22/2024 - 16:46

You could make a procedure that detects when a player finishes using an item, and then check if the player has the custom effect, and if so then kill them.

 

If you want to make a custom death message, you can use the new Damage Type element in MCreator 2023.4.

 

If you want, i could send you either a picture of the procedure, or the procedure itself.