Started by
Nikola Z
on
Topic category: Help with Minecraft modding (Java Edition)
Hi! I want to make something like an injection that when is right clicked on a silverfish to replace the injection to poisonous injection. I made a code, but it doesn't work. Can someone help me? (Sorry for bad english)
if player has item in main hand and right clicks, check entity is silverfish, if so, remove the old item and add new one.
or if you meant to give the silverfish poison, then just do that after checking where player is looking, or make it so you need to punch it.
use raytrace distance.