Started by
Nikola Z
on
Topic category: Help with Minecraft modding (Java Edition)
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.))
Edited by Nikola Z on Sun, 02/04/2024 - 09:36
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.