From d419d4308f8c1e6e089057e1dde36aa4bfc89061 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 21 Aug 2018 19:54:24 +0100 Subject: [PATCH] Add a couple of item constants, register Scute item leaving out turtle helmet for now because of complications relating to the effect application - I REALLY don't want to tick armour if I can avoid it, due to the performance concerns. --- src/pocketmine/item/ItemFactory.php | 2 ++ src/pocketmine/item/ItemIds.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/pocketmine/item/ItemFactory.php b/src/pocketmine/item/ItemFactory.php index 0e76790e8..8a0c24e46 100644 --- a/src/pocketmine/item/ItemFactory.php +++ b/src/pocketmine/item/ItemFactory.php @@ -246,6 +246,8 @@ class ItemFactory{ self::registerItem(new Item(Item::NAUTILUS_SHELL, 0, "Nautilus Shell")); self::registerItem(new GoldenAppleEnchanted()); self::registerItem(new Item(Item::HEART_OF_THE_SEA, 0, "Heart of the Sea")); + self::registerItem(new Item(Item::TURTLE_SHELL_PIECE, 0, "Scute")); + //TODO: TURTLE_HELMET //TODO: COMPOUND //TODO: RECORD_13 diff --git a/src/pocketmine/item/ItemIds.php b/src/pocketmine/item/ItemIds.php index 79cfb00e5..6b0b6cc67 100644 --- a/src/pocketmine/item/ItemIds.php +++ b/src/pocketmine/item/ItemIds.php @@ -235,6 +235,8 @@ interface ItemIds extends BlockIds{ public const NAUTILUS_SHELL = 465; public const APPLEENCHANTED = 466, APPLE_ENCHANTED = 466, ENCHANTED_GOLDEN_APPLE = 466; public const HEART_OF_THE_SEA = 467; + public const TURTLE_SHELL_PIECE = 468; + public const TURTLE_HELMET = 469; public const COMPOUND = 499; public const RECORD_13 = 500;