mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Implemented Light blocks
This commit is contained in:
@ -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());
|
||||
|
Reference in New Issue
Block a user