Guys, Welcome!
I need some help! Please it is important for my Halloween script!
I must do a thing like, when I kill a Zombie Pigman, 1 diamond(id 265) adds
to my inventory! Please help..
Here`s the getEntity ID code:
function deathHook (attacker, victim)
{
if (Entity.getEntityTypeId == 36)
{
//FUNCTION HERE
}
}
And in this code we must add addPlayerItemInventory, but I don`t know how....
It is really important please help!
Thank you, guys!
I need some help! Please it is important for my Halloween script!
I must do a thing like, when I kill a Zombie Pigman, 1 diamond(id 265) adds
to my inventory! Please help..
Here`s the getEntity ID code:
function deathHook (attacker, victim) { if (Entity.getEntityTypeId == 36) { //FUNCTION HERE } }And in this code we must add addPlayerItemInventory, but I don`t know how....
It is really important please help!
Thank you, guys!
function deathHook(attacker,victim) { if(Entity.getEntityTypeId == 36) { Player.addItemInventory(265,1); } }Doesn`t work...
Maybe a modTick needed?
function deathHook(attacker,victim) { if(Entity.getEntityTypeId == 36) { addItemInventory(265,1); } }But if I will do like this:
function deathHook(attacker,victim) { if(Entity.getEntityTypeId == 36) { clientMessage("Test"); } }It just works. It can`t add an Item to my Inventory =(
Can you try to help?
I`ve done that, it works
SORRY ALL FOR TROUBLING YOU!