• Hey! Register here to create your account, engage with the community, and talk about what is new!

How do I make the SetBlock randomly choose a block to place?

Swoofix

New member
Joined
Feb 21, 2022
Messages
4
Reaction score
0
How do I make the SetBlock randomly choose a block to place or randomly between blocks of my choosing? I have been stuck on this for the past day and i can't figure it out or if its even possible right now. sorry if this is worded badly ;-;
 

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,226
Reaction score
347
you can store the blocks with a list.
so, create a List with the items you want, then whenever you want to place a random block just Randomize the list, get the 1st value of the list using Get Value At Index and place the set block after it. for the Set Block item, just put the variable of the Get Value At Index at the 1st slot and it should work.
 

Swoofix

New member
Joined
Feb 21, 2022
Messages
4
Reaction score
0
The SetBlock keeps setting it as nothing/air even though I followed your steps! I'm not sure where I went wrong :(
 
Top Bottom