diff --git a/src/constants/ItemIDs.php b/src/constants/ItemIDs.php index 372719f78..e9f7f3abb 100644 --- a/src/constants/ItemIDs.php +++ b/src/constants/ItemIDs.php @@ -100,7 +100,7 @@ define("BUCKET", 325); define("IRON_DOOR", 330); - +define("REDSTONE_DUST", 331); define("SNOWBALL", 332); define("LEATHER", 334); @@ -116,6 +116,7 @@ define("SLIMEBALL", 341); define("EGG", 344); define("COMPASS", 345); +define("CLOCK", 347); define("GLOWSTONE_DUST", 348); //define("RAW_FISH", 349); //define("COOKED_FISH", 350); diff --git a/src/material/block/ore/GlowingRedstoneOre.php b/src/material/block/ore/GlowingRedstoneOre.php index 3086c7c46..37d0cab94 100644 --- a/src/material/block/ore/GlowingRedstoneOre.php +++ b/src/material/block/ore/GlowingRedstoneOre.php @@ -53,7 +53,7 @@ class GlowingRedstoneOreBlock extends SolidBlock{ public function getDrops(Item $item, Player $player){ if($item->isPickaxe() >= 4){ return array( - array(331, 4, mt_rand(4, 5)), + array(REDSTONE_DUST, 0, mt_rand(4, 5)), ); }else{ return array(); diff --git a/src/material/block/ore/RedstoneOre.php b/src/material/block/ore/RedstoneOre.php index 9deb05e7d..67e058e85 100644 --- a/src/material/block/ore/RedstoneOre.php +++ b/src/material/block/ore/RedstoneOre.php @@ -37,7 +37,7 @@ class RedstoneOreBlock extends SolidBlock{ public function getDrops(Item $item, Player $player){ if($item->isPickaxe() >= 2){ return array( - array(331, 4, mt_rand(4, 5)), + array(REDSTONE_DUST, 0, mt_rand(4, 5)), ); }else{ return array(); diff --git a/src/recipes/CraftingRecipes.php b/src/recipes/CraftingRecipes.php index 8f6e1ea0d..a3c4a2cee 100644 --- a/src/recipes/CraftingRecipes.php +++ b/src/recipes/CraftingRecipes.php @@ -110,6 +110,8 @@ class CraftingRecipes{ "STICK:?x1,FEATHER:?x1,FLINT:?x1=>ARROW:0x4", "STICK:?x3,STRING:?x3=>BOW:0x1", "IRON_INGOT:?x3=>BUCKET:0x1", + "GOLD_INGOT:?x4,REDSTONE_DUST:?x1=>CLOCK:0x1", + "IRON_INGOT:?x4,REDSTONE_DUST:?x1=>COMPASS:0x1", "DIAMOND:?x3,STICK:?x2=>DIAMOND_AXE:0x1", "DIAMOND:?x2,STICK:?x2=>DIAMOND_HOE:0x1", "DIAMOND:?x3,STICK:?x2=>DIAMOND_PICKAXE:0x1",