Hi i'm working on a SC Mod(simple commands) and i wanna spawn a zombie pigman with my skin but doesn't works it shows the js error window and says: RayZtar isn't defined i instaled the texture pack: sc mod.zip/sc mod/assets/mob/RayZtar.png and dosen't works. Here is the code:
if(command == "RayZtar") {
spawnPigZombie(getPlayerX()+1,getPlayerY,getPlayerZ,276,RayZtar.png)
clientMessage("<RayZtar>Hi i am RayZtar,the sc mod maker")
clientMessage("<RayZtar>You can kill me Or keep me like a pet")
clientMessage("<RayZtar>Thanks for download the SC Mod")
}
}
The Meaning of Life, the Universe, and Everything.
Join Date:
4/13/2013
Posts:
62
Minecraft:
;NULL;
PSN:
CrAzY_MoDDeRzZ
Member Details
first make a texture pack retexture the zombie pigman to your skin now heres the fixed code
var RZ = 0;
function useItem(x, y, z, itemId, blockId, side){
if(itemId==280)//280 is a stick you cant do this in a command XD
spawnPigZombie(x,y+1,z,RayZtar.png);
varRZ=1;
if(itemId==280)
clientMessage("<RayZtar>Hi i am RayZtar,the sc mod maker");
if(itemId==280)
clientMessage("<RayZtar>You can kill me Or keep me like a pet);
if(itemId==280)
clientMessage("<RayZtar>Thanks for download the SC Mod");
first make a texture pack retexture the zombie pigman to your skin now heres the fixed code
var RZ = 0;
function useItem(x, y, z, itemId, blockId, side){
if(itemId==280)//280 is a stick you cant do this in a command XD
spawnPigZombie(x,y+1,z,RayZtar.png);
varRZ=1;
if(itemId==280)
clientMessage("<RayZtar>Hi i am RayZtar,the sc mod maker");
if(itemId==280)
clientMessage("<RayZtar>You can kill me Or keep me like a pet);
if(itemId==280)
clientMessage("<RayZtar>Thanks for download the SC Mod");
function attackHook(attacker, victim){
}
function procCmd(cmd){
}
function modTick(){
}
I was going to put what you did but i messed up on this part function attackHook(attacker, victim)}
​when it was supposed to be function attackHook(attacker, victim){
This is the correct script,
Right,first you must have an texture pack and put RayZtar.png in your texture pack
function procCmd(cmd) {
var Data = cmd.split(" ");
if(Data[0]=="RayZtar") {
spawnPigZombie(x+1,y+1,z,276, "mob/RayZtar.png);//recomended to put in folder who called mob,held 276(diamond sword)
clientMessage("<RayZtar>Hi i am RayZtar,the sc mod maker");
clientMessage("<RayZtar>You can kill me Or keep me like a pet");
clientMessage("<RayZtar>Thanks for download the SC Mod");
}
}
This is the correct script,
Right,first you must have an texture pack and put RayZtar.png in your texture pack
function procCmd(cmd) {
var Data = cmd.split(" ");
if(Data[0]=="RayZtar") {
spawnPigZombie(x+1,y+1,z,276, "mob/RayZtar.png);//recomended to put in folder who called mob,held 276(diamond sword)
clientMessage("<RayZtar>Hi i am RayZtar,the sc mod maker");
clientMessage("<RayZtar>You can kill me Or keep me like a pet");
clientMessage("<RayZtar>Thanks for download the SC Mod");
}
}
if(command == "RayZtar") { spawnPigZombie(getPlayerX()+1,getPlayerY,getPlayerZ,276,RayZtar.png) clientMessage("<RayZtar>Hi i am RayZtar,the sc mod maker") clientMessage("<RayZtar>You can kill me Or keep me like a pet") clientMessage("<RayZtar>Thanks for download the SC Mod") } }var RZ = 0;
function useItem(x, y, z, itemId, blockId, side){
if(itemId==280)//280 is a stick you cant do this in a command XD
spawnPigZombie(x,y+1,z,RayZtar.png);
varRZ=1;
if(itemId==280)
clientMessage("<RayZtar>Hi i am RayZtar,the sc mod maker");
if(itemId==280)
clientMessage("<RayZtar>You can kill me Or keep me like a pet);
if(itemId==280)
clientMessage("<RayZtar>Thanks for download the SC Mod");
I was going to put what you did but i messed up on this part
function attackHook(attacker, victim)}
​when it was supposed to be
function attackHook(attacker, victim){
Right,first you must have an texture pack and put RayZtar.png in your texture pack
function procCmd(cmd) { var Data = cmd.split(" "); if(Data[0]=="RayZtar") { spawnPigZombie(x+1,y+1,z,276, "mob/RayZtar.png);//recomended to put in folder who called mob,held 276(diamond sword) clientMessage("<RayZtar>Hi i am RayZtar,the sc mod maker"); clientMessage("<RayZtar>You can kill me Or keep me like a pet"); clientMessage("<RayZtar>Thanks for download the SC Mod"); } }Its work???