Count how many of specific item in inventory

Started by PuppyOfProdigy on

Topic category: Help with MCreator software

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Count how many of specific item in inventory

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

Last seen on 09:13, 24. Nov 2020
Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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