How to Summon/get items:
-tap floor with stick to get skull
-tap floor with hand to get a quartz block then put it on the floor
and tap it to spawn the wither skeleton
(WITHER SKELETON HAS 50 HEALTH)
Code
var witherHead = 0;
var witherSkeleton = 0;
ModPE.setItem(467,14,1,"Wither Skeketon Skull");
ModPE.setItem(155, 9, 9, "Wither Skeleton Summoner");
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==0)//hand
{
addItemInventory (155, 1);//add wither summoner
}
else if (itemId==280)//stick
{
addItemInventory (467, 1);//add wither skull
}
else if (itemId==155)//wither summoner
{
var witherskeleton = Level.spawnMob (x, y, z, 36, "mob/wither_skeleton.png");//spawns a zombie with its id being bb, and skin being boba fett.
Entity.setHealth(witherskeleton, 50); //set boba fetts health that was spawned to 400 half hearts.
Entity.setRenderType(witherskeleton,12);//set render type
Entity.setCarriedItem (witherskeleton, 272, 1, 0);
clientMessage("<Wither_Skeleton> Wither!!!!"); //wither Message to player
}
}
Why does it say boba fett skin? Did you copy this from the star wars mod? Also 400 half hearts would be 200 health, not 50.
Looks good except for the errors above.
Rollback Post to RevisionRollBack
Willing to work on Android apps or multi-platform games, see profile bio for information.
Script:Wither_Skeleton
Tested:Yes
Author:DarkBlade
ChangeLog:
---1.0---
-Wither Skeleton
-Wither Skull
-Wither Skeleton Summoner
New Items:
-Wither Skull
-Wither Summoner
How to Summon/get items:
-tap floor with stick to get skull
-tap floor with hand to get a quartz block then put it on the floor
and tap it to spawn the wither skeleton
(WITHER SKELETON HAS 50 HEALTH)
Code
var witherHead = 0; var witherSkeleton = 0; ModPE.setItem(467,14,1,"Wither Skeketon Skull"); ModPE.setItem(155, 9, 9, "Wither Skeleton Summoner"); function useItem(x,y,z,itemId,blockId,side) { if(itemId==0)//hand { addItemInventory (155, 1);//add wither summoner } else if (itemId==280)//stick { addItemInventory (467, 1);//add wither skull } else if (itemId==155)//wither summoner { var witherskeleton = Level.spawnMob (x, y, z, 36, "mob/wither_skeleton.png");//spawns a zombie with its id being bb, and skin being boba fett. Entity.setHealth(witherskeleton, 50); //set boba fetts health that was spawned to 400 half hearts. Entity.setRenderType(witherskeleton,12);//set render type Entity.setCarriedItem (witherskeleton, 272, 1, 0); clientMessage("<Wither_Skeleton> Wither!!!!"); //wither Message to player } }Instructions:
-download
-import
-use texture
Download: https://db.tt/QNohnNvE
ModPE!?
Gonna try to add sounds(asked for help cuz idk it gives error for sound.)
ModPE!?
Woowowow I am soon new
Looks good except for the errors above.
Willing to work on Android apps or multi-platform games, see profile bio for information.
Founder and CEO of Temena Development
Twitter: @TemenaPE
Instagram: @ItsLiterallyMath
ModPE!?
Reply to : [email protected]