var myOreX = Math.floor(Math.random()*(255)+1);
var myOreY = Math.floor(Math.random()*(25)+1);
var myOreZ = Math.floor(Math.random()*(255)+1);
function newLevel() {
setTile(myOreX,myOreY,myOreZ,56);
// just change 56 to your costum block id
// mean is random generate with random coordinates
// copy and paste " setTile(myOreX,myOreY,myOreZ,56); " with how much block do you want
}
Nop. That will only spawn ONE ore. Not possible to do it using that method, unless you define, like 30 different "Math.Floor"'s
Rollback Post to RevisionRollBack
Please give me an Internet. Please. Pretty Please with sprinkles on top
I have a twitter!! Follow me for regular updates on my mods! https://twitter.com/DamienMiller11
To post a comment, please login or register a new account.
Someone can help me ?
var myOreX = Math.floor(Math.random()*(255)+1);
var myOreY = Math.floor(Math.random()*(25)+1);
var myOreZ = Math.floor(Math.random()*(255)+1);
function newLevel() {
setTile(myOreX,myOreY,myOreZ,56);
// just change 56 to your costum block id
// mean is random generate with random coordinates
// copy and paste " setTile(myOreX,myOreY,myOreZ,56); " with how much block do you want
}
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11