Started by
MrCheeseToastie
on
Topic category: Help with MCreator software
Hi there!
I'm trying to make a one slot item generator (sort of like the cobblestone generator from SkyFactory) and I'm trying to figure out how to make it generate 1-64. I made it so it can generate 1 item at a time or 64 at a time but how would I make it add one item every so often?
My current update tick is:
Even Trigger
Set 1 (Item) in slot 1 of block at x: x y: y z: z if it has inventory
You might want "Set [[get number of items in slot[0]] + [1] (item) in slot [0] of block at x: [x] y: [y] z: [z] if it has inventory"
Use slot 0 instead of 1(to avoid crashes) and get number of items + 1(block data and math categories) to increase the amount of items instead of just replacing the 1 item.
I'm struggling to find "Set [[get number of items in slot[0]] + [1]" I can see "get item from slot 0 of block at x: x y: y z: z if it has inventory so if I add that then the "code" looks like:
Set - Get number of items from slot 0 + 1 of block at x: x y: y z: z if it has inventory - item - in slot 0 of block x: x y: y z: z if it has inventory
So now I'm confused lmao
Sorry for the confusing response, I meant to say "get number of item from slot 0 at X:X Y:Y Z:Z" all of that + 1 afterwards (get number of items goes in the first slot of the '+' math block and 1 goes in the second slot. That way you are increasing the number of items in slot 0 by 1
Could you show me a screen shot of what it would look like?
Sorry I understand what you're saying I'm just confused on the layout
Sorry for the late, and unhelpful reply: I don't use any image hosting websites so I can't post screenshots on this forum.