Upgradeable weapon damage.

Started by 6hertz on Mon, 10/19/2020 - 04:30

Topic category: Help with modding (Java Edition)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Upgradeable weapon damage.
Mon, 10/19/2020 - 04:30

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 23:18, 21. Nov 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 19:50, 25. Nov 2020
Joined Nov 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 16:25, 25. Nov 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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