mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
isPickaxe replaced with getPickaxeLevel, reactor drops correct block now
This commit is contained in:
parent
81d46e71aa
commit
df0db01425
38 changed files with 73 additions and 60 deletions
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
class CakeItem extends Item{
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(CAKE, 0, $count, "Cake");
|
||||
$this->block = BlockAPI::get(CAKE_BLOCK);
|
||||
$this->maxStackSize = 1;
|
||||
parent::__construct(CAKE, 0, $count, "Cake");
|
||||
}
|
||||
}
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
class EggItem extends Item{
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(EGG, 0, $count, "Egg");
|
||||
$this->maxStackSize = 16;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@ class MinecartItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(MINECART, 0, $count, "Minecart");
|
||||
$this->isActivable = true;
|
||||
$this->maxStackSize = 1;
|
||||
}
|
||||
public function onActivate(Level $level, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
||||
if($target->getID() !== 66 and $target->getID() !== 27){
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
class SnowballItem extends Item{
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(SNOWBALL, 0, $count, "Snowball");
|
||||
$this->maxStackSize = 16;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
class CompassItem extends Item{
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(COMPASS, 0, $count, "Compass");
|
||||
$this->maxStackSize = 1;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue