stonecutter will drop only if destroyed with pick

This commit is contained in:
GameHerobrine 2023-10-08 20:46:31 +03:00
parent da446ff7f7
commit 6d487fb4b0
4 changed files with 16 additions and 4 deletions

View file

@ -2,6 +2,7 @@
abstract class ItemPickaxe extends ItemTool
{
public function isTool(){
return true;
}

View file

@ -2,6 +2,12 @@
abstract class ItemTool extends Item
{
const WOODEN_LEVEL = 1;
const GOLD_LEVEL = 2;
const STONE_LEVEL = 3;
const IRON_LEVEL = 4;
const DIAMOND_LEVEL = 5;
public function isTool(){
return true;
}