Can anyone tell me how to use Item.setMaxDamage(), I have done this:
Item.setMaxDamage(itemID, 1024);
//Later in the code...
Entity.setCarriedItem(Player.getEntity(), itemID, Player.getCarriedtemCount(), Player.getCarriedItemData() + 1)
//I don't know why it doesn't work, am I supposed to subtract instead of adding?
Hmmm... seems that Item.setMaxDamage() does not work, doesn't matter, got what I wanted to work anyways
Hello, 500 ISE, will BlockLauncher support custom mob sounds soon? And is it possible to create "new" ores?
You can already make new ores by creating a new block, and making generate in the world by doing:
randX = Math.floor((Math.random() + 1) * 256);
randY = Math.floor((Math.random() + 1 ) * highestY); // The highest point you want to generate the ore
randZ = Math.floor((Math.random() + 1) * 256);
setTile(randX, randY, randZ, ID of block);
SideNote: This would require some fine tuning before use, because Math.random() + 1 would generate a number between 1 and 2, which * 256 would be out of the world, and it wouldn't generate at negative cords.
You can already make new ores by creating a new block, and making generate in the world by doing:
randX = Math.floor((Math.random() + 1) * 256);
randY = Math.floor((Math.random() + 1 ) * highestY); // The highest point you want to generate the ore
randZ = Math.floor((Math.random() + 1) * 256);
setTile(randX, randY, randZ, ID of block);
SideNote: This would require some fine tuning before use, because Math.random() + 1 would generate a number between 1 and 2, which * 256 would be out of the world, and it wouldn't generate at negative cords.
500ISE, can you fix the ModPE.saveData bug that whenever block launcher closes, the variables resets even with save data and read data?
a way to fix this is when the player leaves the game Get there chords and when they join again if they have the same coordinates then make the variables the same as when they left the game.
a way to fix this is when the player leaves the game Get there chords and when they join again if they have the same coordinates then make the variables the same as when they left the game.
There is still a lot of work to be done to get BL to work with 0.9.0.
Original post: http://www.minecraftforum.net/topic/1167366-wip-pocketinveditor-a-minecraft-pe-inventory-editor-for-android/page__st__1060
Help Me by clicking above links and skipping ad!
I support:
Follow @Darth377Apps
Please check out my Twitter account!

I have been working on a few games!
Give me ALL THE INTERNETS!
Hmmm... seems that Item.setMaxDamage() does not work, doesn't matter, got what I wanted to work anyways
Lead developer of Dragonet!
Check out my game, Adventuria!
Dev of (IMO the best server ever) TwilightGamez!
You can already make new ores by creating a new block, and making generate in the world by doing:
SideNote: This would require some fine tuning before use, because Math.random() + 1 would generate a number between 1 and 2, which * 256 would be out of the world, and it wouldn't generate at negative cords.
Lead developer of Dragonet!
Check out my game, Adventuria!
Dev of (IMO the best server ever) TwilightGamez!
Works on 0.9.0
Cuz the I can't
Open it.pm me
So, use Math.random() without the +1
Game dev and Minecraft modder.
Twitter: @jv110br_
If I didn't add the + 1, since I used Math.floor() it would round to zero, making it useless.
Lead developer of Dragonet!
Check out my game, Adventuria!
Dev of (IMO the best server ever) TwilightGamez!
Original post: http://www.minecraftforum.net/topic/1167366-wip-pocketinveditor-a-minecraft-pe-inventory-editor-for-android/page__st__1060
Help Me by clicking above links and skipping ad!
I support:
Lead developer of Dragonet!
Check out my game, Adventuria!
Dev of (IMO the best server ever) TwilightGamez!
How do u do that? code plzzzz
I've actually made YouTube series on GUI and Java in MCPE.
Check it out if you'd like: http://bit.ly/ModPEJavaPE
If you want, for sound you can use the MediaPlayer class, check the Android reference for more informations
I used this code (credits also to minecrave79 that make a part of the code)
function damageCarriedItem() { var maxDamage; if(Player.getCarriedItem() == yourItemId) maxDamage = yourItemMaxDamage; if(Player.getCarriedItemData() < maxDamage) Entity.setCarriedItem(Player.getEntity(), Player.getCarriedItem(), Player.getCarriedItemCount(), Player.getCarriedItemData() + 1); else { Level.playSoundEnt(Player.getEntity(), "random.break", 100, 30); if(Player.getCarriedItemCount() == 1) Player.clearInventorySlot(Player.getSelectedSlotId()); else Entity.setCarriedItem(Player.getEntity(), Player.getCarriedItem(), Player.getCarriedItemCount() - 1, 0); } }All the other things I've made for Minecraft: desno365.net/minecraft/
Follow me on Twitter: @desno365
Visit my website: desno365.net
It works, I used it on all my models.
Game dev and Minecraft modder.
Twitter: @jv110br_