Started by
TinodoesMods
on
Topic category: Help with Minecraft modding (Java Edition)
i have a mob with a gui. the gui should let you insert an item, and in return will give you one of a group of items under a tag. once you take the item it gives, the item you gave is spent. ive spent ages trying to wrap my head around this, yet to no prevail. does anyone have an idea?
you can make it so that when it detects an item in the input slot it generates a random number which corresponds to an item and is in the output slot and have a procedure that detects whether the item is taken from the output slot and if so it clears the input slot
ive tried that, but what i need is a break between items, for example; diamond, wait 5 seconds, emerald, wait 5 seconds, so on and so forth
just copy TheSpaceLeader_2's idea and just add wait 300 ticks on server side, or, here's a work around if it's on the client, since a while True does every tick, make a timer, once it reaches your desired amount of ticks(for you it would be 300), break loop