Started by
AppleMod
on
Topic category: Help with Minecraft modding (Java Edition)
So I have created a GUI with 1 slot in it, and a block that opens the GUI when right clicked. How do I attach a loottable or item to spawn in the slot?
Topic category: Help with Minecraft modding (Java Edition)
So I have created a GUI with 1 slot in it, and a block that opens the GUI when right clicked. How do I attach a loottable or item to spawn in the slot?
Try searching on youtube for videos. If I understand what you are trying to do or the general idea, this video may help you: https://www.youtube.com/watch?v=B5l9B7Kwhfk
This helps, but I'm trying to make the item that spawns in the block randomized. I'm assuming I need to make a variable? How would I go about doing that?
If random 0-1= X= item 1
If random 0-1 = Z= item 2
Etc.
I would like to clarify this should probably be else blocks not just a ton of ifs
I would like to clarify this should probably be else blocks not just a ton of ifs
Sorry, I don't know if I'm understanding this right. I tried putting the Random [0,1] block in the Set 1 blank in slot 0 of gui...
What am I doing wrong?
Here's the complete code for 2 items
If | Random 0,1 | > | 0.5
Set item in slot 1 to (item)
Else
Set item in slot 1 to (item2)
That should give you the idea
So I see the little gear on the if block, when I click it, else shows up. I can't drag else onto the desktop or click it? I'm sorry how do I make an else block?
You drag else onto the if block WITHIN the little gear