From 90e598bb2c8c3940efe8d12dce950b3a7e3d4f5b Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Fri, 13 Dec 2013 00:33:07 +0100 Subject: [PATCH] Added minecart item (not placeable) --- src/API/BlockAPI.php | 5 ++--- src/constants/ItemIDs.php | 1 + src/recipes/CraftingRecipes.php | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index 73368a46..18e94b7a 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -65,7 +65,6 @@ class BlockAPI{ array(QUARTZ_STAIRS, 0), array(SLAB, 0), array(SLAB, 1), - //array(SLAB, 2), array(WOODEN_SLAB, 0), array(WOODEN_SLAB, 1), array(WOODEN_SLAB, 2), @@ -184,7 +183,7 @@ class BlockAPI{ array(FLINT_AND_STEEL, 0), array(CLOCK, 0), array(COMPASS, 0), - //array(MINECART, 0), + array(MINECART, 0), array(SPAWN_EGG, MOB_CHICKEN), array(SPAWN_EGG, MOB_COW), array(SPAWN_EGG, MOB_PIG), @@ -198,7 +197,7 @@ class BlockAPI{ array(PUMPKIN_SEEDS, 0), array(CARROT, 0), array(POTATO, 0), - //array(BEETROOT_SEEDS, 0), + array(BEETROOT_SEEDS, 0), array(EGG, 0), array(DYE, 0), array(DYE, 7), diff --git a/src/constants/ItemIDs.php b/src/constants/ItemIDs.php index 8d3aff91..431e7c8a 100644 --- a/src/constants/ItemIDs.php +++ b/src/constants/ItemIDs.php @@ -98,6 +98,7 @@ define("SIGN", 323); define("WOODEN_DOOR", 324); define("BUCKET", 325); +define("MINECART", 329); define("IRON_DOOR", 330); define("REDSTONE", 331); diff --git a/src/recipes/CraftingRecipes.php b/src/recipes/CraftingRecipes.php index d309683a..376b3658 100644 --- a/src/recipes/CraftingRecipes.php +++ b/src/recipes/CraftingRecipes.php @@ -173,6 +173,7 @@ class CraftingRecipes{ "DIAMOND:?x9=>DIAMOND_BLOCK:0x1", "GOLD_INGOT:?x9=>GOLD_BLOCK:0x1", "IRON_INGOT:?x9=>IRON_BLOCK:0x1", + "IRON_INGOT:?x5=>MINECART:0x1", "WHEAT:?x9=>HAY_BALE:0x1", "PAPER:?x3=>BOOK:0x1", "WOODEN_PLANKS:?x6,BOOK:?x3=>BOOKSHELF:0x1",