Implemented Light blocks

This commit is contained in:
Dylan K. Taylor
2022-07-02 22:39:11 +01:00
parent 30149c6ed4
commit 2a0fade893
8 changed files with 86 additions and 2 deletions

View File

@ -558,6 +558,7 @@ class BlockFactory{
BreakInfo::instant(),
));
$this->registerBlocksR13();
$this->registerBlocksR16();
$this->registerBlocksR17();
@ -831,6 +832,10 @@ class BlockFactory{
$this->register(new Element(new BID(Ids::ELEMENT_OGANESSON), "Oganesson", $instaBreak, "og", 118, 7));
}
private function registerBlocksR13() : void{
$this->register(new Light(new BID(Ids::LIGHT), "Light Block", BreakInfo::indestructible()));
}
private function registerBlocksR16() : void{
//for some reason, slabs have weird hardness like the legacy ones
$slabBreakInfo = new BreakInfo(2.0, ToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel());