Hello everyone! I have encountered a few problems. I try to have a villager with a player model spawned in with a custom skin, but it just turns out black! I know the skins are loaded from the Minecraft PE assets, but I can't access them... Also, anytime I have a skin set to char.PNG, it always looks like a more smoothened out steve, but I want it to look like plain Steve. One more thing: different skin formats. Whenever I try to load a skin with the 0.11.1 skin format, it looks messed up (two skins that look messed up are alex.png and steve.png). Here is the coding for my mod:
(BTW, KingDude_2468 and SuperWizardMan64 work just fine and are the same skin format as I have for Sethbling, Herobrine_kid, Notch, and Jeb_.)
//Mod by Epic_stuff
ModPE.setItem(510,"spawn_egg",0,
"Spawn KingDude_2468")
ModPE.setItem(511,"spawn_egg",0,
"Spawn SuperWizardMan46")
ModPE.setItem(512,"spawn_egg",0,
"Spawn Herobrine_kid")
ModPE.setItem(513,"spawn_egg",0,
"Spawn Notch")
ModPE.setItem(514,"spawn_egg",0,
"Spawn Sethbling")
ModPE.setItem(515,"spawn_egg",0,
"Spawn Jeb_")
/*Spawn players*/
function useItem(x,y,z,itemId,blockId,side,itemDamage){
if(itemId==510){
var King = Level.spawnMob(x,y+1,z,15,"mob/skins/CityFolk/King.png");
Entity.setNameTag(King, "KingDude_2468");
Entity.setRenderType(King,3);
Entity.setHealth(King,20);
{
clientMessage("§eKingDude_2468 has joined the game");
}
} else if(itemId==511){
var Super = Level.spawnMob(x,y+1,z,15,"mob/skins/CityFolk/Mage.png");
Entity.setNameTag(Super, "SuperWizardMan64");
Entity.setRenderType(Super,3);
Entity.setHealth(Super,20);
{
clientMessage("§eSuperWizardMan64 has joined the game");
}
} else if(itemId==512){
var herobrine = Level.spawnMob(x,y+1,z,15,"mob/villager/herobrine.png");
Entity.setNameTag(herobrine, "Herobrine_kid");
Entity.setRenderType(herobrine,3);
Entity.setHealth(herobrine,20);
{
clientMessage("§eHerobrine_kid has joined the game");
}
} else if(itemId==513){
var Notch = Level.spawnMob(x,y+1,z,15,"mob/Notch.png");
Entity.setNameTag(Notch, "Notch");
Entity.setRenderType(Notch,3);
Entity.setHealth(Notch,20);
{
clientMessage("§eNotch has joined the game");
}
} else if(itemId==514){
var Seth = Level.spawnMob(x,y+1,z,15,"mob/skins/CityFolk/Sethbling.png");
Entity.setNameTag(Seth, "Sethbling");
Entity.setRenderType(Seth,3);
Entity.setHealth(Seth,20);
{
clientMessage("§eSethbling has joined the game");
}
} else if(itemId==515){
var jeb = Level.spawnMob(x,y+1,z,15,"mob/Jeb_.png");
Entity.setNameTag(jeb, "Jeb_");
Entity.setRenderType(jeb,3);
Entity.setHealth(jeb,20);
{
clientMessage("§eJeb_ has joined the game");
}
}
}
Thank you!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello everyone! I have encountered a few problems. I try to have a villager with a player model spawned in with a custom skin, but it just turns out black! I know the skins are loaded from the Minecraft PE assets, but I can't access them... Also, anytime I have a skin set to char.PNG, it always looks like a more smoothened out steve, but I want it to look like plain Steve. One more thing: different skin formats. Whenever I try to load a skin with the 0.11.1 skin format, it looks messed up (two skins that look messed up are alex.png and steve.png). Here is the coding for my mod:
(BTW, KingDude_2468 and SuperWizardMan64 work just fine and are the same skin format as I have for Sethbling, Herobrine_kid, Notch, and Jeb_.)
//Mod by Epic_stuff
ModPE.setItem(510,"spawn_egg",0,
"Spawn KingDude_2468")
ModPE.setItem(511,"spawn_egg",0,
"Spawn SuperWizardMan46")
ModPE.setItem(512,"spawn_egg",0,
"Spawn Herobrine_kid")
ModPE.setItem(513,"spawn_egg",0,
"Spawn Notch")
ModPE.setItem(514,"spawn_egg",0,
"Spawn Sethbling")
ModPE.setItem(515,"spawn_egg",0,
"Spawn Jeb_")
/*Spawn players*/
function useItem(x,y,z,itemId,blockId,side,itemDamage){
if(itemId==510){
var King = Level.spawnMob(x,y+1,z,15,"mob/skins/CityFolk/King.png");
Entity.setNameTag(King, "KingDude_2468");
Entity.setRenderType(King,3);
Entity.setHealth(King,20);
{
clientMessage("§eKingDude_2468 has joined the game");
}
} else if(itemId==511){
var Super = Level.spawnMob(x,y+1,z,15,"mob/skins/CityFolk/Mage.png");
Entity.setNameTag(Super, "SuperWizardMan64");
Entity.setRenderType(Super,3);
Entity.setHealth(Super,20);
{
clientMessage("§eSuperWizardMan64 has joined the game");
}
} else if(itemId==512){
var herobrine = Level.spawnMob(x,y+1,z,15,"mob/villager/herobrine.png");
Entity.setNameTag(herobrine, "Herobrine_kid");
Entity.setRenderType(herobrine,3);
Entity.setHealth(herobrine,20);
{
clientMessage("§eHerobrine_kid has joined the game");
}
} else if(itemId==513){
var Notch = Level.spawnMob(x,y+1,z,15,"mob/Notch.png");
Entity.setNameTag(Notch, "Notch");
Entity.setRenderType(Notch,3);
Entity.setHealth(Notch,20);
{
clientMessage("§eNotch has joined the game");
}
} else if(itemId==514){
var Seth = Level.spawnMob(x,y+1,z,15,"mob/skins/CityFolk/Sethbling.png");
Entity.setNameTag(Seth, "Sethbling");
Entity.setRenderType(Seth,3);
Entity.setHealth(Seth,20);
{
clientMessage("§eSethbling has joined the game");
}
} else if(itemId==515){
var jeb = Level.spawnMob(x,y+1,z,15,"mob/Jeb_.png");
Entity.setNameTag(jeb, "Jeb_");
Entity.setRenderType(jeb,3);
Entity.setHealth(jeb,20);
{
clientMessage("§eJeb_ has joined the game");
}
}
}
Thank you!