Randomly placing ores in my block of stone

00george

  • Posts: 161
Hi I have made as behaviour that will place stone up to the 60th layer but in the stone I want to ocasionly place ore. This is the behaviour I currently got. Im not sure on how to add it.

dashx747

  • Posts: 9
A solution would be to use a random number.

Inside the "repeat" box place a random number generator. Then you put the "create" line inside an "if". If random number X is bigger then 0.10, create stone, otherwise create ore (that is for a 10% chance to be ore).

Does it help?


00george

  • Posts: 161
My friend you sir are a genious I cant thank you enough. :D

SWATLLAMA

  • Posts: 1059
You can also do it via code mode, though I don't know if it'll work better for your purposes, .
Hail The Llama
http://www.kongregate.com/accounts/lSWATLLAMA
"Play the games" ~ The Grand Llama

It's my life goal to rickroll as many people as possible