Help me with TNT + Obsidian

Discussion in 'Help' started by Kitchener Duckworth, Jan 8, 2022.

  1. Kitchener Duckworth

    Kitchener Duckworth Creeper

    Messages:
    2
    GitHub:
    ducky
    Where do i put the following stuff, to allow it to actually work? I want to be able to break obsidian with tnt.

    <?php

    declare(strict_types=1);

    namespace BlobKing21\ObbyDestroyer;

    use pocketmine\event\Listener;
    use pocketmine\plugin\PluginBase;
    use pocketmine\block\Block;
    use pocketmine\block\Obsidian;
    use pocketmine\block\BlockFactory;

    class Main extends PluginBase implements Listener
    {
    public function onEnable()
    {
    BlockFactory::registerBlock(new MyObsidian(), true);
    }
    }

    class MyObsidian extends \pocketmine\block\Obsidian
    {
    public function getBlastResistance() : float
    {
    return 7.5;//same as stone
    }
    }
     
  2. NTT

    NTT Zombie

    Messages:
    304
    GitHub:
    NTT1906
    Pm3 or Pm4?
     
  3. Kitchener Duckworth

    Kitchener Duckworth Creeper

    Messages:
    2
    GitHub:
    ducky
    PM 4 :)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.