Started by
UtahPlaysYT
on
Topic category: General discussion
is there a way that i could make it when i break a block it drops something different every time such as it would drop cobblestone and then when you break the same type of block it would drop a bone block or is this not possible yet?
This is possible, use procedures.
If: [Random number 0,1] = [0.5]
Do: [Spawn Gem at x y z (item)]
This procedure has a 50% chance of dropping the chosen item. To change the percentage, change the number. (40% = 0.4)
(3% = 0.03)
thanks would this be possible with more then 2 item drops?
Yes, just duplicate the “if do” block.
(Keep in mind, that if you do that there is a chance of it dropping both, if you don’t want it to drop both but still with the chance of one of them dropping, tell me)
what have i done wrong as its not dropping either of the drops i have selected.
event - triggered by external call or when (global trigger): a block is broken
if random [0,1} = 0.5
do Spawn gem fossil at x: x y: y z: z
Spawn gem fossil at x: x y: y z: z
btw they are two different fossils
Can you show an image of the procedure? (Use Imgur)
Just in case here is the link:
https://imgur.com/RCNtNI0
1. There should be no global trigger, just the "When Block Destroyed by Player" trigger that is chosen within the block creator itself.
2. I meant that you have another if procedure that has the other drop
3. Keep in mind that this will drop with a 50% chance, and wont happen each time
so like this im not quite sure i understood what you said but is this right
https://imgur.com/a/0ffpY8i
Yes that is correct, just make sure that it is triggered from inside the block creator.
its on when block destroyed by player but the its just dropping the block itself and not the custom drops
Set the block drop to 0.
um now its not dropping anything