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
The Meaning of Life, the Universe, and Everything.
Location:
Auckland
Join Date:
9/20/2014
Posts:
126
Minecraft:
softmage114486
Xbox:
softmage114486
Member Details
Yea i have it in the use item, so when i tap the ground with a custom item i made it explodes and sets your health to 20 so you dont take any damage from it but for some reason it sometimes starts to glitch out and the player jumps while walking and the crosshair will be straight ahead but the highlighted block will be below me and its very frustrating, could you try to make something similar that works properly?
Rollback Post to RevisionRollBack
This is my signature..
clicked block quote Hey..How do i turn it off?Help! I'm scared This is my life now...
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
yea without seeing your code itll be hard to fix. But out of what you said I presume this is what you wanted.
//code for something that explodes but the player doesn't die
function useItem(x,y,z,i,b,s)
{
if(i!=0&&b!=0)
{
Level.explode(x,y,z,10);
Entity.setHealth(getPlayerEnt,20);
}
}
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
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
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
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
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11
Hoped that helped
//in the use item hook
if(itemId==a)
{
Level.explode(x,y,z,10);
Player.setHealth(20);
}
Use the Entity.setHealth, instead of Player.setHealth
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11
Yea there is a variable for its
var a = 504;
ModPE.setItem......ya know?
And I'll try the entity.setHealth thanks
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11
var entity = Player;
var player = getPlayer.ent();
//now in the use item hook
if(itemId==a)
{Level.explode(x,y,z,5);
entity.setHealth(player, 20)}
And it works
Thanks heaps minecraftmuse3
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/1987470-0-8-x-sin0psysss-spawning-pattern-spawn-your?page=2
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11