Hey brother i've found a bug......it's when you throw The Enderpearl on a wall you will be sufficated on it so if you have time go and fix it and brother i have an idea on your mod what if you add some crafting recipe so that you can craft the enderpearl...so thanks for reading my suggestion!
There's a simple fix for this (Ok, maybe not sooo simple )
function entityRemovedHook(e)
{
var x = Entity.getX(e);
var y = Entity.getY(e);
var z = Entity.getZ(e);
var p = Player.getEnt();
if(Entity.getEntityTypeId(e)==82)
{
if(getTile(x-1,y,z)==0&&getTile(x,y,z+1)==0)
{
if(getTile(x,y,z,-1)&&getTile(x+1,y,z) == 0)
{
Entity.setPosition(p,x,y+3,z);
}
}
else {
clientMessage("If you were to teleport here you would surely die.");
addItemInventory(334,1);
}
}
There's a simple fix for this (Ok, maybe not sooo simple )
function entityRemovedHook(e)
{
var x = Entity.getX(e);
var y = Entity.getY(e);
var z = Entity.getZ(e);
var p = Player.getEnt();
if(Entity.getEntityTypeId(e)==82)
{
if(getTile(x-1,y,z)==0&&getTile(x,y,z+1)==0)
{
if(getTile(x,y,z,-1)&&getTile(x+1,y,z) == 0)
{
Entity.setPosition(p,x,y+3,z);
}
}
else {
clientMessage("If you were to teleport here you would surely die.");
addItemInventory(334,1);
}
}
Hope this helps!
I can teach you if you want
Thank You!This Helps Me I Am Adding You In The Main Screen That You Help Me At The Next Update!Thanks
Did It Work?I Tried It Several Times And It Changes All The Mod Doesnt Work Oh Okay Gonna Try Again.......Oh For Your Permission Actually No But Because Im Friendly Gonna Say Yes Men....
Jefferson629There's a simple fix for this (Ok, maybe not sooo simple
function entityRemovedHook(e) { var x = Entity.getX(e); var y = Entity.getY(e); var z = Entity.getZ(e); var p = Player.getEnt(); if(Entity.getEntityTypeId(e)==82) { if(getTile(x-1,y,z)==0&&getTile(x,y,z+1)==0) { if(getTile(x,y,z,-1)&&getTile(x+1,y,z) == 0) { Entity.setPosition(p,x,y+3,z); } } else { clientMessage("If you were to teleport here you would surely die."); addItemInventory(334,1); } }Hope this helps!
I can teach you if you want
ModPE.setItem(344,"enderpearl", 0,"ender pearl")
I tried it and it worked for me......