Weird Painting spawn (WiP)

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-05 23:25:40 +01:00
parent 0be3379720
commit 1c05455514
8 changed files with 103 additions and 10 deletions

View file

@ -36,6 +36,7 @@ class Item{
WOODEN_DOOR => "WoodenDoorItem",
IRON_DOOR => "IronDoorItem",
BED => "BedItem",
PAINTING => "PaintingItem",
);
protected $block;
protected $id;
@ -44,6 +45,7 @@ class Item{
protected $maxStackSize = 64;
protected $durability = 0;
protected $name;
public $isActivable = false;
public function __construct($id, $meta = 0, $count = 1, $name = "Unknown"){
$this->id = (int) $id;
@ -118,4 +120,8 @@ class Item{
return 1;
}
public function onActivate(BlockAPI $level, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
return false;
}
}