Retrying when condition is false?
Posted: 27 May 2023, 11:05
Is it possible to trigger the random fun again till the condition is true?
I made a random spawn plugin that only spawns on empty land, but now it's spawnrate depends on the amount of empty land.
I made a random spawn plugin that only spawns on empty land, but now it's spawnrate depends on the amount of empty land.
Code: Select all Reset
"random fun":[{ "condition":{"type":"and", "inner":[{"type":"tree", "invert":true}, {"type":"building","invert":true},{"type":"zone", "invert":true}]}, "actions":[{"type":"build", "id":"$mokokoseed_pederont"}], "p":0.01
JSON checker