Started by
DavidZar
on
Topic category: Help with MCreator software
I'm making a mod situated around radioactive materials.
I can't figure out how to check for a specific amount of a specific item in the players inventory.
For example:
64 diamonds
6 stacks and 24 iron ore
All I really want is a simple bit of code that will test how many beacons the player has every tick and output the amount in chat, and just the amount.
Pretty much just this:
every tick
check how many beacons the player has
sent however many beacons the player has
If I get that I can go from there, thanks!
When I said "a simple bit of code" I either mean the block code MCreator uses, or something in "Advanced/Custom code snippet:"
If there's another way of doing this I don't know of I'll do that as well, at this point I will literally do anything to check for a specific amount of items in the players inventory!
Hi DavidZar!
Have you find a way to fix your problem? I've been trying to make a mod and I ran into the same barrier you have.
How did you manage to solve it?
Thanks!
I have this problem too
Not sure if this is what you're looking as I did it in block code and it sounds like your doing proper code but this is a video on how to do it with block code which I hope should give you a general idea on how it should work with code :)
https://www.youtube.com/watch?v=gfINcKSsfCs&feature=youtu.be
Hello, I tried to use your video, but it wouldn't let me put Source Entity (or Event/target entity, like you did) in the "Get a copy of item from slot "loopnumber" of ____ if it has inventory".