Count how many of specific item in inventory

Started by PuppyOfProdigy on Thu, 09/12/2019 - 00:08

Topic category: Help with MCreator's application

Last seen on 00:17, 30. Sep 2019
Joined Sep 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Count how many of specific item in inventory
Thu, 09/12/2019 - 00:08

I want the lapis sword im making to count how much lapis is in your inventory, then divide it, then round it and add it to looting value.

The question im asking is how to make it count how much lapis is in your inventory

I can't say something that…
Fri, 09/13/2019 - 04:03

I can't say something that specific can be done without programming, but you could have it where your sword can be upgraded and with every tier it is upgraded add a looting value.

Make a trigger of when the item is crafted it adds an enchant of looting, and you can set the looting per tier. The tiers will have to be separate items though.

 

picture of example