hi there fellow moddersive been taking mod lessons but i need help with some functions and hooks so i decided to start this mod the golden stick mod the stick must have powers i started the mod for you i well give credit for the mod so here is what i started with
function useItem(x, y, z, i, b, s){
if(i==507){
setTille(x, y, z, 41);
}
}
/*Turns any block into a Gold Block!!*/
How bout that?
Rollback Post to RevisionRollBack
Please give me an Internet. Please. Pretty Please with sprinkles on top
I have a twitter!! Follow me for regular updates on my mods! https://twitter.com/DamienMiller11
function attackHook(attacker,victim)
{
if(Player.getCarriedItem()== 100) // item id
{
preventDefault();
Entity.setHealth(victim,Entity.getHealth(victim) - 3); // damage done
}
}
//How about making it a weapon
good idea ok i will do this, for every seggiston i will do it in a other version of the i will use your idea in v2 deal plus the item id has to be 507 or 508
ModPE.setItem(507,blaze_rod", 0,"golden stick");
Item.addCraftRecipe(507, 1, 0, [1, 5, 10, 7]);
Item.addFurnaceRecipe(266, 500, 1);
Item.setCategory(500, Itemcategory. MATERIAL);
thank you
function useItem(x, y, z, i, b, s){ if(i==507){ setTille(x, y, z, 41); } } /*Turns any block into a Gold Block!!*/How bout that?
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11
{
if(Player.getCarriedItem()== 100) // item id
{
preventDefault();
Entity.setHealth(victim,Entity.getHealth(victim) - 3); // damage done
}
}
//How about making it a weapon
nice idea thanks for helping i might use that and give you credit
good idea ok i will do this, for every seggiston i will do it in a other version of the i will use your idea in v2 deal plus the item id has to be 507 or 508
Lead developer of Dragonet!
Check out my game, Adventuria!
Dev of (IMO the best server ever) TwilightGamez!
ok i chose wich seggstion im going to use first for v1 the on im giving credit to is mincraftmuse3 thank ill use you function
congrat minecraftmuse3 ill use your function for v1 but rember keep on brenging the suggistion theres still v2 v3 v1.0 and v1.1