This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
var i = " " ModPE.setItem(500,4,3, i + "ASDF Sword" + i) ModPE.setItem(499,6,3, i + "ASDF Pickaxe" + i) function useItem(x,y,z,itemId,blockId,side) { if(itemId==500) setVelY(getPlayerEnt(),5) Entity.setFireTicks(getPlayerEnt(),100) }
function useItem(x,y,z,itemId,blockId,side) { if(itemId==499) Level.dropItem(x,y,z,1,getTile(x,y,z),1) Level.destroyBlock(x,y,z) }
function attackHook(attacker,victim) { if(itemId=500) setVelY(victim,5) Entity.setFireTicks(victim,100) }
Example Code:
When i test the mod all items set my Y vel to 5 but doesn't turns me in fire but when i use the asdf sword it turns me.
var i = " " ModPE.setItem(500,4,3, i + "ASDF Sword" + i) ModPE.setItem(499,6,3, i + "ASDF Pickaxe" + i) function useItem(x,y,z,itemId,blockId,side) { if(itemId==500) setVelY(getPlayerEnt(),5) Entity.setFireTicks(getPlayerEnt(),100) }Other Example:
When i test the mod all items destroy the block but doesn't drop the item and when i use the asdf pickaxe it drops the item
function useItem(x,y,z,itemId,blockId,side) { if(itemId==499) Level.dropItem(x,y,z,1,getTile(x,y,z),1) Level.destroyBlock(x,y,z) }Attack Hook Example:
When i test the mod every item does the thing that only the asdf sword should do.
function attackHook(attacker,victim) { if(itemId=500) setVelY(victim,5) Entity.setFireTicks(victim,100) }I need help with these things.
I hope someone can help me
Bye
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]