function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==280)//If your item is a stick
{
addItemInventory(264, 64);//Add 64 Diamond Blocks to your inventory.
print("You Got 64 Diamonds!made by DarkBlade");
}
}
function attackHook(attacker, victim)
{
if(getCarriedItem()==280)//If your item is a stick
{
preventDefault();//Don't call the real attack function after
setVelY(victim,1.5);//Make them fly vertically =)
}
}
function modTick()
{
}
o non-must-use-blocklauncher scripts count?
Cuz I made a subclass for Math.class seeing many people don't know how to use random().
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
function useItem(bx, by, bz, item){
if (item == 280){
for(var x = -5; x <= 5; x++){
for(var y = -5; y <= 5; y++){
for(var z = -5; z <= 5; z++){
if(x * x + y * y + z * z <= 25){
Level.explode(bx + x*12, by + y*12, bz + z*12, 60);
}}}}}}
-
View User Profile
-
View Posts
-
Send Message
Curse Premium... You just copied Treebl's example script, didn't you?
Script:Diamond-EnchantFire
Line:7
Code:
1
2
3
4
5
6
7
function attackHook(attacker, victim)
{
if(getCarriedItem()==276)
{
Entity.setFireTicks(victim, 60);
}
}
DOwnload: https://www.dropbox.com/s/90yno81pqk4kv4c/Diamond-EnchantFire.js
ModPE!?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumTreebl script again.
Edit: actually, maybe not - but is still based on existing script. http://www.minecraftforum.net/topic/1919439-release-modpe-script-v05-alpha-new-update-with-installer/page__st__600
Cuz I made a subclass for Math.class seeing many people don't know how to use random().
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumhttps://raw.github.com/zhuowei/ModPEScripts/master/500ise_jetpack.js
Mod: Nuke Mod eight lines Link: https://www.dropbox.com/s/szevxvn604aof2x/MCPE 50 line challenge.js?dl=0
Simply tap the ground with a stick to kill everything!
function useItem(bx, by, bz, item){ if (item == 280){ for(var x = -5; x <= 5; x++){ for(var y = -5; y <= 5; y++){ for(var z = -5; z <= 5; z++){ if(x * x + y * y + z * z <= 25){ Level.explode(bx + x*12, by + y*12, bz + z*12, 60); }}}}}}[Trails mod! (I called the js "50LinesMod")]
Adds: 5 sticks to creative that, when held, create trails behind you!
(UUse 3rd person for best use)
Lines: 35 (32+3 lines of comments)
download: https://www.dropbox.com/s/oot7cbqqh3a36bv/50LinesScriptMod.js?dl=0
Have fun!
Seeing this reference here... It fills you with determination!
"Knowlage is Power!"- School House Rock
"Codeing is the best power in the world!"- Me
Have fun and code on!
Rocket Science: -Mg=(M-R*t)a+R*t(Ve-g)