Item Generator

Started by MrCheeseToastie on

Topic category: Help with MCreator software

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item Generator

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

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You might want "Set [[get…
Sat, 06/24/2023 - 16:10

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.

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm struggling to find "Set …
Sat, 06/24/2023 - 16:40

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

 

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry for the confusing…
Sat, 06/24/2023 - 16:44

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

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you show me a screen…
Sat, 06/24/2023 - 17:05

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 

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry for the late, and…
Thu, 07/13/2023 - 14:17

Sorry for the late, and unhelpful reply:  I don't use any image hosting websites so I can't post screenshots on this forum.