This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hey so i Just Started To Mod And i Dont Know How To Spawn A Zombie That Has a Different Skin And Effect In The World Can Someone Help Plz Also What Is The Function That Allows That Zombie To Drop Different Item Thx For Reading
function modTick(){
var chunk = 16;
var x = Math.round(Math.floor(Player.getX() / chunk));
var z = Math.round(Math.floor(Player.getZ() / chunk));
var y = Math.round(Math.floor(Math.random() * 128));
if(Level.getTile(x, y, z) == 0 && Level.getTile(x, y + 1. z) == 0 && Level.getTile(x, y - 1, z) != 0){
if(Level.getBrightness(x, y, z) < 7){
var zombie = Level.spawnMob(x, y, z, 32, "mob/SKIN.png");
Entity.addEffect(zombie, MobEffect.idk, amplifier, time, false, true);
}
function deathHook(ent){
var x = Entity.getX(ent);
var y = Entity.getZ(ent);
var z = Entity.getY(ent);
if(Entity.getMobSkin(ent) == "mob/SKIN.png"){
Level.dropItem(x, y, z, .025, ITEM, COUNT, DATA);
The heck is this for
Hey so i Just Started To Mod And i Dont Know How To Spawn A Zombie That Has a Different Skin And Effect In The World Can Someone Help Plz Also What Is The Function That Allows That Zombie To Drop Different Item Thx For Reading
function modTick(){
var chunk = 16;
var x = Math.round(Math.floor(Player.getX() / chunk));
var z = Math.round(Math.floor(Player.getZ() / chunk));
var y = Math.round(Math.floor(Math.random() * 128));
if(Level.getTile(x, y, z) == 0 && Level.getTile(x, y + 1. z) == 0 && Level.getTile(x, y - 1, z) != 0){
if(Level.getBrightness(x, y, z) < 7){
var zombie = Level.spawnMob(x, y, z, 32, "mob/SKIN.png");
Entity.addEffect(zombie, MobEffect.idk, amplifier, time, false, true);
}
}
}
function deathHook(ent){
var x = Entity.getX(ent);
var y = Entity.getZ(ent);
var z = Entity.getY(ent);
if(Entity.getMobSkin(ent) == "mob/SKIN.png"){
Level.dropItem(x, y, z, .025, ITEM, COUNT, DATA);
}
}
The heck is this for