Potion Trouble

Started by TerraformKing on

Topic category: Advanced modding

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Joined Jan 2024
Points:

User statistics:

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

oh ok i'll try that

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.