I released EmeraldCraft a few days ago, http://www.minecraft...a-now-released/ but I can't figure out why destroying a block and dropping an item will also create that "ghost" item which is kind of greyed-out or shaded over, and also seems to have a value of "0" in your inventory. Help make this smoother please!
The latest, buggy version of the whole script is in my post here #19, near the bottom.
Any help or suggestions are welcome! I'm kinda stuck on this now... Thanks!
BTW, the problem was this: I had been using setCarriedItem AND addItemInvertory at the SAME time, which clearly removed the item twice, which clearly created the "0" ghost image. Haha.
Here's what happens now:
Iron Sword >> Destroys >> Block of Emerald (249) >> Drops 1x Emerald Sword, Adds 1x Ghost Iron Sword (and Keeps the original Iron Sword too! WTF?)
Here's what SHOULD happen:
Iron Sword >> Destroys >> Block of Emerald (249) >> Drops 1x Emerald Sword, Removes 1x Iron Sword (and no ghost items anywhere!)
I could never find the actual parameters for setCarriedItem().... so it should work if I use just Entity.setCarriedItem(getPlayerEnt(),0); and don't do addItemInventory -1 ?
Gaaaah! Still not working! So, the script is still making those "Ghost" items I described/screenshot above...
I don't know anymore... help! This uses pretty much the same code and methods as my SmokeCraft mod, which is fine, no ghost items or weirdness. Help please.
Could you make a new block for the emerald ore and block entirely? Like you did with the tools? Because I think that might solve your problem.
Also, I can see that you are adding a negative amount of 1 to the inventory, what is there are 2?
Could you make a new block for the emerald ore and block entirely? Like you did with the tools? Because I think that might solve your problem.
I don't think so... maybe with some custom damage values and a texture PNG override... but I'm not sure that is it... I will play around with those ideas!
I released EmeraldCraft a few days ago, http://www.minecraft...a-now-released/ but I can't figure out why destroying a block and dropping an item will also create that "ghost" item which is kind of greyed-out or shaded over, and also seems to have a value of "0" in your inventory. Help make this smoother please!
The latest, buggy version of the whole script is in my post here #19, near the bottom.
Any help or suggestions are welcome! I'm kinda stuck on this now...Thanks!Its all fixed and working awesome now! Go here! http://www.minecraft...s-all-improved/
Thanks to everyone for their input.
BTW, the problem was this: I had been using setCarriedItem AND addItemInvertory at the SAME time, which clearly removed the item twice, which clearly created the "0" ghost image. Haha.
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2610428-0-13-emeraldcraft-metalurgic-gems-alchemy
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm back from my hibernation. Most likely gone so don't pm me.
crap! How did that get in there!? Thanks, will test...
EDIT: Hmm, no still buggy, but thanks!
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2610428-0-13-emeraldcraft-metalurgic-gems-alchemy
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm back from my hibernation. Most likely gone so don't pm me.
You need this TP to make the mods work... http://www.mediafire.com/download/3k436ml9m6fivsj/NATEmerald_0.7.6_v5.60.zip
Just use THAT LINK ONLY for the TP, it will work.
... where? With every dropItem? or every addItemInventory? Thanks, BTW...
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2610428-0-13-emeraldcraft-metalurgic-gems-alchemy
Still makes the ghost item. I will keep working... any other suggestions folks?
Thanks...
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2610428-0-13-emeraldcraft-metalurgic-gems-alchemy
Here's what happens now:
Iron Sword >> Destroys >> Block of Emerald (249) >> Drops 1x Emerald Sword, Adds 1x Ghost Iron Sword (and Keeps the original Iron Sword too! WTF?)
Here's what SHOULD happen:
Iron Sword >> Destroys >> Block of Emerald (249) >> Drops 1x Emerald Sword, Removes 1x Iron Sword (and no ghost items anywhere!)
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2610428-0-13-emeraldcraft-metalurgic-gems-alchemy
I will try! Thank you so much for all your help!
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2610428-0-13-emeraldcraft-metalurgic-gems-alchemy
So, the script is still making those "Ghost" items I described/screenshot above...
I don't know anymore... help! This uses pretty much the same code and methods as my SmokeCraft mod, which is fine, no ghost items or weirdness. Help please.
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2610428-0-13-emeraldcraft-metalurgic-gems-alchemy
It IS the update game block, with a different texture! The problem seems to be with the destroyBlock or addItemInventory, I think...
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2610428-0-13-emeraldcraft-metalurgic-gems-alchemy
Also, I can see that you are adding a negative amount of 1 to the inventory, what is there are 2?
I don't think so... maybe with some custom damage values and a texture PNG override... but I'm not sure that is it... I will play around with those ideas!
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2610428-0-13-emeraldcraft-metalurgic-gems-alchemy
Newest BUGGY code (please help!):
//EmeraldCraft-v0.9.2B - By Nate Krell ModPE.setItem(413, 13, 7, "Emerald Sword"); ModPE.setItem(414, 13, 8, "Emerald Axe"); ModPE.setItem(415, 13, 9, "Emerald Pickaxe"); ModPE.setItem(416, 13, 10, "Emerald Shovel"); ModPE.setItem(417, 13, 11, "Emerald Hoe"); ModPE.setItem(412, 13, 12, "Emerald"); function newLevel(){ setTile(255,31,5,248,0); setTile(111,40,111,248,0); setTile(66,30,200,248,0); setTile(5,22,210,248,0); setTile(88,24,110,248,0); setTile(69,20,150,248,0); setTile(0,20,0,248,0); setTile(0,80,0,248,0); setTile(255,80,255,248,0); setTile(255,40,255,248,0); setTile(235,31,5,248,0); setTile(111,41,111,248,0); setTile(66,31,200,248,0); setTile(5,23,210,248,0); setTile(88,25,110,248,0); setTile(69,21,150,248,0); setTile(30,20,31,248,0); setTile(48,40,199,248,0); setTile(110,30,205,248,0); setTile(205,40,175,248,0); } function destroyBlock(x, y, z, side) { if(getTile(x, y, z)==248 //UpdateGame-EmeraldOre && getCarriedItem()==278) //Diamond-Pickaxe { Level.dropItem(x, y, z, 0, 412, 1, 0); clientMessage("Found an Emerald!");} else if(getTile(x, y, z) == 248 && getCarriedItem() == 412) { Level.dropItem(x, y, z, 1, 249, 1, 0); clientMessage("Crafted a Block of Emerald.");} else if(getTile(x, y, z) == 249 && getCarriedItem() == 267) { Level.dropItem(x, y, z, 1, 413, 1, 0); clientMessage("Crafted an Emerald Sword."); addItemInventory (267, -1);} else if(getTile(x, y, z) == 249 && getCarriedItem() == 258) { Level.dropItem(x, y, z, 1, 414, 1, 0); clientMessage("Crafted an Emerald Axe."); addItemInventory (258, -1);} else if(getTile(x, y, z) == 249 && getCarriedItem() == 257) { Level.dropItem(x, y, z, 1, 415, 1, 0); clientMessage("Crafted an Emerald Pickaxe."); addItemInventory (257, -1);} else if(getTile(x, y, z) == 249 && getCarriedItem() == 256) { Level.dropItem(x, y, z, 1, 416, 1, 0); clientMessage("Crafted an Emerald Shovel."); addItemInventory (256, -1);} else if(getTile(x, y, z) == 249 && getCarriedItem() == 292) { Level.dropItem(x, y, z, 1, 417, 1, 0); clientMessage("Crafted an Emerald Hoe."); addItemInventory (292, -1);} else if(getTile(x, y, z) == 249 && getCarriedItem() == 306) { Level.dropItem(x, y, z, 1, 302, 1, 0); clientMessage("Crafted an Emerald Helmet."); addItemInventory (306, -1);} else if(getTile(x, y, z) == 249 && getCarriedItem() == 307) { Level.dropItem(x, y, z, 1, 303, 1, 0); clientMessage("Crafted an Emerald Chest Plate."); addItemInventory (307, -1);} else if(getTile(x, y, z) == 249 && getCarriedItem() == 308) { Level.dropItem(x, y, z, 1, 304, 1, 0); clientMessage("Crafted Emerald Leggings."); addItemInventory (308, -1);} else if(getTile(x, y, z) == 249 && getCarriedItem() == 309) { Level.dropItem(x, y, z, 1, 305, 1, 0); clientMessage("Crafted Emerald Boots."); addItemInventory (309, -1);} }This happens on all methods in this mod, except "Diamond Pickaxe>Destroys>Emerald Ore>Drops>1x Emerald Gem" which works fine. Any ideas?!?!?
Thanks!
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2610428-0-13-emeraldcraft-metalurgic-gems-alchemy
Just a sec, I'm going to try that code on my device.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumaddItemInventory(0, -1)?
I didnt read the other posts, but yeah if the ID of this "ghost" item is 0, it should delete the item.
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015