This is for my luck duel mini game.
Search up “random number generator”, build the machine, and for each channel output, make an item granter that grants whatever you want (that receives on that channel)
A RNG system.
Have the channels to code transmits on have item granters grant you different things.
That surely is the most confused guide ever + it is memory consuming for my game. I wish there’s one that is much simple to understand
You can do this:
(trigger block code)
Broadcast on channel: create text with: "randomchannel"
: random integer from [1] to [5]
(item granter settings)
item granted: [stuff]
grant when receiving on channel: “randomchannel#”
where # is the number (from 1 to 5)
yes
So now I just need to place a bunch of item granters down then let it do the work?
What do i code/ build if i want the item granted to be Quantum Portal, Sling Shot, Stone Burster, Time keeper, and twister and these items you get from teleporting
You’ll need 5 (or more if you need more items) item granters: set one of them to grant quantum portal and receive on channel “randomchannel1”, set another to grant slingshot and receive on channel “randomchannel2”, and so on
same code Broadcast on channel: create text with: “randomchannel”
: random integer from [1] to [5] or edited
Yes, but change the [5] to the number of item granters you have / the number of different items you want to grant
thanks testing it rn
where to put code i have only blocks?
You put it in a block (I stated it before; the trigger code goes in the trigger “on trigger” block)
And the item granter settings are the settings for the item granter device [1]
duh ↩︎
sorry im new at blocks, so it’s really hard for me to understand. Thanks for your patience.
Wait so can we make a crafting table and make the block code or we still need the item granter?
do I use any wires with the triggers, item granters, teleporter if I want the player to receive when teleported? Thanks again
I don’t think it would work with a crafting table because it can’t choose a random recipe
No, the channels given are enough
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.
