Sorry Im apparently really bad at this. Well here it is, but it wont let me load it because of the errors so i don't know whats wrong :
var rep = 0
var repblock = 0
function main(p) {
switch(p[0]) {
case "help":
switch(p[1]) {
case "rep"
showHelp("rep", "Replaces the block you tap with the selected block","","");
break;
}
}
case "rep":
addItemInventory(280,1);
print("tap your replacing block with the stick");
}
}
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==280)
{
var repblock = function getTile(x,y,z);
addItemInventory(281,1)
print("tap what every lock you want replaced with your chosen block");
}
if(itemId==281)
{
function setTile(x,y,z,repblock,0);
}
}
I fixed the command part but I'm not very good at modpe so I can't help with the second.
function procCmd(c) {
var data = c.split(" ");
var command = data[0];
switch(command) {
case 'Help rep': {
clientMessage("Replaces the block you tap with the selected block.")}
break;
}
}
Rollback Post to RevisionRollBack
Help Me by clicking above links and skipping ad! I support:
var rep = 0
var repblock = 0
function main(p) {
switch(p[0]) {
case "help":
switch(p[1]) {
case "rep"
showHelp("rep", "Replaces the block you tap with the selected block","","");
break;
}
}
case "rep":
addItemInventory(280,1);
print("tap your replacing block with the stick");
}
}
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==280)
{
var repblock = function getTile(x,y,z);
addItemInventory(281,1)
print("tap what every lock you want replaced with your chosen block");
}
if(itemId==281)
{
function setTile(x,y,z,repblock,0);
}
}
function procCmd(c) { var data = c.split(" "); var command = data[0]; switch(command) { case 'Help rep': { clientMessage("Replaces the block you tap with the selected block.")} break; } }Help Me by clicking above links and skipping ad!
I support: