This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Quote from electricgamer Title says it all.
Block.getDestroyTime = function(id){ var destroyTimes = [null]; //Continue the array for block spaces 1 to 255 return destroyTimes[id] }
Block.setDestroyTime(id, Block.getDestroyTime(id)/2); //This would have the destroy time for the specified block.
Yes, though it is a part of my enchantments mod that I am making, so your going to have to work for it. Make a function:
Find the destroy times yourself. (hint: destroy times is called hardness)
Then you would do:
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]