I am trying to make it so that an item does more damage every time you hit something, what am I doing wrong?

Started by Hotdogbananaman on

Topic category: Help with Minecraft modding (Java Edition)

Active 11 months ago
Joined Aug 2022
Points:
415

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
I am trying to make it so that an item does more damage every time you hit something, what am I doing wrong?
Wed, 03/01/2023 - 00:57 (edited)

this is the code, but for some reason the number (the global variable) never goes up, what am I doing wrong? the version I am using is 2021.1 since every other version I try doesn't work

Edited by Hotdogbananaman on Wed, 03/01/2023 - 00:57
Active 11 months ago
Joined Aug 2022
Points:
415

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
(No subject)
Wed, 03/01/2023 - 00:56

Active 1 month ago
Joined Aug 2022
Points:
710

User statistics:

  • Modifications: 4
  • Forum topics: 30
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 246
In the item menu just choose…
Fri, 03/31/2023 - 11:29

In the item menu just choose durability, and make the stack size 1, you'll be good to go.

Active 4 months ago
Joined May 2023
Points:
260

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Can you explain how you did…
Thu, 05/11/2023 - 20:10

Can you explain how you did that global damageforblood thing please?

Active 11 months ago
Joined Aug 2022
Points:
415

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
I created a variable and…
Sat, 05/20/2023 - 01:22

I created a variable and made it global I think