Topic category: Help with modding (Java Edition)
Hello! I would be very happy if you could help me with a few of the difficulties described below, thank you in advance!
1) Let's say I have a certain weapon that can deal critical damage with a certain chance, I would like to make it so that the player can put on special armor that increases the probability of damage to certain weapons, how can I implement this ?
2) Let's say I have a certain weapon, I would like to make it so that when dealing damage to an enemy creature , an effect is applied to me(the player), only when I hold this weapon, if I don't hold it, the effect is removed , how could I implement this ?