The Meaning of Life, the Universe, and Everything.
Join Date:
7/19/2013
Posts:
50
Xbox:
LnD v Vapor o
Member Details
function newLevel(){if(readData("getFortuneLevel")==null/*or whatever returned when undefined*/){saveData("getFortuneLevel",0);//hope accept int}if(readData("xp")==null)saveData("xp",0);if(readData("nethered")==null)saveData("xp",0);//DONTDO function toggle(a){if(readData(a)=="true"){saveData(a, "false");}else{saveData(a, "true");}}//hope this thing is useless}function useItem(x,y,z,i,B){ if(b==247){ aE(6); saveData("nethered",1);} else if(b==54&&i==3){ if(readData("xp"<100))return; preventDefault(); saveData("getFortuneLevel",readData("getFortuneLevel")+1); saveData("xp",readData("xp")-100); }}function destroyBlock(x,y,z,s){ if(getCarriedItem!=285)return; addItemInventory(getTile(x,y,z),readData("getFortuneLevel")*Math.random()-1,getData(x,y,z));}function aE(B){ saveData("xp",readData("xp")+B);//Connor4898 said accept any data but parameters can only be string?}function deathHook(a,v){ var vT=Entity.getEntityTypeId(v); if(Math.abs(Entity.getX(v)-Player.getX())+Math.abs(Entity.getZ(v)-Player.getZ())<322)return;//Even in MCPC you won't be able to get XP from that far. Can be changed when there is getTime(). switch(vT){ case 32:aE(3);break; case 33:aE(5);break; case 34:ae(4);break; case 35:aE(4);break; case 36:aE(6);break; case 10:aE(1);break; default:aE(2); }}function modTick(){ playerTime++;//what did I want to use this for?}function leaveGame(){5 lines script name:add mobs
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 procCmd(cmd) {
if ((cmd = cmd.split(" "))[0] != "mobtower") return;
var prevMob, mobId = parseInt(cmd[2]);
var x = getPlayerX(), y = getPlayerY(), z = getPlayerZ();
for (var i = 0, total = parseInt(cmd[1]); i < total; i++) {
var myMob = Level.spawnMob(x, y + 1, z, mobId);
if (prevMob) rideAnimal(myMob, prevMob);
prevMob = myMob;
}
rideAnimal(getPlayerEnt(), prevMob);
}
11-line clone of Scary_Enderman's mob tower script.
/mobtower 100 10 for a tower of 100 chickens.
function newLevel(){if(readData("getFortuneLevel")==null/*or whatever returned when undefined*/){saveData("getFortuneLevel",0);//hope accept int}if(readData("xp")==null)saveData("xp",0);if(readData("nethered")==null)saveData("xp",0);//DONTDO function toggle(a){if(readData(a)=="true"){saveData(a, "false");}else{saveData(a, "true");}}//hope this thing is useless}function useItem(x,y,z,i, { if(b==247){ aE(6); saveData("nethered",1);} else if(b==54&&i==3){ if(readData("xp"<100))return; preventDefault(); saveData("getFortuneLevel",readData("getFortuneLevel")+1); saveData("xp",readData("xp")-100); }}function destroyBlock(x,y,z,s){ if(getCarriedItem!=285)return; addItemInventory(getTile(x,y,z),readData("getFortuneLevel")*Math.random()-1,getData(x,y,z));}function aE( { saveData("xp",readData("xp")+ ;//Connor4898 said accept any data but parameters can only be string?}function deathHook(a,v){ var vT=Entity.getEntityTypeId(v); if(Math.abs(Entity.getX(v)-Player.getX())+Math.abs(Entity.getZ(v)-Player.getZ())<322)return;//Even in MCPC you won't be able to get XP from that far. Can be changed when there is getTime(). switch(vT){ case 32:aE(3);break; case 33:aE(5);break; case 34:ae(4);break; case 35:aE(4);break; case 36:aE(6);break; case 10:aE(1);break; default:aE(2); }}function modTick(){ playerTime++;//what did I want to use this for?}function leaveGame(){5 lines script name:add mobs
TNT Cannon: 39 lines How to use: Type /launch to fire an ignited TNT in the direction you are facing! Web Address:https://raw.github.com/Connor4898/ModPE-Scripts/master/TNT-Cannon.js
(Note the web address script has 50 lines due to the copyright license, but the script in this post is exactly 39 lines. [Copyright still applies to the script in this post])
function newLevel(){if(readData("getFortuneLevel")==null/*or whatever returned when undefined*/){saveData("getFortuneLevel",0);//hope accept int}if(readData("xp")==null)saveData("xp",0);if(readData("nethered")==null)saveData("xp",0);//DONTDO function toggle(a){if(readData(a)=="true"){saveData(a, "false");}else{saveData(a, "true");}}//hope this thing is useless}function useItem(x,y,z,i, { if(b==247){ aE(6); saveData("nethered",1);} else if(b==54&&i==3){ if(readData("xp"<100))return; preventDefault(); saveData("getFortuneLevel",readData("getFortuneLevel")+1); saveData("xp",readData("xp")-100); }}function destroyBlock(x,y,z,s){ if(getCarriedItem!=285)return; addItemInventory(getTile(x,y,z),readData("getFortuneLevel")*Math.random()-1,getData(x,y,z));}function aE( { saveData("xp",readData("xp")+ ;//Connor4898 said accept any data but parameters can only be string?}function deathHook(a,v){ var vT=Entity.getEntityTypeId(v); if(Math.abs(Entity.getX(v)-Player.getX())+Math.abs(Entity.getZ(v)-Player.getZ())<322)return;//Even in MCPC you won't be able to get XP from that far. Can be changed when there is getTime(). switch(vT){ case 32:aE(3);break; case 33:aE(5);break; case 34:ae(4);break; case 35:aE(4);break; case 36:aE(6);break; case 10:aE(1);break; default:aE(2); }}function modTick(){ playerTime++;//what did I want to use this for?}function leaveGame(){5 lines script name:add mobs
Script:
What did you want to do with this?
Please use a spoiler and code&/code and line breaks next time.
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:
Can you fix the formatting of your first script? Use
[code]
tags. e.g.
[code]1 + 1; //your code goes inside the tags[/ code]
Hey it was my script! Although it wasn't licensed, why would you want to copy it?
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:
name:invisiblity on everything
lines:42lines
how to use:try stuffs with paper
(use it on ground, break block, attack mobs, just hold it)
var newX,newY,newZ,ent,timer;
function useItem(x,y,z,itemId)
{if(itemId==339&&!timer)
{ent=Player.getEntity();
setVelY(ent,0/0);
setVelX(ent,0/0);
setVelZ(ent,0/0);
timer=3;}}
function destroyBlock(x,y,z)
{var itemId=getCarriedItem();
if(itemId==339)
{preventDefault();
Level.setTile(x,y,z,95);}}
function attackHook(attacker,victim)
{var itemId=getCarriedItem();
if(itemId==339&&!timer)
{ent=victim;
setVelY(ent,0/0);
setVelX(ent,0/0);
setVelZ(ent,0/0);
timer=3;}}
function modTick()
{if(timer) timer--;
if(timer==2)
{newX=Entity.getX(ent);
newY=Entity.getY(ent);
newZ=Entity.getZ(ent);
if(getTile(newX,newY,newZ)==0)
{setTile(newX,newY,newZ,30);
setPosition(ent,newX,newY+0.2,newZ);}}
if(timer==1)
setTile(newX,newY,newZ,0);
var itemId=getCarriedItem();
if(itemId==339&&!timer&&Math.random()*400<1)
Level.dropItem(Player.getX(),Player.getY(),Player.getZ(),3,95,0)}
/*0/0 is NaN*/
well, I love invisible kind of things
Who needs texture for invisiblity? Thats stupid....
+who can make skeleton invisible with just adding texture?
and who can make armored yourself invisible?
really cool!! Can I use this code in one of my scripts?
function procCmd(cmd) {
if ((cmd = cmd.split(" "))[0] != "mobtower") return;
var prevMob, mobId = parseInt(cmd[2]);
var x = getPlayerX(), y = getPlayerY(), z = getPlayerZ();
for (var i = 0, total = parseInt(cmd[1]); i < total; i++) {
var myMob = Level.spawnMob(x, y + 1, z, mobId);
if (prevMob) rideAnimal(myMob, prevMob);
prevMob = myMob;
}
rideAnimal(getPlayerEnt(), prevMob);
}
11-line clone of Scary_Enderman's mob tower script.
/mobtower 100 10 for a tower of 100 chickens.
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()
{
}
Script:
Can you fix the formatting of your first script? Use
tags. e.g.
An MCPE crasher? I didn't test it, but I thought we cannot set a tile as 256+.
I already got a cookie!
11-line clone of Scary_Enderman's mob tower script.
/mobtower 100 10 for a tower of 100 chickens.
Thread link here
http://www.minecraft.../#entry25176834
Code
//lovemooshrooms script mods
var sky =0;
var endercreeper =0;
var mooshroom =0;
var duck =0;
var nyancat =0;
function useItem(x, y, z, itemId, blockId, side)
,
if(itemId==345)
{
preventDefault();
Entity.spawnMob(x, y+1, z, 33, "mob/endercreeper.png");
endercreeper = 1;
}
else if(itemId==341)
{
preventDefault();
Entity.spawnMob(x, y+1, z, 10, "mob/duck.png");
duck = 1;
}
else if(itemId==351)
{
preventDefault();
Entity.spawnMob(x, y+1, z, 11, "mob/mooshroom.png");
mooshroom = 1;
}
else if(itemId==288)
{
preventDefault();
Entity.spawnMob(x, y+1, z, 12, "mob/nyancat.png");
nyancat = 1;
}
else if(itemId==266)
{
preventDefault();
Entity.spawnMob(x, y+1, z, 36, "mob/sky.png");
sky = 1;
}
}
I'm back from my hibernation. Most likely gone so don't pm me.
I'm back from my hibernation. Most likely gone so don't pm me.
Hey it was my script! Although it wasn't licensed, why would you want to copy it?
I'm back from my hibernation. Most likely gone so don't pm me.
Cookies given.
Your scripts are formatted incorrectly. Try using code tags.
Gamemode changer: 1 line, 79 characters.
/gamemode 1
/gamemode 0
I quoted it, but then the quoted post blew itself up.
Freezes a mob when you punch it. 1 line, 159 characters.
Lines:20?
Code:
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()
{
}
ModPE!?