I have just finished making a CarbonPE port for Android and everything is working fine, apart from Insta-Mine.
Here is the standard instamine code:
function instant(){
for(var i = 1; i < 255; i++){
Block.setDestroyTime(i, 0);
}
}
What I want to know, is how can I revert this back to the standard time for every block. I do not want to release the CarbonPE port, knowing that something isn't working. Thanks in advance.
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! ---------------->
Maybe make it a variable so that you can activate it and deactivate it like this maybe
var p = function instant() {
for(var i = 1; i < 255; i++) {
Block.setDestroyTime(i, 0);
}
}
;
var Tf = false;
function useItem(x, y, z, itemId, blockId, side)
{
if(itemId == 0)
{
Tf = true;
}
if(Tf == true)
{
p
}
if(itemId == 0 && Tf == true)
{
Tf = false;
}
}
Maybe something like this Idk at all if i helped. This will disable the Insta-Mine I think
That's what I had to do to get the GUI to work with it. The only problem, is that once the destroyTime for every block is set, there is no way to revert it to it's standard time. Unless someone has a solution of course...
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! ---------------->
Here is the standard instamine code:
function instant(){ for(var i = 1; i < 255; i++){ Block.setDestroyTime(i, 0); } }What I want to know, is how can I revert this back to the standard time for every block. I do not want to release the CarbonPE port, knowing that something isn't working. Thanks in advance.
~BeATz-UnKNoWN
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]
var p = function instant() { for(var i = 1; i < 255; i++) { Block.setDestroyTime(i, 0); } } ; var Tf = false; function useItem(x, y, z, itemId, blockId, side) { if(itemId == 0) { Tf = true; } if(Tf == true) { p } if(itemId == 0 && Tf == true) { Tf = false; } }Maybe something like 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! ---------------->
Follow @Darth377Apps
Please check out my Twitter account!

