Hey guys, I seem to be having a problem, when my code is:
else if (itemId==50&&blockId==4)
{
setTile(x,y,z,87)
}
when i click on a cobblestone with flint and steel, it is suppose turn into nether rack, but the problem is ,whenever i click on a cobblestone with anything, it turns into nether rack...
How can I fix this?
drop a comment below telling me how to fix it if u know, thx!
function useItem(x, y, z, itemId, blockId, side) {
if(itemId == 259 && blockId == 4) {
preventDefault();
setTile(x, y, z, 87);
}
}
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
I think you have a problem in the rest of the code. Maybe you did this:
function useItem(x, y, z, itemId, blockId, side) {
setTile(x, y, z, 87);
}
I have to see the rest of the code to fix this.
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
I actually saw the whole code. The itemId's were messed up. I think he thought 50 is flint and steel.
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
To post a comment, please login or register a new account.
else if (itemId==50&&blockId==4) { setTile(x,y,z,87) }when i click on a cobblestone with flint and steel, it is suppose turn into nether rack, but the problem is ,whenever i click on a cobblestone with anything, it turns into nether rack...
How can I fix this?
drop a comment below telling me how to fix it if u know, thx!
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
Well you won't get your revenge today.
Try this code deathhollo:
function useItem(x, y, z, itemId, blockId, side) { if(itemId == 259 && blockId == 4) { preventDefault(); setTile(x, y, z, 87); } }IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
function useItem(x, y, z, itemId, blockId, side) { setTile(x, y, z, 87); }I have to see the rest of the code to fix this.
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
OHHHH! Take that!!!! I called that!
But seriously, we do need the rest of the code.
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->