Potion Trouble

Started by PacificCyan CH… on

Topic category: Advanced modding

Active 4 months ago
Joined Jan 2024
Points:
204

User statistics:

  • Modifications: 1
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 81
Potion Trouble

I am trying to get a procedure that detects if the item in the main hand of the player is a lingering potion of poison,

 how can i do this.

Active 4 months ago
Joined Jul 2017
Points:
1025

User statistics:

  • Modifications: 1
  • Forum topics: 16
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 480
something with checking nbt…
Thu, 07/04/2024 - 16:54

something with checking nbt tags. try using the /data command in game on your inventory to see which nbt tags store which potion effect it is and whether it's lingering splash or drinkable. or look on the minecraft wiki. keep doing testing. idk.

Active 4 months ago
Joined Jan 2024
Points:
204

User statistics:

  • Modifications: 1
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 81
oh ok i'll try that
Thu, 07/04/2024 - 18:14

oh ok i'll try that

Active 6 months ago
Joined Oct 2023
Points:
304

User statistics:

  • Modifications: 1
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 274
I think if you lock the code…
Sun, 07/07/2024 - 21:23

I think if you lock the code and go into it you can change the item it detects to the potion if you type it right. Not sure though.