please i need help i tried changing spawnZombie to spawn PigZombie i also tried setting npcSpawn == false to npcSpawn == truedo i have to add a function in the beggining like this function useItem(x, y, z, (itemId, blockId, side ))ore something like thatbtw i was trying to make npc mod with trading gui help with gui plzbut im stuck trying to spawn the npcs
if
function useItem(){
//NPC Spawn
if(npcSpawn == true){
var i = 0;
Im trying to make npc mod
for(i = 0; i <= 10; i++){
spawnZombie(rX, rY, rZ, 257, "mob/char.png");
}
}
else if(npcSpawn == true && i >= 10){
npcSpawn == false;
}
}
//Random Coordinates
var rX = Math.floor(Math.random()*258);
var rY = Math.floor((Math.random()*65)+58
var rZ = Math.floor(Math.random()*258;
var npcSpawn = true; function useItem(){ if(npcSpawn){ for(i = 0; i <= 10; i++){ Level.spawnMob(rX, rY, rZ, 32); } npcSpawn = !npcSpawn; } } //Random Coordinates var rX = Math.floor((Math.random()*258)+1); var rY = Math.floor((Math.random()*65)+58); var rZ = Math.floor((Math.random()*258)+1);Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
1. I made a thread on creating custom UI's but everyone was blind so it died.
2. I have a signature for a reason!
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
true lol
https://dl-web.dropbox.com/get/EpicshottieMCPE's ModPack v4 full version.zip?_subject_uid=250894831&w=AAA-3sofmfFJdjCVLWTxfafpshbcjKMKJhVHOR6hbLF0NQ