It should be used like what you said, Math.floor(Math.random()), but that will always come out as 0. This is because Math.random brings a random decimal number between 0 and 1, something like 0.1937193. So, for a random mob spawn, it should be like this:
It should be used like what you said, Math.floor(Math.random()), but that will always come out as 0. This is because Math.random brings a random decimal number between 0 and 1, something like 0.1937193. So, for a random mob spawn, it should be like this:
It should be used like what you said, Math.floor(Math.random()), but that will always come out as 0. This is because Math.random brings a random decimal number between 0 and 1, something like 0.1937193. So, for a random mob spawn, it should be like this:
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
To post a comment, please login or register a new account.
Hope this helped!
I am secretly a modder, who works only for himself, seldom publishes.
It will most frequently cause suffocation XD
Hey how are you with the modpe tutorials?