This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I just wanted to know if i could have all default mobs to stop spawning when a command is executed.
var stopMobs=false;
function procCmd(cmd){
if(cmd=="stop Mobs from spawning"){
if(stopMobs){
stopMobs=false;
}else{
stopMobs=true;
}
function entityAddedHook(e){
if(Entity.getEntityTypeId(e)>9 && Entity.getEntityTypeId(e)<63){
preventDefault();
I just wanted to know if i could have all default mobs to stop spawning when a command is executed.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumvar stopMobs=false;
function procCmd(cmd){
if(cmd=="stop Mobs from spawning"){
if(stopMobs){
stopMobs=false;
}else{
stopMobs=true;
}
}
}
function entityAddedHook(e){
if(stopMobs){
if(Entity.getEntityTypeId(e)>9 && Entity.getEntityTypeId(e)<63){
preventDefault();
}
}
}