function useItem(x,y,z,itemId,blockId,side){if(itemId==280)//stick}function attackHook(attacker, victim){clientMessage("potato")}function ModPE.setFoodItem(392,0,0,20,"potato"){addItemInventory(392,64)}
in case you don't know, it is not necessary to make comments. also try splitting them into lines so that any human can see it easily
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
To post a comment, please login or register a new account.
id: 11549
if(itemId==280)
clientMessage("potato");
if(itemId==280)
ModPE.setFoodItem(392,0,0,20,"potato");
if(itemId==280)
addItemInventory(392,64);
TRY THAT THIS ONE IS FIXED
THIS ONE IS WRONG
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==280)//stick
{
clientMessage("potato");
ModPE.setFoodItem(392,0,0,20,"potato")
addItemInventory(392,64)
}
}