Item duplicator

Started by Goib on Tue, 03/23/2021 - 11:57

Topic category: Help with MCreator software

Last seen on 13:29, 5. May 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Item duplicator
Tue, 03/23/2021 - 11:57

 I've been trying to make a mod where you can duplicate items using a block and a GUI element, with some kind of energy. I want the system to be modular, so it can duplicate and reproduce any item.

 The solution i planned for this was getting the tag of the item in the slot (Ex: "minecraft:obsidian"), subtracting the energy and adding the item in the output slot.

 The problem is: i can't seem to find a way to get the item tag of the items in the slot. And also, i don't see any way of creating/adding the item to the output slot just using it's item tag.

 Any help would already be amazing. I've been stressing overe this for the past 2 days, so i figured i would post this here. Anyways, have a good morning!

Last seen on 17:01, 6. May 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Couldn't you use the grow…
Tue, 03/23/2021 - 12:45

Couldn't you use the grow itemstack?

Last seen on 13:29, 5. May 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
 I figured it out!  First…
Tue, 03/23/2021 - 14:03

 I figured it out!

 First off, thank you Pickle for giving me some ideas on how to solve this.

 What i did was:

-Use the "set item" procedure block in the Slot & GUI procedures.

-Then, in the quantity, i got the number of items in the GUI slot for the output + 1.

-For the item itself, i made a copy from the item in the item slot.

 I'm very happy i managed to solve this. Have a good morning, everyone!