This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
if(getCarriedItem()==278&&entityId==11)//dpickaxe to a cow Entity,setFireTicks(5);
Quote from Donalddoesmc Learn common sense and ModPE function first function attackHook (attacker, victim) { if (getCarriedItem() == 278 && Entity.getEntityTypeId(victim) == 11) //Cow { Entity.setFireTicks (victim, 100) //100 ticks equals 5 seconds } }
function attackHook (attacker, victim) { if (getCarriedItem() == 278 && Entity.getEntityTypeId(victim) == 11) //Cow { Entity.setFireTicks (victim, 100) //100 ticks equals 5 seconds } }
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2610428-0-13-emeraldcraft-metalurgic-gems-alchemy
Quote from 500 Internal Server Error Learn to check your syntax first.
var chick = 0; function attackHook(attacker,victim) { if(getCarriedItem==280&&Entity.setTypeId==10&&chick==0) { chick=1; Level.spawnMob(x,y+3,z,10, "mob/chicken.png"); } else if(getCarriedItem==276&&Entity.setTypeId==10&&chick==1) { chick=0; Level.spawnMob(x,y+3,z,10, "mob/duck.png"); } }
how to make function entity id work!!!
i made it,but always error!
example ==
yup i know that entityId is not valid(i used attackHook)
so please tell me
thanks
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumLearn to check your syntax first.
Then ask one of these guys
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2610428-0-13-emeraldcraft-metalurgic-gems-alchemy
how about
var chick = 0; function attackHook(attacker,victim) { if(getCarriedItem==280&&Entity.setTypeId==10&&chick==0) { chick=1; Level.spawnMob(x,y+3,z,10, "mob/chicken.png"); } else if(getCarriedItem==276&&Entity.setTypeId==10&&chick==1) { chick=0; Level.spawnMob(x,y+3,z,10, "mob/duck.png"); } }are this function right???