Upgradeable weapon damage.

Started by 6hertz on

Topic category: Help with modding (Java Edition)

Last seen on 08:22, 24. Oct 2020
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Upgradeable weapon damage.

I was wondering if there was a way to make it so I could have a weapon that increases in damage if I have a certain item in my inventory. An example of this would be if I had a diamond sword, I could have diamonds in my inventory and the damage of the diamond sword would increase. I have been looking for how to do this for about an hour now and can't seem to find anything. 

Last seen on 01:48, 23. Aug 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could make another item,…
Tue, 10/20/2020 - 18:57

You could make another item, then make a procedure for the less powerful version where it detects f the item is in the person's inv, and another one for the more powerful version that senses if it isn't in their inventory

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use item NBT data. When the…
Mon, 10/26/2020 - 08:26

Use item NBT data. When the sword hits an entity deal the NBT data damage to the entity.

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
IF entity holding diamond…
Tue, 10/27/2020 - 08:48

IF entity holding diamond_sword AND inventory has diamond, add potion effect Strength