mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Tilling Dirt & Grass, tall gras growth
This commit is contained in:
parent
a718294a08
commit
fee04cd0d9
6 changed files with 61 additions and 10 deletions
|
|
@ -84,19 +84,32 @@ class Item{
|
|||
switch($this->id){
|
||||
case IRON_PICKAXE:
|
||||
return 3;
|
||||
case 270: //Wood
|
||||
case WOODEN_PICKAXE:
|
||||
return 1;
|
||||
case 274: //Stone
|
||||
case STONE_PICKAXE:
|
||||
return 2;
|
||||
case 278: //Diamond
|
||||
case DIAMOND_PICKAXE:
|
||||
return 4;
|
||||
case 285: //Gold
|
||||
case GOLD_PICKAXE:
|
||||
return 3;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function isHoe(){
|
||||
switch($this->id){
|
||||
case IRON_HOE:
|
||||
case WOODEN_HOE:
|
||||
case STONE_HOE:
|
||||
case DIAMOND_HOE:
|
||||
case GOLD_HOE:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function getDestroySpeed(Block $block, Player $player){
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue