So I am making a 'Dropper' type of block for my mod. Therefore meaning I would like to take an item from the block's inventory and drop it on the ground in front of said block. However there has been a small issue of that when I activate the procedure of Spawning a Gem and get a "Copy of item" from the block's slot, example: slot 0. It gets the copy of the item from slot 0, and it drops that item, however it seems to drop it... but also the amount of that itemstack from that slot. So basically I want it to just drop ONE item, not drop and duplicate the amount in that stack when spawning it.
MCreator issue tracker has been migrated to GitHub.
Existing tickets have been migrated to GitHub. Please open new tickets on the GitHub tracker instead. If you do not have a GitHub account, all feature requests and bug reports from forums are still considered and checked by the maintainers.
"Spawn Gem" Procedure Duplicates Amount of "Get copy of item from slot (X)"
Status
Resolved
Issue description
Use local variable of type itemstack.
Set the var to "get itemstack copy from slot n"
Set itemstack size to 1 of this local var.
Spawn gem of this local variable itemstack instead.
Also read the tracker rules: