Why this doesn't work!! This is a meteor mod made by me of course, so yeah here is the code
/*meteor mod by GeldoesMCPE*/
var meteor;
var meteorRenderer = Renderer.createHumanoidRenderer(); addMeteorToRenderer(meteorRenderer);
ModPE.setItem(175,"ender_pearl",0,"Meteor Caller");
Item.addCraftRecipe(175, 1, 0, [264, 9, 0]);
print("There is a /help command");
function addMeteorToRenderer(renderer)
{
var model=renderer.getModel();
model.getPart("body").clear();
model.getPart("rightArm").clear()
model.getPart("leftArm").clear()
model.getPart("leftLeg").clear()
model.getPart("rightLeg").clear()
function procCmd(command)
{
var cmd = command.split(" ");
if(cmd[0] == "help")
{
clientMessage("Get the"+chatColor.Red+"Meteor Caller from a Editor ID: 175 or craft it."+chatColor.Green+"Tap it on the ground. Run!"+chatColor.Red+"WARNING: DO NOT USE THIS AT YOUR FAVORITE MAP! IT HAS A 30 RADIUS EXPLOSION SO PLEASE BE CAREFUL! I LOVE CAPSLOCK :-) ") }}}}
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
/*meteor mod by GeldoesMCPE*/
var meteor;
var meteorRenderer = Renderer.createHumanoidRenderer(); addMeteorToRenderer(meteorRenderer);
ModPE.setItem(175,"ender_pearl",0,"Meteor Caller");
Item.addCraftRecipe(175, 1, 0, [264, 9, 0]);
print("There is a /help command");
function addMeteorToRenderer(renderer)
{
var model=renderer.getModel();
model.getPart("body").clear();
model.getPart("rightArm").clear()
model.getPart("leftArm").clear()
model.getPart("leftLeg").clear()
model.getPart("rightLeg").clear()
function useItem(x, y, z, itemId, blockId, side)
{
if(itemId==175)
{
addItemInventory(175, -1);
{
meteor = Level.spawnMob(x, y+10, z, 12, "mob/char.png");
Entity.setHealth(meteor, 100);
Entity.setRenderType(meteor, meteorRenderer.renderType);
count=0
}
}
if(count>=1)
{
count=count-1;
}
if(count==0)
{
count=-1;
Level.explode(Entity.getX(meteor), Entity.getY(meteor), Entity.getZ(meteor), 30);
Entity.remove(meteor);
}
function procCmd(command)
{
var cmd = command.split(" ");
if(cmd[0] == "help")
{
clientMessage("Get the"+chatColor.Red+"Meteor Caller from a Editor ID: 175 or craft it."+chatColor.Green+"Tap it on the ground. Run!"+chatColor.Red+"WARNING: DO NOT USE THIS AT YOUR FAVORITE MAP! IT HAS A 30 RADIUS EXPLOSION SO PLEASE BE CAREFUL! I LOVE CAPSLOCK :-) ") }}}}