Topic category: Help with modding (Java Edition)
I am trying to add custom weapons (mostly swords) to the game. The problem is when testing the mod in-game, it crashes the second the custom weapon touches an entity. I don't know what is wrong but what I did to deal damage to an entity is
I went into "When mob is hit with tool"
and then when it loaded the code blocks, I set the green starter one to "Entity Attacked"
and then added a block from the entity section labeled as: Deal __ damage to provided entity and set it to 4.
If anyone could help me, that would be very appreciated!
Thanks in advance!