Rules:
- Scripts must not exceed 50 lines. (Duh!)
- At a minimum, scripts must run in the latest Beta version of BlockLauncher.
- If you manage it, you get bragging rights and a picture of a cookie to put in your signature
- Keep line lengths reasonable (don't exceed approximately 150 characters)
- If you want to base your script off one of these ideas, you must ask the author for permission unless they say so otherwise in their post
Vehicles: 50 lines.
Build a vehicle out of blocks, then tap it with an iron hoe to fly it. tap on a block to steer in that direction. To stop, tap with any other item.
Sep 20, 2013 - 500 Internal Server Error
var vehicleMaxSize = 10, vehicleSpeed = 5; // blocks wide search area and speed - move every 10 ticks
var vehicleBlocks = null;
var disallowedIds = [1, 2, 3, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 24, 31, 37, 38];
var vehicleLoc = null, vehicleVel = [0, 1, 0];
var directions = [[0, 1, 0], [0, -1, 0], [0, 0, 1], [0, 0, -1], [1, 0, 0], [-1, 0, 0]];
function useItem(x, y, z, itemId, blockId, side) {
if (itemId != 292) {
vehicleLoc = vehicleBlocks = null;
return;
}
preventDefault();
if (vehicleLoc != null) {
vehicleVel = directions[side];
return;
}
vehicleBlocks = new Array(vehicleMaxSize);
for (var xx = 0; xx < vehicleMaxSize; xx++) {
vehicleBlocks[xx] = new Array(vehicleMaxSize);
for (var yy = 0; yy < vehicleMaxSize; yy++) {
vehicleBlocks[xx][yy] = new Array(vehicleMaxSize);
for (var zz = 0; zz < vehicleMaxSize; zz++) {
var blockId = getTile(x + xx - (vehicleMaxSize / 2),
y + yy - (vehicleMaxSize / 2), z + zz - (vehicleMaxSize / 2));
vehicleBlocks[xx][yy][zz] = (disallowedIds.indexOf(blockId) >= 0) ? 0: blockId;
}
}
}
vehicleLoc = [x - (vehicleMaxSize / 2), y - (vehicleMaxSize / 2), z - (vehicleMaxSize / 2)];
}
function modTick() {
if (vehicleLoc == null || --vehicleSpeed > 0) return;
vehicleSpeed = 5;
for (var x = 0; x < vehicleMaxSize; ++x)
for (var y = 0; y < vehicleMaxSize; ++y)
for (var z = 0; z < vehicleMaxSize; ++z)
if (vehicleBlocks[x][y][z] != 0)
setTile(vehicleLoc[0] + x, vehicleLoc[1] + y, vehicleLoc[2] + z, 0);
vehicleLoc[0] += vehicleVel[0];
vehicleLoc[1] += vehicleVel[1];
vehicleLoc[2] += vehicleVel[2];
for (var x = 0; x < vehicleMaxSize; x++)
for (var y = 0; y < vehicleMaxSize; y++)
for (var z = 0; z < vehicleMaxSize; z++)
if (vehicleBlocks[x][y][z] != 0)
setTile(vehicleLoc[0] + x, vehicleLoc[1] + y, vehicleLoc[2] + z, vehicleBlocks[x][y][z]);
setPositionRelative(getPlayerEnt(), vehicleVel[0], vehicleVel[1], vehicleVel[2]);
}
function newLevel() {
vehicleLoc = vehicleBlocks = null;
}
Pets: 50 lines.
Feel lonely in mcpe?
Here's the solution , Pets ModPE script.
You can get a pet by giving a mob a steak.
ones he loves you, you can do these commands:
Instant Invisible Bedrock!: Number Of Lines: 7
Ever needed a glass like block that was invincible?
Well wait no longer you can now get this glass like substance with the resistance of bedrock by simply hitting the blocks you need to change with a wooden stick!
How To Use:
Simply hit the block that you want to change with a stick!
Id:
3272
//Made By Cr33Pig
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==280)//stick
{
setTile(x,y,z,95);//Invisible Bedrock
}
}
Shorter invisible bedrock: 3 lines.
Shortened version of Cr33Pig's script.
Sep 22, 2013 - 500 Internal Server Error
function useItem(x, y, z, i, b, s) {
if (i == 280) setTile(x, y, z, 95);
}
Walk on Liquids by Donalddoesmc
Type /enableWol to make you walk on liquids! /disableWol to disable.
Or instead tap ice/obsidian respectively!
Lines: 49
var Don = 0;
var Data;
var Px;
var Py;
var Pz;
function modTick()
{
if(Don == 0)
{
Px = getPlayerX();
Py = getPlayerY();
Pz = getPlayerZ();
if (getTile(Px,Py-2,Pz)==8||getTile (Px,Py-2,Pz)==9)
{
setTile (Px, Py-2, Pz, 79);
}
else if (getTile(Px,Py-2,Pz)==10||getTile (Px,Py-2,Pz)==11)
{
setTile (Px,Py-2,Pz,49);
}
}
}
function useItem (x, y, z, itemId, blockId, side)
{
if (blockId==79)
{
Don = 0;
clientMessage ("The power of cold filled your body");
}
if (blockId==49)
{
Don = 1;
clientMessage ("The power of cold was removed");
}
}
function procCmd(cmd)
{
Data = cmd.split(" ");
if(Data[0]=="enableWol")
{
Don = 0;
print ("Wol enabled");
}
else if (Data[0]=="disableWol")
{
Don = 1;
print ("Wol disabled");
}
}
function destroyBlock(x, y, z, side) {
if(getTile(x, y, z)==56 && getCarriedItem()==278||getCarriedItem()==257) {
var random = Math.floor((Math.random()*10)+1);
if(random == 1) {
addItemInventory(264, 5);
setTile(x, y, z, 0);
preventDefault();
} else if(random == 2) {
Player.setHealth(0);
setTile(x, y, z, 0);
preventDefault();
} else if(random == 3 || random == 4) {
addItemInventory(264, 1);
setTile(x, y, z, 0);
preventDefault();
} else if (random == 5 || random == 6) {
Player.setHealth(10);
setTile(x, y, z, 0);
preventDefault();
} else if(random == 7 || random == 8 || random == 9 || random == 10) {
addItemInventory(1, 1);
setTile(x, y, z, 0);
preventDefault();
}
}
}
30 Lines, could be less if i make it look confusing.
It basically Gives you the chance of 10% to get 5 Diamonds, 10% to die, 20% to loose half of hearts, 20% to get a normal Diamond and finally 40% to only get a stone .
Super wheat script!
you can explode stone, you can make farmland by clicking a grass block and you can plant seeds with clicking on farmland with a wheat!
You can get wheat by clicking on netherrack with a golden shovel!
the id is 11380
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?
//Creepig01's Second Entry For The "ModPE In 50 Lines Challenge"
function useItem(x,y,z,itemId,blockId,side)
{
var gpx = getPlayerX(); var gpy = getPlayerY(); var gpz = getPlayerZ();
if(itemId==267)
{
setTile(gpx+10,gpy+10,gpz+10,12);//First line in "Hi"
setTile(gpx+10,gpy+11,gpz+10,12);
setTile(gpx+10,gpy+12,gpz+10,12);
setTile(gpx+10,gpy+13,gpz+10,12);
setTile(gpx+10,gpy+14,gpz+10,12);//End of the first line in "Hi"
setTile(gpx+9,gpy+1,gpz+10,24);//Start of the middle line in the "H" in "Hi"
setTile(gpx+8,gpy+1,gpz+10,24);//End of the middle line in the "H" in "Hi"
setTile(gpx+7,gpy+10,gpz+10,12);//Start or the second line in "Hi"
setTile(gpx+7,gpy+11,gpz+10,12);
setTile(gpx+7,gpy+12,gpz+10,12);
setTile(gpx+7,gpy+13,gpz+10,12);
setTile(gpx+7,gpy+14,gpz+10,12);//End of the second line in "Hi"
setTile(gpx+4,gpy+10,gpz+10,12);//Start of the "I" in "Hi"
setTile(gpx+4,gpy+11,gpz+10,12);
setTile(gpx+4,gpy+12,gpz+10,12);
setTile(gpx+4,gpy+13,gpz+10,12);
setTile(gpx+4,gpy+14,gpz+10,12);//End of the "I" in "Hi"
}
}
Name: Majestic Butter Pick Enchantments Lines: 45 Description: as the name tells
Only fortune by using dirt on chest presently
This is custom experience level system. The MCPC system is too complicated. Different from others: you need to collect enchantment points! Code:
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(){
;
}//forgot what I wanted to add lol
not debugged.
Download: null. Well if you really want download press "reload". (Doesn't BlockLauncher import from ClipBoard too?)
Name: Mobs of Mobs Lines: 33 Description: Spawns a mob of mobs according to the difficulty level every time a mob spawns. The difficulty level doesn't read the default in the settings. It is defined by /diff <int 0-5> in command. Default is 0. ORIGINAL IDEA! Code:
function newLevel(){
if(readData("noctDiff")==""/*or whatever returned if undefined*/){
saveData("noctDiff","0");
}
}
function entityAddedHook(e){
if(!(32<=Entity.getEntityTypeId(e)<=36))return;
var coor1=Entity.getX(e);
var coor2=Entity.getY(e);
var coor3=Entity.getZ(e);
var a=readData("noctDiff");
if(a=="1"){
var no=1;
}else if(a=="2"){
var no=2;
}else if(a=="3"){
var no=3;
}else if(a=="4"){
var no=4;
}else if(a=="5"){
var no=5;
}else var no=0;
while(no>0){
Entity.spawnMob(coor1,coor2,coor3,Entity.getEntityTypeId(e));
no--;
}
}
function procCmd(c){
if(c.split(" ")[0]!="/diff")return;
if(c.split(" ").length<2)printInvPar();return;
var p = c.split(" ")[1];
if(p!="0"&&p!="1"&&p!="2"&&p!="3"&&p!="4"&&p!="5"){
printInvPar();return;
}else saveData("noctDiff",p);
}
function printInvPar(){
print("Invalid parameters! Type /diff <int 0-5>");
}
Debugged in Eclipse JavaScript plugin.
Download: null. Well if you really want download press refresh/reload. (Doesn't BlockLauncher import from ClipBoard too?)
Name: Breeding Description: tap wheat/seed/melon slices on farm animals and send them to love mode Change log: Initial release Upcoming: love mode animations Lines: barely shinked into 48 lines from 63 lines without the first line (comment). If all comments are deleted, some lines are unreasonably long some might think, but met your written instructions <150 chars. Code:
/*this script is more "reasonable" if the comments are not counted*/
var lovemodeChickenList,lovemodeCowList,lovemodePigList,lovemodeSheepList;
function attackHook(a,v){var target=Entity.getEntityTypeId(v);if(Entity.getAnimalAge(v)!=0)clientMessage("only an adult can breed");return;
if(getCarriedItem()==296/*wheat*/){
if(target==11/*cow*/)preventDefault();lovemodeCowList[lovemodeCowList.length]=v;addItemInventory(296,-1);
if(target==13/*sheep*/)preventDefault();lovemodeSheepList[lovemodeSheepList.length]=v;addItemInventory(296,-1);}
if(getCarriedItem()==295/*seed wheat*/&&target==10/*chicken*/){
preventDefault();lovemodeChickenList[lovemodeChickenList.length]=v;addItemInventory(295,-1);}
if(getCarriedItem()==360/*melon sub carrots*/&&target==12/*pigs*/){
preventDefault();lovemodePigList[lovemodePigList.length]=v;addItemInventory(360,-1);}}
function modTick(){rndTime++;//to avoid lagging because of the massive for loop. I think checking it every 5 seconds is the best. (there won't be a lot lovers, right?)
if(rndTime%(20*(lovemodeChickenList.length))==0)testChickenLove();if(rndTime%(20*(lovemodeCowlist.length))==0)testCowLove();
if(rndTime%(20*(lovemodePiglist.length))==0)testPigLove();if(rndTime%(20*(lovemodeSheeplist.length))==0)testSheepLove();}
function testChickenLove(){var chickenLovers=lovemodeChickenList.length;var j,k;
for(j=0;j<chickenLovers;j++){for(k=j+1;k<chickenLovers;k++){
var jX=Entity.getX(lovemodeChickenList[j]),jY=Entity.getY(lovemodeChickenList[j]),jZ=Entity.getZ(lovemodeChickenList[j]);
var kX=Entity.getX(lovemodeChickenList[k]),jY=Entity.getY(lovemodeChickenList[k]),jZ=Entity.getZ(lovemodeChickenList[k]);
var xDist=Math.abs(jX-kX),yDist=Math.abs(jY-kY),zDist=Math.abs(jZ-kZ);
if(xDist+yDist+zDist<=15){setPosition(lovemodeChickenList[j],Math.min(jX,kX),Math.min(jY,kY),Math.min(jZ,kZ));
setPosition(lovemodeChickenList[k],Math.min(jX,kX)+xDist/2,Math.min(jY,kY)+yDist/2,Math.min(jZ,kZ)+zDist/2);
Entity.spawnMob(Math.min(jX,kX)+xDist/2,Math.min(jY,kY)+yDist/2,Math.min(jZ,kZ)+zDist/2,10);
Entity.setAnimalAge(lovemodeChickenList[j],-24000);Entity.setAnimalAge(lovemodeChickenList[k],-24000);}}}}
function testCowLove(){var cowLovers=lovemodeCowList.length;var j,k;
for(j=0;j<cowLovers;j++){for(k=j+1;k<cowLovers;k++){
var jX=Entity.getX(lovemodeCowList[j]),jY=Entity.getY(lovemodeCowList[j]),jZ=Entity.getZ(lovemodeCowList[j]);
var kX=Entity.getX(lovemodeCowList[k]),jY=Entity.getY(lovemodeCowList[k]),jZ=Entity.getZ(lovemodeCowList[k]);
var xDist=Math.abs(jX-kX),yDist=Math.abs(jY-kY),zDist=Math.abs(jZ-kZ);
if(xDist+yDist+zDist<=15){setPosition(lovemodeCowList[j],Math.min(jX,kX),Math.min(jY,kY),Math.min(jZ,kZ));
setPosition(lovemodeCowList[k],Math.min(jX,kX)+xDist/2,Math.min(jY,kY)+yDist/2,Math.min(jZ,kZ)+zDist/2);
Entity.spawnMob(Math.min(jX,kX)+xDist/2,Math.min(jY,kY)+yDist/2,Math.min(jZ,kZ)+zDist/2,10);
Entity.setAnimalAge(lovemodeCowList[j],-24000);Entity.setAnimalAge(lovemodeCowList[k],-24000);}}}}
function testPigLove(){var pigLovers=lovemodePigList.length;var j,k;
for(j=0;j<pigLovers;j++){for(k=j+1;k<pigLovers;k++){
var jX=Entity.getX(lovemodePigList[j]),jY=Entity.getY(lovemodePigList[j]),jZ=Entity.getZ(lovemodePigList[j]);
var kX=Entity.getX(lovemodePigList[k]),jY=Entity.getY(lovemodePigList[k]),jZ=Entity.getZ(lovemodePigList[k]);
var xDist=Math.abs(jX-kX),yDist=Math.abs(jY-kY),zDist=Math.abs(jZ-kZ);
if(xDist+yDist+zDist<=15){setPosition(lovemodePigList[j],Math.min(jX,kX),Math.min(jY,kY),Math.min(jZ,kZ));
setPosition(lovemodePigList[k],Math.min(jX,kX)+xDist/2,Math.min(jY,kY)+yDist/2,Math.min(jZ,kZ)+zDist/2);
Entity.spawnMob(Math.min(jX,kX)+xDist/2,Math.min(jY,kY)+yDist/2,Math.min(jZ,kZ)+zDist/2,10);
Entity.setAnimalAge(lovemodePigList[j],-24000);Entity.setAnimalAge(lovemodePigList[k],-24000);}}}}
function testSheepLove(){var pigLovers=lovemodePigList.length;var j,k;
for(j=0;j<sheepLovers;j++){for(k=j+1;k<sheepLovers;k++){
var jX=Entity.getX(lovemodeSheepList[j]),jY=Entity.getY(lovemodeSheepList[j]),jZ=Entity.getZ(lovemodeSheepList[j]);
var kX=Entity.getX(lovemodeSheepList[k]),jY=Entity.getY(lovemodeSheepList[k]),jZ=Entity.getZ(lovemodeSheepList[k]);
var xDist=Math.abs(jX-kX),yDist=Math.abs(jY-kY),zDist=Math.abs(jZ-kZ);
if(xDist+yDist+zDist<=15){setPosition(lovemodeSheepList[j],Math.min(jX,kX),Math.min(jY,kY),Math.min(jZ,kZ));
setPosition(lovemodeSheepList[k],Math.min(jX,kX)+xDist/2,Math.min(jY,kY)+yDist/2,Math.min(jZ,kZ)+zDist/2);
Entity.spawnMob(Math.min(jX,kX)+xDist/2,Math.min(jY,kY)+yDist/2,Math.min(jZ,kZ)+zDist/2,10);
Entity.setAnimalAge(lovemodeSheepList[j],-24000);Entity.setAnimalAge(lovemodeSheepList[k],-24000);}}}}
Download: Press reload/refresh if you really need download.
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.
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])
Sorry,I don't have a mod as I need my computer before I can learn how to.mod, but your mod is amazing!I can drive the entire world if I want (although its kinda weird) and you can even drive into the invisible bedrock border (but you cant drive back out) I just wanted to say thanks yet again for another amazing contribution to the modding community
Instant Invisible Bedrock!: Number Of Lines: 7
Ever needed a glass like block that was invincible?
Well wait no longer you can now get this glass like substance with the resistance of bedrock by simply hitting the blocks you need to change with a wooden stick!
How To Use:
Simply hit the block that you want to change with a stick!
Instant Invisible Bedrock!: Number Of Lines: 2
Ever needed a glass like block that was invincible?
Well wait no longer you can now get this glass like substance with the resistance of bedrock by simply hitting the blocks you need to change with a wooden stick!
How To Use:
Simply hit the block that you want to change with a stick!
- Scripts must not exceed 50 lines. (Duh!)
- At a minimum, scripts must run in the latest Beta version of BlockLauncher.
- If you manage it, you get bragging rights and a picture of a cookie to put in your signature
- Keep line lengths reasonable (don't exceed approximately 150 characters)
- If you want to base your script off one of these ideas, you must ask the author for permission unless they say so otherwise in their post
Inspired by https://forums.bukkit.org/threads/codename_bs-list-of-plugins-under-50-lines-of-code-aka-the-under-50-challenge.33264/
List of current scripts:
Vehicles: 50 lines.
Build a vehicle out of blocks, then tap it with an iron hoe to fly it. tap on a block to steer in that direction. To stop, tap with any other item.
Sep 20, 2013 - 500 Internal Server Error
This script is licensed under CC-BY-SA 3.0: http://creativecommons.org/licenses/by-sa/3.0/ .
Shorter invisible bedrock: 3 lines.
Shortened version of Cr33Pig's script.
Sep 22, 2013 - 500 Internal Server Error
How to submit
Follow the above template (name, lines, description, code, download), and if your script is awesome enough I'll post it in the top post.
Once you've submitted a script, feel free to add this to your sig:
You are trying to do the most in the least lines possible. No themes - as long as it's awesome in your opinion.
Follow @Darth377Apps
Please check out my Twitter account!
I have been working on a few games!
Give me ALL THE INTERNETS!
Nice! Here's your cookie:
Sure, go for it.
49 lines is more awesome. 51 lines is out.
I meant that it is hard to write only 50 lines :).
And here's my mod:
Apokalypse-50 lines.
Start a snowapokalypse.
/Apokalypse //starts/ends the apokalypse
Donwload: https://db.tt/4iZ3nPdo
After 15 min. (picture): https://db.tt/2DJkyYAl
If I had more lines left, I would have added heat, etc..
+1 Me If I Helped You!
Follow Me On Twitter: @shadowdude246
Awesome! Cookie awarded.
Challenge accepted.
+1 Me If I Helped You!
Follow Me On Twitter: @shadowdude246
It can be less. You can use a script only if you've written it yourself.
Ever needed a glass like block that was invincible?
Well wait no longer you can now get this glass like substance with the resistance of bedrock by simply hitting the blocks you need to change with a wooden stick!
How To Use:
Simply hit the block that you want to change with a stick!
Id:
3272
Cookie for you as well. Also, I counted 7 lines.
{
if(itemId==16)
{
preventDefault();
bl_spawnMob(x, y+1, z, 36, "mob/pigzombie.png");
}
else if(itemId==73)
{
preventDefault();
bl_spawnMob(x, y+1, z, 35, "mob/spider.png");
}
else if(itemId==56)
{
preventDefault();
bl_spawnMob(x, y+1, z, 34, "mob/skeleton.png");
}
else if(itemId==14)
{
preventDefault();
bl_spawnMob(x, y+1, z, 33, "mob/creeper.png");
}
else if(itemId==21)
{
preventDefault();
bl_spawnMob(x, y+1, z, 32, "mob/zombie.png");
}
else if(itemId==15)
{
preventDefault();
spawnPigZombie(x, y+1, z,274,"mob/char.png");
}
}
Beat this:
Shorter invisible bedrock: 3 lines.
Shortened version of Cr33Pig's script.
Sep 22, 2013 - 500 Internal Server Error