Started by
molioron123
on
Topic category: Help with Minecraft modding (Java Edition)
Hey,
So i have created a gui (using the node based codes) where players can input cash (item), and the mod will transfer it to emeralds. it looks something like this:
Event trigger(button in gui)
{
setItemInSlot(numbers of items in slot [2] of inventory [inherited] [(number of items)] , emerald [(item type)] , [3] [(slot)])
clearSlot(2)
}
the button works (used text debugging), slots are correct, but nothing happens,
Thanks.
You need to use block-based slot management procedures, inherited inventory from the block and binds slot to this inventory. Check this tutorial: https://www.youtube.com/watch?v=qdGJY7ljujM
Thanks.