I have been working on a few games!
Give me ALL THE INTERNETS!
That's what I had to do to get the GUI to work with it. The only problem, is that once the destroyTime for every block is set, there is no way to revert it to it's standard time. Unless someone has a solution of course...
I have tested it and it does work. I just don't know how to revert the destroyTime, when instamine is off.
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]
(seconds) Wooden
(seconds) Stone
(seconds) Iron
(seconds) Diamond
(seconds) Golden
(seconds) Sword
(seconds) Block Hardness Tool Nothing
(seconds) Wooden
(seconds) Stone
(seconds) Iron
(seconds) Diamond
(seconds) Golden
(seconds) Sword
(seconds)
Bedrock ∞ — ∞ — — — — — —
Command Block ∞ — ∞ — — — — — —
End Portal ∞ — ∞ — — — — — —
End Portal (block) ∞ — ∞ — — — — — —
Nether Portal ∞ — ∞ — — — — — —
Lava N/A [note 1] — N/A — — — — — —
Water N/A [note 1] — N/A — — — — — —
Obsidian 50 250 250 250 250 9.4 250 —
Ender Chest 22.5 112.5 16.9 8.45 5.65 4.25 2.85 —
Anvil 5 25 3.75 1.9 1.25 0.95 0.65 —
Block of Coal 5 25 3.75 1.9 1.25 0.95 0.65 —
Block of Diamond 5 25 25 25 1.25 0.95 25 —
Block of Emerald 5 25 25 25 1.25 0.95 25 —
Block of Iron 5 25 25 1.9 1.25 0.95 25 —
Block of Redstone 5 25 3.75 1.9 1.25 0.95 0.65 —
Enchantment Table 5 25 3.75 1.9 1.25 0.95 0.65 —
Iron Bars 5 25 3.75 1.9 1.25 0.95 0.65 —
Iron Door 5 25 3.75 1.9 1.25 0.95 0.65 —
Monster Spawner 5 25 3.75 1.9 1.25 0.95 0.65 —
Cobweb 4 20 0.4 0.4
Dispenser 3.5 17.5 2.65 1.35 0.9 0.7 0.45 —
Dropper 3.5 17.5 2.65 1.35 0.9 0.7 0.45 —
Furnace 3.5 17.5 2.65 1.35 0.9 0.7 0.45 —
Beacon 3 — 4.5 — — — — — —
Block of Gold 3 15 15 15 0.75 0.6 15 —
Coal Ore 3 15 2.25 1.15 0.75 0.6 0.4 —
Dragon Egg 3 [note 2] — 3.75 — — — — — —
Diamond Ore 3 15 15 15 0.75 0.6 15 —
Emerald Ore 3 15 15 15 0.75 0.6 15 —
End Stone 3 15 2.25 1.15 0.75 0.6 0.4 —
Gold Ore 3 15 15 15 0.75 0.6 15 —
Hopper 3 15 2.25 1.15 0.75 0.6 0.4 —
Iron Ore 3 15 15 1.15 0.75 0.6 15 —
Lapis Lazuli Block 3 15 15 1.15 0.75 0.6 15 —
Lapis Lazuli Ore 3 15 15 1.15 0.75 0.6 15 —
Nether Quartz Ore 3 15 2.25 1.15 0.75 0.6 0.4 —
Redstone Ore 3 15 15 15 0.75 0.6 15 —
Trapdoor 3 4.5 2.25 1.15 0.75 0.6 0.4 —
Wooden Door 3 4.5 2.25 1.15 0.75 0.6 0.4 —
Chest (includingtrapped) 2.5 3.75 1.9 0.95 0.65 0.5 0.35 —
Crafting Table 2.5 3.75 1.9 0.95 0.65 0.5 0.35 —
Brick Stairs 2 10 1.5 0.75 0.5 0.4 0.25 —
Bricks 2 10 1.5 0.75 0.5 0.4 0.25 —
Cauldron 2 10 1.5 0.75 0.5 0.4 0.25 —
Cobblestone 2 10 1.5 0.75 0.5 0.4 0.25 —
Cobblestone Stairs 2 10 1.5 0.75 0.5 0.4 0.25 —
Cobblestone Wall 2 10 1.5 0.75 0.5 0.4 0.25 —
Fence 2 3 1.5 0.75 0.5 0.4 0.25 —
Fence Gate 2 3 1.5 0.75 0.5 0.4 0.25 —
Jukebox 2 3 1.5 0.75 0.5 0.4 0.25 —
Moss Stone 2 10 1.5 0.75 0.5 0.4 0.25 —
Nether Brick 2 10 1.5 0.75 0.5 0.4 0.25 —
Nether Brick Fence 2 10 1.5 0.75 0.5 0.4 0.25 —
Nether Brick Stairs 2 10 1.5 0.75 0.5 0.4 0.25 —
Stone Slabs (any type) 2 10 1.5 0.75 0.5 0.4 0.25 —
Wood 2 3 1.5 0.75 0.5 0.4 0.25 —
Wood Planks 2 3 1.5 0.75 0.5 0.4 0.25 —
Wooden Slabs (any type) 2 3 1.5 0.75 0.5 0.4 0.25 —
Wooden Stairs (any type) 2 3 1.5 0.75 0.5 0.4 0.25 —
Bookshelf 1.5 2.25 1.15 0.6 0.4 0.3 0.2 —
Stone 1.5 7.5 1.15 0.6 0.4 0.3 0.2 —
Stone Brick 1.5 7.5 1.15 0.6 0.4 0.3 0.2 —
Stone Brick Stairs 1.5 7.5 1.15 0.6 0.4 0.3 0.2 —
Hardened Clay 1.25 6.25 0.95 0.5 0.35 0.25 0.2 —
Stained Clay 1.25 6.25 0.95 0.5 0.35 0.25 0.2 — Block Hardness Tool Nothing
(seconds) Wooden
(seconds) Stone
(seconds) Iron
(seconds) Diamond
(seconds) Golden
(seconds) Sword
(seconds)
Jack o'Lantern 1 1.5 0.75 0.4 0.25 0.2 0.15 1
Melon 1 — 1.5 — — — — — 1
Mob head 1 — 1.5 — — — — — —
Pumpkin 1 1.5 0.75 0.4 0.25 0.2 0.15 1
Sign 1 1.5 0.75 0.4 0.25 0.2 0.15 —
Block of Quartz 0.8 4 0.6 0.3 0.2 0.15 0.1 —
Note Block 0.8 1.2 0.6 0.3 0.2 0.15 0.1 —
Quartz Stairs 0.8 4 0.6 0.3 0.2 0.15 0.1 —
Sandstone 0.8 4 0.6 0.3 0.2 0.15 0.1 —
Sandstone Stairs 0.8 4 0.6 0.3 0.2 0.15 0.1 —
Wool 0.8 1.2 0.25 —
Monster Egg 0.75 — 1.15 — — — — — —
Rail (any type) 0.7 1.05 0.55 0.3 0.2 0.15 0.1 —
Clay 0.6 0.9 0.45 0.25 0.15 0.15 0.1 —
Farmland 0.6 0.9 0.45 0.25 0.15 0.15 0.1 —
Grass Block 0.6 0.9 0.45 0.25 0.15 0.15 0.1 —
Gravel 0.6 0.9 0.45 0.25 0.15 0.15 0.1 —
Mycelium 0.6 0.9 0.45 0.25 0.15 0.15 0.1 —
Sponge 0.6 — 0.9 — — — — — —
Brewing Stand 0.5 2.5 0.4 0.2 0.15 0.1 0.1 —
Button 0.5 — 0.75 — — — — — —
Cake 0.5 — 0.75 — — — — — —
Dirt 0.5 0.75 0.4 0.2 0.15 0.1 0.1 —
Hay Bale 0.5 — 0.75 — — — — — —
Ice 0.5 0.75 0.4 0.2 0.15 0.1 0.1 —
Lever 0.5 — 0.75 — — — — — —
Packed Ice 0.5 0.75 0.4 0.2 0.15 0.1 0.1 —
Piston (normal or sticky) 0.5 — 0.75 — — — — — —
Sand 0.5 0.75 0.4 0.2 0.15 0.1 0.1 —
Soul Sand 0.5 0.75 0.4 0.2 0.15 0.1 0.1 —
Stone Pressure Plate 0.5 2.5 0.4 0.2 0.15 0.1 0.1 —
Weighted Pressure Plate 0.5 2.5 0.4 0.2 0.15 0.1 0.1 —
Wooden Pressure Plate 0.5 0.75 0.4 0.2 0.15 0.1 0.1 —
Cactus 0.4 — 0.6 — — — — — —
Ladder 0.4 — 0.6 — — — — — —
Netherrack 0.4 2 0.3 0.15 0.1 0.1 0.05 —
Glass 0.3 — 0.45 — — — — — —
Glass Pane 0.3 — 0.45 — — — — — —
Glowstone 0.3 — 0.45 — — — — — —
Redstone Lamp 0.3 — 0.45 — — — — — —
Bed 0.2 — 0.3 — — — — — —
Cocoa 0.2 0.3 0.15 0.1 0.05 0.05 0.05 0.2
Daylight Sensor 0.2 0.3 0.15 0.1 0.05 0.05 0.05 —
Huge Mushrooms 0.2 0.3 0.15 0.1 0.05 0.05 0.05 —
Leaves 0.2 0.3 0.05 0.2
Snow 0.2 1 0.15 0.1 0.05 0.05 0.05 —
Vines 0.2 0.3 0.15 0.1 0.05 0.05 0.05 0.2
Carpet 0.1 — 0.15 — — — — — —
Snow (cover) 0.1 0.5 0.1 0.05 0.05 0.05 0.05 —
Carrots 0 — 0 — — — — — —
Dead Bush 0 — 0 — — — — — —
Fire 0 — 0 — — — — — —
Flower Pot 0 — 0 — — — — — —
Flowers 0 — 0 — — — — — —
Grass (fern, tall grass) 0 — 0 — — — — — —
Lily Pad 0 — 0 — — — — — —
Melon Stem 0 — 0 — — — — — —
Mushrooms 0 — 0 — — — — — —
Nether Wart 0 — 0 — — — — — —
Potatoes 0 — 0 — — — — — —
Pumpkin Stem 0 — 0 — — — — — —
Redstone Comparator 0 — 0 — — — — — —
Redstone Repeater 0 — 0 — — — — — —
Redstone Torch 0 — 0 — — — — — —
Redstone Wire 0 — 0 — — — — — —
Saplings 0 — 0 — — — — — —
Sugar Cane 0 — 0 — — — — — —
TNT 0 — 0 — — — — — —
Torch 0 — 0 — — — — — —
Tripwire 0 — 0 — — — — — —
Tripwire Hook 0 — 0 — — — — — —
Wheat 0 — 0 — — — — — —
Heres the list for the Default times :| But there should be a function that can set the block destroying time as default like
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! ---------------->
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]