Started by
chaoticDreemur
on
Topic category: Help with Minecraft 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!
you dont need to set green starter. It works when you put it in "When mob hit with tool". Try setting it in "no additional trigger" at green starter
I did that and the game still crashes
Update: everything custom crashes the game. Smelting the new ore crashes the game, using the swords crashes the game. The only thing that doesn't is crafting.