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:
Also note that too many timers accumulated may cause crashing, so maybe periodic reset is required.
A simple example of periodic actions:
var time=0;
function modTick(){
time++;
if(time%72000==71999)clientMessage("You'd played for an hour. Why not put down your device and take a break?");
}
Rollback Post to RevisionRollBack
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.
var ticks = 20 * number of seconds you want it delayed; function modTick(){ ticks--; if(ticks==0){clientMessage("message here");} }PS: Every 20 ticks = 1 second
You can study this made by me, although it may contain bugs:
https://github.com/connor4898/modpe-scripts/wiki/modpe-script-templates#modtick-timer-template---pemapmodder---may-not-work
A simple example of periodic actions:
var time=0; function modTick(){ time++; if(time%72000==71999)clientMessage("You'd played for an hour. Why not put down your device and take a break?"); }