I'm adding more weapons and tools but one problem.. I was working on it, and I got close to being able to upload the test version, but when I tested it, it wouldnt work, it imported just fine, but the game completely ignored the code.. Could you find and correct the mistake for me, I've looked as hard as I could.
var scythe = 0;
var craft = 0;
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==278)//If you are using a Diamond Pickaxe
{
if(blockId==73)//Redstone
{
setTile(x,y,z,0);
addItemInventory(351,4);
}
}
}
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==348)
{
if(blockId==49)
{
if(craft == 0)
{
craft = 1;
print("Now tap the obsidian with a slimeball!");
}
}
}
else
if(itemId==341)
{
if(blockId==49)
{
if(craft == 1)
{
craft = 0;
setTile(x,y,z,0);
addItemInventory(246,1);
print("Mana Forge, Glowing obsidian, has been crafted and inserted into your inventory!");
}
}
}
}
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==293)
{
if(blockId==264)
{
if(craft == 0)
{
craft = 1;
print("Add 1 gold!");
}
}
}
}
it had more but I striped a lot of it trying to figure out what went wrong..
Plz help me out if you want a PC like mod.
var scythe = 0; var craft = 0; function useItem(x,y,z,itemId,blockId,side) { if(itemId==278)//If you are using a Diamond Pickaxe { if(blockId==73)//Redstone { setTile(x,y,z,0); addItemInventory(351,4); } } } function useItem(x,y,z,itemId,blockId,side) { if(itemId==348) { if(blockId==49) { if(craft == 0) { craft = 1; print("Now tap the obsidian with a slimeball!"); } } } else if(itemId==341) { if(blockId==49) { if(craft == 1) { craft = 0; setTile(x,y,z,0); addItemInventory(246,1); print("Mana Forge, Glowing obsidian, has been crafted and inserted into your inventory!"); } } } } function useItem(x,y,z,itemId,blockId,side) { if(itemId==293) { if(blockId==264) { if(craft == 0) { craft = 1; print("Add 1 gold!"); } } } }it had more but I striped a lot of it trying to figure out what went wrong..Plz help me out if you want a PC like mod.
if(itemId==267)
{
if (blockId==43)
}
do
if (itemId==267 && blockId==43)
{so its faster and cleaner.}