Poisonous injection. PLS somebody help!

Started by Nikola Z on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Poisonous injection. PLS somebody help!
Sun, 02/04/2024 - 09:36 (edited)

Hello! I want to make an mod with something like an injection. That when is rightclicked on silverfish to get poison from the silverfish. I know the problem, but I dont know how to solve it. Can someone HELP ME? Pls? :(         (The procedure is "when is right clicked entity (entity pos.))

Code

Edited by Nikola Z on Sun, 02/04/2024 - 09:36
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't see the image- you…
Mon, 02/12/2024 - 12:58

I can't see the image- you need to upload it somewhere else and then copy the URL to display it here.

The proper way to do this would be to make one item with an NBT tag that keeps track of the amount of poison it contains, and item properties to change the texture based on this tag. The substantially easier way to do this is to make one item for empty, another item for full, and a procedure that swaps the two when the player right clicks on a silverfish.