Im editing PocketMine-MP.phar and I wanted to know if this would make it so tnt can destroy bedrock PHP: <?php/* * * ____ _ _ __ __ _ __ __ ____ * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ * |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * @author PocketMine Team * @link http://www.pocketmine.net/ * **/namespace pocketmine\block;use pocketmine\item\Item;class Bedrock extends Solid{ protected $id = self::BEDROCK; public function __construct(){ } public function getName(){ return "Bedrock"; } public function getHardness(){ return -1; } public function getResistance(){ return 1800; } public function isBreakable(Item $item){ return true; }}
Hardness has effect to how long will player be breaking the block. Resistance has effect to how many blocks near won't be destroyed by TNT/Creeper/Fireball explosion