Started by
CristianLN
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make a block (ex: diamond block) when broken to have a random chance to summon a mob (ex: creeper).
Topic category: Help with Minecraft modding (Java Edition)
I want to make a block (ex: diamond block) when broken to have a random chance to summon a mob (ex: creeper).
//This procedure has a 50% chance to spawn a creeper when breaking a diamond block
global trigger(on block broken){
if(convert block to item(get block at x y z) == diamond_block){
if(random between 0 and and 1 > 0.5){
spawn mob at x y z type creeper
}
}
}
Thanks
I'm trying to do the same but two of the same mob will come out of the block 100% of the time, but I can't find a procedure that lets me spawn entities.