mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Multiple changes
* Fixed hoe durability * Fixed some blocks hitbox * Added Creative pseudo-inventory * Added Carrots and Carrot Crops * Added Potatoes, Baked potatoes and Potato Crops
This commit is contained in:
parent
f8d8052ec3
commit
e700179bb0
15 changed files with 355 additions and 23 deletions
|
|
@ -25,6 +25,8 @@ class Item{
|
|||
WHEAT_SEEDS => "WheatSeedsItem",
|
||||
PUMPKIN_SEEDS => "PumpkinSeedsItem",
|
||||
MELON_SEEDS => "MelonSeedsItem",
|
||||
CARROT => "CarrotItem",
|
||||
POTATO => "PotatoItem",
|
||||
SIGN => "SignItem",
|
||||
WOODEN_DOOR => "WoodenDoorItem",
|
||||
BUCKET => "BucketItem",
|
||||
|
|
@ -138,6 +140,10 @@ class Item{
|
|||
$this->meta++;
|
||||
}
|
||||
return true;
|
||||
}elseif($this->isHoe()){
|
||||
if(($object instanceof Block) and ($object->getID() === GRASS or $object->getID() === DIRT)){
|
||||
$this->meta++;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue