Item duplicator

Started by Goib on

Topic category: Help with MCreator software

Active 3 years ago
Joined Mar 2021
Points:
540

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Item duplicator

 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!

Active 5 months ago
Joined Aug 2020
Points:
615

User statistics:

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

Couldn't you use the grow itemstack?

Active 3 years ago
Joined Mar 2021
Points:
540

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
 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!

Active 1 year ago
Joined Jan 2021
Points:
622

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 33
can you link a picture of…
Sun, 11/21/2021 - 01:49

can you link a picture of what you did, so others like me can use it?