Hey Guys SamyPlaysMinecraft Here,
Today I Started A Mod Called The Shared Mod! This Mod Is Based On Sharing Codes Or Even Mods! Before You Show Me Your Code, Make Sure It's Compatible
Introctions
Download The Code
Start Making Your Code Or Paste Your Mod
Make Sure It's Compatible
Tell Me And Give Me Your Code
Be Famous!
Code
function destroyBlock(x,y,z,side){
var data = Level.getData(x, y, z);
var block = Level.getTile(x, y, z);
if(Level.getGameMode()==0 && getCarriedItem()==285){
preventDefault();
Level.dropItem(x+0.5, y, z+0.5, block, 1, data);
Level.destroyBlock(x, y, z);
}
}
function attackHook(attacker, victim){
if(getCarriedItem()==283){
Entity.setHealth(victim, 1);
}
}
Changelog
0.1
Added Silk Touch (Buggy) And Insta Kill. Use Gold Tools To Use There Powers
Hope You Enjoy Our Community Mod Project! If You Like This Project Make Sure To Hit That Arrow! And Also To All The People Who Added Codes Thank You! Don't Forget To Suport The Modders Who Helped!
function destroyBlock(x,y,z,side){
var data = Level.getData(x,y,z);
var block = Level.getTile(x,y,z);
if(Level.getGameMode()==0) {
preventDefault();
Level.dropItem(x+0.5, y, z+0.5, 0, block, 1,data);
Level.destroyBlock(x, y, z);
}
function destroyBlock(x,y,z,side){var data = Level.getData(x,y,z);var block = Level.getTile(x,y,z);if(Level.getGameMode()==0) {preventDefault();Level.dropItem(x+0.5, y, z+0.5, 0, block, 1,data);Level.destroyBlock(x, y, z);}
Thanks But Can You Make It Only Silk Touch Gold Pick? And I love your mods
Thanks But Can You Make It Only Silk Touch Gold Pick? And I love your mods
Just add it! UPDATE!!
function destroyBlock(x,y,z,side){
var data = Level.getData(x, y, z);
var block = Level.getTile(x, y, z);
if(Level.getGameMode()==0 && getCarriedItem()==285){
preventDefault();
Level.dropItem(x+0.5, y, z+0.5, 1, block, 1, data);
Level.destroyBlock(x, y, z);
}
}
Rollback Post to RevisionRollBack
It has been FUN modding, but everything has an end. I've quitted modding! Good Luck & Have Fun! ;D
function destroyBlock(x,y,z,side){
var data = Level.getData(x,y,z);
var block = Level.getTile(x,y,z);
if(Level.getGameMode()==0&&getCarriedItem()==285) {
preventDefault();
Level.dropItem(x+0.5, y, z+0.5, 0, block, 1,data);
Level.destroyBlock(x, y, z);
} }
function destroyBlock(x,y,z,side){
var data = Level.getData(x,y,z);
var block = Level.getTile(x,y,z);
if(Level.getGameMode()==0&&getCarriedItem()==285) {
preventDefault();
Level.dropItem(x+0.5, y, z+0.5, 0, block, 1,data);
Level.destroyBlock(x, y, z);
}
}
function attackHook(attacker, victim){
if(getCarriedItem()==283){
Entity.setHealth(victim, 1);
}
}
function destroyBlock(x,y,z,side){
var data = Level.getData(x,y,z);
var block = Level.getTile(x,y,z);
if(Level.getGameMode()==0&&getCarriedItem()==285) {
preventDefault();
Level.dropItem(x+0.5, y, z+0.5, 0, block, 1,data);
Level.destroyBlock(x, y, z);
}
}
function attackHook(attacker, victim){
if(getCarriedItem()==283){
Entity.setHealth(victim, 1);
}
}
But 1 works for me too.
Rollback Post to RevisionRollBack
It has been FUN modding, but everything has an end. I've quitted modding! Good Luck & Have Fun! ;D
function destroyBlock(x,y,z,side){
var data = Level.getData(x,y,z);
var block = Level.getTile(x,y,z);
if(Level.getGameMode()==0&&getCarriedItem()==285) {
preventDefault();
Level.dropItem(x+0.5, y, z+0.5, 0, block, 1,data);
Level.destroyBlock(x, y, z);
}
}
function attackHook(attacker, victim){
if(getCarriedItem()==283){
Entity.setHealth(victim, 1);
}
}
It doesnt have enough parameters but it works like a charm
Rollback Post to RevisionRollBack
It has been FUN modding, but everything has an end. I've quitted modding! Good Luck & Have Fun! ;D
Today I Started A Mod Called The Shared Mod! This Mod Is Based On Sharing Codes Or Even Mods! Before You Show Me Your Code, Make Sure It's Compatible
Introctions
Start Making Your Code Or Paste Your Mod
Make Sure It's Compatible
Tell Me And Give Me Your Code
Be Famous!
Code
function destroyBlock(x,y,z,side){ var data = Level.getData(x, y, z); var block = Level.getTile(x, y, z); if(Level.getGameMode()==0 && getCarriedItem()==285){ preventDefault(); Level.dropItem(x+0.5, y, z+0.5, block, 1, data); Level.destroyBlock(x, y, z); } } function attackHook(attacker, victim){ if(getCarriedItem()==283){ Entity.setHealth(victim, 1); } }Changelog
Added Silk Touch (Buggy) And Insta Kill. Use Gold Tools To Use There Powers
function destroyBlock(x,y,z,side){ var data = Level.getData(x,y,z); var block = Level.getTile(x,y,z); if(Level.getGameMode()==0) { preventDefault(); Level.dropItem(x+0.5, y, z+0.5, 0, block, 1,data); Level.destroyBlock(x, y, z); }Just add it! UPDATE!!
function destroyBlock(x,y,z,side){ var data = Level.getData(x, y, z); var block = Level.getTile(x, y, z); if(Level.getGameMode()==0 && getCarriedItem()==285){ preventDefault(); Level.dropItem(x+0.5, y, z+0.5, 1, block, 1, data); Level.destroyBlock(x, y, z); } }function attackHook(attacker, victim){ if(getCarriedItem()==283){ Entity.setHealth(victim, 1); } }function destroyBlock(x,y,z,side){ var data = Level.getData(x,y,z); var block = Level.getTile(x,y,z); if(Level.getGameMode()==0&&getCarriedItem()==285) { preventDefault(); Level.dropItem(x+0.5, y, z+0.5, 0, block, 1,data); Level.destroyBlock(x, y, z); } }Pemodder you got the parameters wrong.function destroyBlock(x,y,z,side){ var data = Level.getData(x,y,z); var block = Level.getTile(x,y,z); if(Level.getGameMode()==0&&getCarriedItem()==285) { preventDefault(); Level.dropItem(x+0.5, y, z+0.5, 0, block, 1,data); Level.destroyBlock(x, y, z); } } function attackHook(attacker, victim){ if(getCarriedItem()==283){ Entity.setHealth(victim, 1); } }function destroyBlock(x,y,z,side){ var data = Level.getData(x,y,z); var block = Level.getTile(x,y,z); if(Level.getGameMode()==0&&getCarriedItem()==285) { preventDefault(); Level.dropItem(x+0.5, y, z+0.5, 0, block, 1,data); Level.destroyBlock(x, y, z); } } function attackHook(attacker, victim){ if(getCarriedItem()==283){ Entity.setHealth(victim, 1); } } var shouldRun=1; var xPos=0; var zPos=0; var xDiff=0; var zDiff=0; var jump=0; function modTick() { if(Player.getArmorSlot(2)==316){ if(shouldRun==1) { xPos=getPlayerX(); zPos=getPlayerZ(); shouldRun = shouldRun + 1; } else if(shouldRun==3) { shouldRun=1; xDiff=getPlayerX()-xPos; zDiff=getPlayerZ()-zPos; setVelX(getPlayerEnt(),xDiff); setVelZ(getPlayerEnt(),zDiff); xDiff=0; zDiff=0; } if(shouldRun!=1) { shouldRun = shouldRun + 1; } } if(Player.getArmorSlot(3)==317){ if(Entity.getVelY(getPlayerEnt()) >0&&jump==0) { setVelY(getPlayerEnt(), 0.6); jump=1; } else if(Entity.getVelY(getPlayerEnt())<0&&jump==1) { jump=0; } } }But 1 works for me too.
It doesnt have enough parameters but it works like a charm
function destroyBlock(x,y,z,side){
var data = Level.getData(x, y, z);
var block = Level.getTile(x, y, z);
if(Level.getGameMode()==0 && getCarriedItem()==285){
preventDefault();
Level.dropItem(x+0.5, y, z+0.5, block, 1, data);
Level.destroyBlock(x, y, z);
}
}
function attackHook(attacker, victim){
if(getCarriedItem()==283){
Entity.setHealth(victim, 1);
}
}
function rideAnimal(player,target);
function destroyBlock(x,y,z,side){
var data = Level.getData(x, y, z);
var block = Level.getTile(x, y, z);
if(Level.getGameMode()==0 && getCarriedItem()==285){
preventDefault();
Level.dropItem(x+0.5, y, z+0.5, block, 1, data);
Level.destroyBlock(x, y, z);
}
}
function attackHook(attacker, victim){
if(getCarriedItem()==283){
Entity.setHealth(victim, 1);
function rideAnimal(player,target);
}
}
now the mod lets you ride a animal
yeah i know but since i knew the function i just thoaght it wold be fun to add in