Is it possible if I can shorten this my code so that it will take up a less space and will do the exact same thing? What it does is that if the "Scissors" taps on any block, it will delete the block and add it to my inventory.
hey he's learning. Give him a break. Remember your first mod?
What the heck?? I'm no noob mod maker! This mod isn't suppose to be a silk touch. It has other things to it, as I said it's not the whole code. What the code does is let's you copy blocks, cut blocks, gives you hostile spawn eggs, grenades, teleportation stick with an enderpearl attached to a stick, and erasers which let's you erase 1x1, 3x3, and 5x5 areas. This is no baby stuff. (No I am not mad, just thought I'd let you guys know that this isn't a mod that "gives you diamonds when you tap a block" level mod). Use the ID 11230 and download the texture pack https://www.dropbox.com/sm/create/JMods Texture.zip so you can see it for yourself.
What the heck?? I'm no noob mod maker! This mod isn't suppose to be a silk touch. It has other things to it, as I said it's not the whole code. What the code does is let's you copy blocks, cut blocks, gives you hostile spawn eggs, grenades, teleportation stick with an enderpearl attached to a stick, and erasers which let's you erase 1x1, 3x3, and 5x5 areas. This is no baby stuff. (No I am not mad, just thought I'd let you guys know that this isn't a mod that "gives you diamonds when you tap a block" level mod). Use the ID 11230 and download the texture pack https://www.dropbox....ods Texture.zip so you can see it for yourself.
Good ideas and a good building block; but when it comes down to it this is a collection of multiple mod (ModPack.)
else if(itemId==403&&blockId==1){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(1,1);
} else if(itemId==403&&blockId==2){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(2,1);
} else if(itemId==403&&blockId==3){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(3,1);
} else if(itemId==403&&blockId==4){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(4,1);
} else if(itemId==403&&blockId==5){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(5,1);
} else if(itemId==403&&blockId==6){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(6,1);
} else if(itemId==403&&blockId==1){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(6,1);
} else if(itemId==403&&blockId==12){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(12,1);
} else if(itemId==403&&blockId==13){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(13,1);
} else if(itemId==403&&blockId==14){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(14,1);
} else if(itemId==403&&blockId==15){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(15,1);
} else if(itemId==403&&blockId==16){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(16,1);
} else if(itemId==403&&blockId==17){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(17,1);
} else if(itemId==403&&blockId==18){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(18,1);
} else if(itemId==403&&blockId==20){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(20,1);
} else if(itemId==403&&blockId==21){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(21,1);
} else if(itemId==403&&blockId==22){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(22,1);
} else if(itemId==403&&blockId==24){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(24,1);
} else if(itemId==403&&blockId==26){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(26,1);
} else if(itemId==403&&blockId==28){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(28,1);
} else if(itemId==403&&blockId==30){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(30,1);
} else if(itemId==403&&blockId==35){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(35,1);
} else if(itemId==403&&blockId==41){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(41,1);
} else if(itemId==403&&blockId==42){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(42,1);
} else if(itemId==403&&blockId==45){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(45,1);
} else if(itemId==403&&blockId==46){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(46,1);
} else if(itemId==403&&blockId==47){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(47,1);
} else if(itemId==403&&blockId==48){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(48,1);
} else if(itemId==403&&blockId==49)
{
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(49,1);
} else if(itemId==403&&blockId==53){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(53,1);
} else if(itemId==403&&blockId==54){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(54,1);
} else if(itemId==403&&blockId==56){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(56,1);
} else if(itemId==403&&blockId==57){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(57,1);
} else if(itemId==403&&blockId==58){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(58,1);
} else if(itemId==403&&blockId==65){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(65,1);
} else if(itemId==403&&blockId==73){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(73,1);
} else if(itemId==403&&blockId==67){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(67,1);
} else if(itemId==403&&blockId==74){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(74,1);
} else if(itemId==403&&blockId==78){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(78,1);
} else if(itemId==403&&blockId==79){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(79,1);
} else if(itemId==403&&blockId==80){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(80,1);
} else if(itemId==403&&blockId==81){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(81,1);
} else if(itemId==403&&blockId==82){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(82,1);
} else if(itemId==403&&blockId==85){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(85,1);
} else if(itemId==403&&blockId==87){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(87,1);
} else if(itemId==403&&blockId==89){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(89,1);
} else if(itemId==403&&blockId==98){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(98,1);
} else if(itemId==403&&blockId==102){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(102,1);
} else if(itemId==403&&blockId==103){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(103,1);
} else if(itemId==403&&blockId==108){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(108,1);
} else if(itemId==403&&blockId==109){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(109,1);
} else if(itemId==403&&blockId==112){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(112,1);
} else if(itemId==403&&blockId==114){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(114,1);
} else if(itemId==403&&blockId==128){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(128,1);
} else if(itemId==403&&blockId==128){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(128,1);
} else if(itemId==403&&blockId==155){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(155,1);
} else if(itemId==403&&blockId==156){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(156,1);
} else if(itemId==403&&blockId==245){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(245,1);
} else if(itemId==403&&blockId==246){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(246,1);
} else if(itemId==403&&blockId==247){
getTile(x,y,z);
setTile(x,y,z,0)
addItemInventory(247,1);
}
function useItem(x, y, z, itemId, blockId, side) { if(itemId==403) { setTile(x, y, z, 0); addItemInventory(blockId, 1); } }Oh sweet jesus. Thank you so much!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYeah, I remember my first ModPE script:
java.lang.System.out.println("Hello world");(This was before I even added any ModPE methods - I had to use Rhino's Java method calling support. Needless to say, you shouldn't try this at home)
What the heck?? I'm no noob mod maker! This mod isn't suppose to be a silk touch. It has other things to it, as I said it's not the whole code. What the code does is let's you copy blocks, cut blocks, gives you hostile spawn eggs, grenades, teleportation stick with an enderpearl attached to a stick, and erasers which let's you erase 1x1, 3x3, and 5x5 areas. This is no baby stuff. (No I am not mad, just thought I'd let you guys know that this isn't a mod that "gives you diamonds when you tap a block" level mod). Use the ID 11230 and download the texture pack https://www.dropbox.com/sm/create/JMods Texture.zip so you can see it for yourself.
Click Banner to SUBSCRIBE!!! I'm in the Team Flame Clan!!! Click that little green arrow!! -------------->
Yes.
function useItem(x,y,z,itemId,blockId,side) { if(itemId==280) { clientMessage("qwertyuiopasdfghjklzxcvbnm"); } }Click Banner to SUBSCRIBE!!! I'm in the Team Flame Clan!!! Click that little green arrow!! -------------->