mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
Added GLOWSTONE constant
This commit is contained in:
parent
228075851c
commit
13b00988f0
2 changed files with 7 additions and 1 deletions
|
|
@ -129,6 +129,7 @@ define("FENCE", 85);
|
||||||
|
|
||||||
define("NETHERRACK", 87);
|
define("NETHERRACK", 87);
|
||||||
define("SOUL_SAND", 88);
|
define("SOUL_SAND", 88);
|
||||||
|
define("GLOWSTONE", 89);
|
||||||
define("GLOWSTONE_BLOCK", 89);
|
define("GLOWSTONE_BLOCK", 89);
|
||||||
|
|
||||||
define("CAKE_BLOCK", 92);
|
define("CAKE_BLOCK", 92);
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,10 @@ class GlowstoneBlock extends SolidBlock{
|
||||||
public function __construct(){
|
public function __construct(){
|
||||||
parent::__construct(GLOWSTONE_BLOCK, 0, "Glowstone");
|
parent::__construct(GLOWSTONE_BLOCK, 0, "Glowstone");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getDrops(Item $item, Player $player){
|
||||||
|
return array(
|
||||||
|
array(GLOWSTONE_DUST, 0, mt_rand(2, 4)),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue