diff --git a/README.md b/README.md index 266b1257..5b672aca 100644 --- a/README.md +++ b/README.md @@ -19,16 +19,28 @@ Protocol - + Latest Release - - Issues + + Issues

--- +## 🧰 BetterAltay Improved + +This is a fork of BetterAltay, used primarily for the addition of rich, vanilla additions. Blocks and Items have been added for more variety and diversity. Allowing for a more creative outline for your server! + + + +# 🧭 Original BetterAltay Contents: + + +--- + + ## 📖 About BetterAltay BetterAltay is a highly optimized and feature-rich server software designed for Minecraft: Bedrock Edition. It brings improvements and new functionalities to the original [Altay](https://github.com/unresolved3169/Altay) project, offering a better experience for server owners who want more features and stability. diff --git a/src/pocketmine/block/GoldOre.php b/src/pocketmine/block/GoldOre.php index a776e01f..abea140d 100644 --- a/src/pocketmine/block/GoldOre.php +++ b/src/pocketmine/block/GoldOre.php @@ -23,7 +23,7 @@ namespace pocketmine\block; -use pocketmine\item\TieredTool; +use pocketmine\item\{Item, ItemFactory, TieredTool}; class GoldOre extends Solid{ @@ -48,4 +48,10 @@ public function getToolType() : int{ public function getToolHarvestLevel() : int{ return TieredTool::TIER_IRON; } + + public function getDropsForCompatibleTool(Item $item) : array{ + return [ + ItemFactory::get(Item::RAW_GOLD) + ]; + } } diff --git a/src/pocketmine/block/IronOre.php b/src/pocketmine/block/IronOre.php index 003e8384..a3cb20a4 100644 --- a/src/pocketmine/block/IronOre.php +++ b/src/pocketmine/block/IronOre.php @@ -23,7 +23,7 @@ namespace pocketmine\block; -use pocketmine\item\TieredTool; +use pocketmine\item\{Item, ItemFactory, TieredTool}; class IronOre extends Solid{ @@ -48,4 +48,10 @@ public function getToolHarvestLevel() : int{ public function getHardness() : float{ return 3; } + + public function getDropsForCompatibleTool(Item $item) : array{ + return [ + ItemFactory::get(Item::RAW_IRON) + ]; + } } diff --git a/src/pocketmine/entity/EntityIds.php b/src/pocketmine/entity/EntityIds.php index 219919e4..2c877377 100644 --- a/src/pocketmine/entity/EntityIds.php +++ b/src/pocketmine/entity/EntityIds.php @@ -138,4 +138,5 @@ interface EntityIds{ public const GLOW_SQUID = 139; public const GOAT = 128; public const PILLAGER = 114; + public const WIND_CHARGE_PROJECTILE = 143; } diff --git a/src/pocketmine/item/ItemFactory.php b/src/pocketmine/item/ItemFactory.php index 2df427f1..09ac8bfc 100644 --- a/src/pocketmine/item/ItemFactory.php +++ b/src/pocketmine/item/ItemFactory.php @@ -302,6 +302,63 @@ public static function init(){ self::registerItem(new Item(Item::HONEYCOMB, 0, "Honeycomb")); self::registerItem(new HoneyBottle()); self::registerItem(new Spyglass()); + + // Register newer items. + self::registerItem(new Item(Item::ECHO_SHARD, 0, "Echo Shard")); + self::registerItem(new Item(Item::AMETHYST_SHARD, 0, "Amethyst Shard")); + self::registerItem(new Item(Item::RAW_GOLD, 0, "Raw Gold")); + self::registerItem(new Item(Item::RAW_IRON, 0, "Raw Iron")); + self::registerItem(new Item(Item::RAW_COPPER, 0, "Raw Copper")); + self::registerItem(new Item(Item::COPPER_INGOT, 0, "Copper Ingot")); + self::registerItem(new Item(Item::TRIAL_KEY, 0, "Trial Key")); + self::registerItem(new Item(Item::OMINOUS_TRIAL_KEY, 0, "Ominous Trial Key")); + self::registerItem(new WindCharge()); // Class reverted due to missing functionality. + self::registerItem(new Item(Item::BREEZE_ROD, 0, "Breeze Rod")); + self::registerItem(new Item(Item::DISC_FRAGMENT_5, 0, "Disc Fragment")); + self::registerItem(new Item(Item::BRUSH, 0, "Brush")); + self::registerItem(new Item(Item::RECOVERY_COMPASS, 0, "Recovery Compass")); + self::registerItem(new Mace()); // Class reverted due to missing functionality. + self::registerItem(new Item(Item::HEAVY_CORE, 0, "Heavy Core")); + self::registerItem(new Item(Item::NETHERITE_UPGRADE_SMITHING_TEMPLATE, 0, "Smithing Template")); + self::registerItem(new Item(Item::BOLT_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Bolt")); + self::registerItem(new Item(Item::HOST_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Host")); + self::registerItem(new Item(Item::WAYFINDER_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Wayfinder")); + self::registerItem(new Item(Item::SHAPER_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Shaper")); + self::registerItem(new Item(Item::RAISER_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Raiser")); + self::registerItem(new Item(Item::SENTRY_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Sentry")); + self::registerItem(new Item(Item::VEX_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Vex")); + self::registerItem(new Item(Item::WILD_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Wild")); + self::registerItem(new Item(Item::COAST_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Coast")); + self::registerItem(new Item(Item::DUNE_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Dune")); + self::registerItem(new Item(Item::WARD_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Ward")); + self::registerItem(new Item(Item::TIDE_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Tide")); + self::registerItem(new Item(Item::SNOUT_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Snout")); + self::registerItem(new Item(Item::RIB_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Rib")); + self::registerItem(new Item(Item::EYE_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Eye")); + self::registerItem(new Item(Item::SPIRE_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Spire")); + self::registerItem(new Item(Item::FLOW_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Flow")); + self::registerItem(new Item(Item::SILENCE_ARMOR_TRIM_SMITHING_TEMPLATE, 0, "Silence")); + self::registerItem(new Item(Item::SNIFFER_EGG, 0, "Sniffer Egg")); + self::registerItem(new Item(Item::ARMADILLO_SCUTE, 0, "Armadillo Scute")); + self::registerItem(new Item(Item::RESIN_BRICK, 0, "Resin Brick")); + self::registerItem(new Item(Item::BUNDLE, 0, "Bundle")); + self::registerItem(new Item(Item::BLACK_BUNDLE, 0, "Black Bundle")); + self::registerItem(new Item(Item::BLUE_BUNDLE, 0, "Blue Bundle")); + self::registerItem(new Item(Item::BROWN_BUNDLE, 0, "Brown Bundle")); + self::registerItem(new Item(Item::CYAN_BUNDLE, 0, "Cyan Bundle")); + self::registerItem(new Item(Item::GRAY_BUNDLE, 0, "Gray Bundle")); + self::registerItem(new Item(Item::GREEN_BUNDLE, 0, "Green Bundle")); + self::registerItem(new Item(Item::LIGHT_BLUE_BUNDLE, 0, "Light Blue Bundle")); + self::registerItem(new Item(Item::LIGHT_GRAY_BUNDLE, 0, "Light Gray Bundle")); + self::registerItem(new Item(Item::LIME_BUNDLE, 0, "Lime Bundle")); + self::registerItem(new Item(Item::MAGENTA_BUNDLE, 0, "Magenta Bundle")); + self::registerItem(new Item(Item::ORANGE_BUNDLE, 0, "Orange Bundle")); + self::registerItem(new Item(Item::PINK_BUNDLE, 0, "Pink Bundle")); + self::registerItem(new Item(Item::PURPLE_BUNDLE, 0, "Purple Bundle")); + self::registerItem(new Item(Item::RED_BUNDLE, 0, "Red Bundle")); + self::registerItem(new Item(Item::WHITE_BUNDLE, 0, "White Bundle")); + self::registerItem(new Item(Item::YELLOW_BUNDLE, 0, "Yellow Bundle")); + } /** diff --git a/src/pocketmine/item/ItemIds.php b/src/pocketmine/item/ItemIds.php index b775eb1c..dcf55693 100644 --- a/src/pocketmine/item/ItemIds.php +++ b/src/pocketmine/item/ItemIds.php @@ -27,257 +27,313 @@ interface ItemIds extends BlockIds{ - public const IRON_SHOVEL = 256; - public const IRON_PICKAXE = 257; - public const IRON_AXE = 258; - public const FLINT_AND_STEEL = 259, FLINT_STEEL = 259; - public const APPLE = 260; - public const BOW = 261; - public const ARROW = 262; - public const COAL = 263; - public const DIAMOND = 264; - public const IRON_INGOT = 265; - public const GOLD_INGOT = 266; - public const IRON_SWORD = 267; - public const WOODEN_SWORD = 268; - public const WOODEN_SHOVEL = 269; - public const WOODEN_PICKAXE = 270; - public const WOODEN_AXE = 271; - public const STONE_SWORD = 272; - public const STONE_SHOVEL = 273; - public const STONE_PICKAXE = 274; - public const STONE_AXE = 275; - public const DIAMOND_SWORD = 276; - public const DIAMOND_SHOVEL = 277; - public const DIAMOND_PICKAXE = 278; - public const DIAMOND_AXE = 279; - public const STICK = 280; - public const BOWL = 281; - public const MUSHROOM_STEW = 282; - public const GOLDEN_SWORD = 283, GOLD_SWORD = 283; - public const GOLDEN_SHOVEL = 284, GOLD_SHOVEL = 284; - public const GOLDEN_PICKAXE = 285, GOLD_PICKAXE = 285; - public const GOLDEN_AXE = 286, GOLD_AXE = 286; - public const STRING = 287; - public const FEATHER = 288; - public const GUNPOWDER = 289; - public const WOODEN_HOE = 290; - public const STONE_HOE = 291; - public const IRON_HOE = 292; - public const DIAMOND_HOE = 293; - public const GOLDEN_HOE = 294, GOLD_HOE = 294; - public const SEEDS = 295, WHEAT_SEEDS = 295; - public const WHEAT = 296; - public const BREAD = 297; - public const LEATHER_CAP = 298, LEATHER_HELMET = 298; - public const LEATHER_CHESTPLATE = 299, LEATHER_TUNIC = 299; - public const LEATHER_LEGGINGS = 300, LEATHER_PANTS = 300; - public const LEATHER_BOOTS = 301; - public const CHAINMAIL_HELMET = 302, CHAIN_HELMET = 302; - public const CHAINMAIL_CHESTPLATE = 303, CHAIN_CHESTPLATE = 303; - public const CHAINMAIL_LEGGINGS = 304, CHAIN_LEGGINGS = 304; - public const CHAINMAIL_BOOTS = 305, CHAIN_BOOTS = 305; - public const IRON_HELMET = 306; - public const IRON_CHESTPLATE = 307; - public const IRON_LEGGINGS = 308; - public const IRON_BOOTS = 309; - public const DIAMOND_HELMET = 310; - public const DIAMOND_CHESTPLATE = 311; - public const DIAMOND_LEGGINGS = 312; - public const DIAMOND_BOOTS = 313; - public const GOLDEN_HELMET = 314, GOLD_HELMET = 314; - public const GOLDEN_CHESTPLATE = 315, GOLD_CHESTPLATE = 315; - public const GOLDEN_LEGGINGS = 316, GOLD_LEGGINGS = 316; - public const GOLDEN_BOOTS = 317, GOLD_BOOTS = 317; - public const FLINT = 318; - public const PORKCHOP = 319, RAW_PORKCHOP = 319; - public const COOKED_PORKCHOP = 320; - public const PAINTING = 321; - public const GOLDEN_APPLE = 322; - public const SIGN = 323; - public const OAK_DOOR = 324, WOODEN_DOOR = 324; - public const BUCKET = 325; + public const IRON_SHOVEL = 256; + public const IRON_PICKAXE = 257; + public const IRON_AXE = 258; + public const FLINT_AND_STEEL = 259, FLINT_STEEL = 259; + public const APPLE = 260; + public const BOW = 261; + public const ARROW = 262; + public const COAL = 263; + public const DIAMOND = 264; + public const IRON_INGOT = 265; + public const GOLD_INGOT = 266; + public const IRON_SWORD = 267; + public const WOODEN_SWORD = 268; + public const WOODEN_SHOVEL = 269; + public const WOODEN_PICKAXE = 270; + public const WOODEN_AXE = 271; + public const STONE_SWORD = 272; + public const STONE_SHOVEL = 273; + public const STONE_PICKAXE = 274; + public const STONE_AXE = 275; + public const DIAMOND_SWORD = 276; + public const DIAMOND_SHOVEL = 277; + public const DIAMOND_PICKAXE = 278; + public const DIAMOND_AXE = 279; + public const STICK = 280; + public const BOWL = 281; + public const MUSHROOM_STEW = 282; + public const GOLDEN_SWORD = 283, GOLD_SWORD = 283; + public const GOLDEN_SHOVEL = 284, GOLD_SHOVEL = 284; + public const GOLDEN_PICKAXE = 285, GOLD_PICKAXE = 285; + public const GOLDEN_AXE = 286, GOLD_AXE = 286; + public const STRING = 287; + public const FEATHER = 288; + public const GUNPOWDER = 289; + public const WOODEN_HOE = 290; + public const STONE_HOE = 291; + public const IRON_HOE = 292; + public const DIAMOND_HOE = 293; + public const GOLDEN_HOE = 294, GOLD_HOE = 294; + public const SEEDS = 295, WHEAT_SEEDS = 295; + public const WHEAT = 296; + public const BREAD = 297; + public const LEATHER_CAP = 298, LEATHER_HELMET = 298; + public const LEATHER_CHESTPLATE = 299, LEATHER_TUNIC = 299; + public const LEATHER_LEGGINGS = 300, LEATHER_PANTS = 300; + public const LEATHER_BOOTS = 301; + public const CHAINMAIL_HELMET = 302, CHAIN_HELMET = 302; + public const CHAINMAIL_CHESTPLATE = 303, CHAIN_CHESTPLATE = 303; + public const CHAINMAIL_LEGGINGS = 304, CHAIN_LEGGINGS = 304; + public const CHAINMAIL_BOOTS = 305, CHAIN_BOOTS = 305; + public const IRON_HELMET = 306; + public const IRON_CHESTPLATE = 307; + public const IRON_LEGGINGS = 308; + public const IRON_BOOTS = 309; + public const DIAMOND_HELMET = 310; + public const DIAMOND_CHESTPLATE = 311; + public const DIAMOND_LEGGINGS = 312; + public const DIAMOND_BOOTS = 313; + public const GOLDEN_HELMET = 314, GOLD_HELMET = 314; + public const GOLDEN_CHESTPLATE = 315, GOLD_CHESTPLATE = 315; + public const GOLDEN_LEGGINGS = 316, GOLD_LEGGINGS = 316; + public const GOLDEN_BOOTS = 317, GOLD_BOOTS = 317; + public const FLINT = 318; + public const PORKCHOP = 319, RAW_PORKCHOP = 319; + public const COOKED_PORKCHOP = 320; + public const PAINTING = 321; + public const GOLDEN_APPLE = 322; + public const SIGN = 323; + public const OAK_DOOR = 324, WOODEN_DOOR = 324; + public const BUCKET = 325; - public const MINECART = 328; - public const SADDLE = 329; - public const IRON_DOOR = 330; - public const REDSTONE = 331, REDSTONE_DUST = 331; - public const SNOWBALL = 332; - public const BOAT = 333; - public const LEATHER = 334; - public const KELP = 335; - public const BRICK = 336; - public const CLAY = 337, CLAY_BALL = 337; - public const REEDS = 338, SUGARCANE = 338; - public const PAPER = 339; - public const BOOK = 340; - public const SLIMEBALL = 341, SLIME_BALL = 341; - public const CHEST_MINECART = 342, MINECART_WITH_CHEST = 342; + public const MINECART = 328; + public const SADDLE = 329; + public const IRON_DOOR = 330; + public const REDSTONE = 331, REDSTONE_DUST = 331; + public const SNOWBALL = 332; + public const BOAT = 333; + public const LEATHER = 334; + public const KELP = 335; + public const BRICK = 336; + public const CLAY = 337, CLAY_BALL = 337; + public const REEDS = 338, SUGARCANE = 338; + public const PAPER = 339; + public const BOOK = 340; + public const SLIMEBALL = 341, SLIME_BALL = 341; + public const CHEST_MINECART = 342, MINECART_WITH_CHEST = 342; - public const EGG = 344; - public const COMPASS = 345; - public const FISHING_ROD = 346; - public const CLOCK = 347; - public const GLOWSTONE_DUST = 348; - public const FISH = 349, RAW_FISH = 349; - public const COOKED_FISH = 350; - public const DYE = 351; - public const BONE = 352; - public const SUGAR = 353; - public const CAKE = 354; - public const BED = 355; - public const REPEATER = 356; - public const COOKIE = 357; - public const FILLED_MAP = 358; - public const SHEARS = 359; - public const MELON = 360, MELON_SLICE = 360; - public const PUMPKIN_SEEDS = 361; - public const MELON_SEEDS = 362; - public const BEEF = 363, RAW_BEEF = 363; - public const COOKED_BEEF = 364, STEAK = 364; - public const CHICKEN = 365, RAW_CHICKEN = 365; - public const COOKED_CHICKEN = 366; - public const ROTTEN_FLESH = 367; - public const ENDER_PEARL = 368; - public const BLAZE_ROD = 369; - public const GHAST_TEAR = 370; - public const GOLDEN_NUGGET = 371, GOLD_NUGGET = 371; - public const NETHER_WART = 372; - public const POTION = 373; - public const GLASS_BOTTLE = 374; - public const SPIDER_EYE = 375; - public const FERMENTED_SPIDER_EYE = 376; - public const BLAZE_POWDER = 377; - public const MAGMA_CREAM = 378; - public const BREWING_STAND = 379; - public const CAULDRON = 380; - public const ENDER_EYE = 381; - public const GLISTERING_MELON = 382, SPECKLED_MELON = 382; - public const SPAWN_EGG = 383; - public const BOTTLE_O_ENCHANTING = 384, EXPERIENCE_BOTTLE = 384; - public const FIREBALL = 385, FIRE_CHARGE = 385; - public const WRITABLE_BOOK = 386; - public const WRITTEN_BOOK = 387; - public const EMERALD = 388; - public const FRAME = 389, ITEM_FRAME = 389; - public const FLOWER_POT = 390; - public const CARROT = 391; - public const POTATO = 392; - public const BAKED_POTATO = 393; - public const POISONOUS_POTATO = 394; - public const EMPTYMAP = 395, EMPTY_MAP = 395, MAP = 395; - public const GOLDEN_CARROT = 396; - public const MOB_HEAD = 397, SKULL = 397; - public const CARROTONASTICK = 398, CARROT_ON_A_STICK = 398; - public const NETHERSTAR = 399, NETHER_STAR = 399; - public const PUMPKIN_PIE = 400; - public const FIREWORKS = 401; - public const FIREWORKSCHARGE = 402, FIREWORKS_CHARGE = 402; - public const ENCHANTED_BOOK = 403; - public const COMPARATOR = 404; - public const NETHERBRICK = 405, NETHER_BRICK = 405; - public const NETHER_QUARTZ = 406, QUARTZ = 406; - public const MINECART_WITH_TNT = 407, TNT_MINECART = 407; - public const HOPPER_MINECART = 408, MINECART_WITH_HOPPER = 408; - public const PRISMARINE_SHARD = 409; - public const HOPPER = 410; - public const RABBIT = 411, RAW_RABBIT = 411; - public const COOKED_RABBIT = 412; - public const RABBIT_STEW = 413; - public const RABBIT_FOOT = 414; - public const RABBIT_HIDE = 415; - public const HORSEARMORLEATHER = 416, HORSE_ARMOR_LEATHER = 416, LEATHER_HORSE_ARMOR = 416; - public const HORSEARMORIRON = 417, HORSE_ARMOR_IRON = 417, IRON_HORSE_ARMOR = 417; - public const GOLD_HORSE_ARMOR = 418, GOLDEN_HORSE_ARMOR = 418, HORSEARMORGOLD = 418, HORSE_ARMOR_GOLD = 418; - public const DIAMOND_HORSE_ARMOR = 419, HORSEARMORDIAMOND = 419, HORSE_ARMOR_DIAMOND = 419; - public const LEAD = 420; - public const NAMETAG = 421, NAME_TAG = 421; - public const PRISMARINE_CRYSTALS = 422; - public const MUTTON = 423, MUTTONRAW = 423, MUTTON_RAW = 423, RAW_MUTTON = 423; - public const COOKED_MUTTON = 424, MUTTONCOOKED = 424, MUTTON_COOKED = 424; - public const ARMOR_STAND = 425; - public const END_CRYSTAL = 426; - public const SPRUCE_DOOR = 427; - public const BIRCH_DOOR = 428; - public const JUNGLE_DOOR = 429; - public const ACACIA_DOOR = 430; - public const DARK_OAK_DOOR = 431; - public const CHORUS_FRUIT = 432; - public const CHORUS_FRUIT_POPPED = 433; - public const BANNER_PATTERN = 434; + public const EGG = 344; + public const COMPASS = 345; + public const FISHING_ROD = 346; + public const CLOCK = 347; + public const GLOWSTONE_DUST = 348; + public const FISH = 349, RAW_FISH = 349; + public const COOKED_FISH = 350; + public const DYE = 351; + public const BONE = 352; + public const SUGAR = 353; + public const CAKE = 354; + public const BED = 355; + public const REPEATER = 356; + public const COOKIE = 357; + public const FILLED_MAP = 358; + public const SHEARS = 359; + public const MELON = 360, MELON_SLICE = 360; + public const PUMPKIN_SEEDS = 361; + public const MELON_SEEDS = 362; + public const BEEF = 363, RAW_BEEF = 363; + public const COOKED_BEEF = 364, STEAK = 364; + public const CHICKEN = 365, RAW_CHICKEN = 365; + public const COOKED_CHICKEN = 366; + public const ROTTEN_FLESH = 367; + public const ENDER_PEARL = 368; + public const BLAZE_ROD = 369; + public const GHAST_TEAR = 370; + public const GOLDEN_NUGGET = 371, GOLD_NUGGET = 371; + public const NETHER_WART = 372; + public const POTION = 373; + public const GLASS_BOTTLE = 374; + public const SPIDER_EYE = 375; + public const FERMENTED_SPIDER_EYE = 376; + public const BLAZE_POWDER = 377; + public const MAGMA_CREAM = 378; + public const BREWING_STAND = 379; + public const CAULDRON = 380; + public const ENDER_EYE = 381; + public const GLISTERING_MELON = 382, SPECKLED_MELON = 382; + public const SPAWN_EGG = 383; + public const BOTTLE_O_ENCHANTING = 384, EXPERIENCE_BOTTLE = 384; + public const FIREBALL = 385, FIRE_CHARGE = 385; + public const WRITABLE_BOOK = 386; + public const WRITTEN_BOOK = 387; + public const EMERALD = 388; + public const FRAME = 389, ITEM_FRAME = 389; + public const FLOWER_POT = 390; + public const CARROT = 391; + public const POTATO = 392; + public const BAKED_POTATO = 393; + public const POISONOUS_POTATO = 394; + public const EMPTYMAP = 395, EMPTY_MAP = 395, MAP = 395; + public const GOLDEN_CARROT = 396; + public const MOB_HEAD = 397, SKULL = 397; + public const CARROTONASTICK = 398, CARROT_ON_A_STICK = 398; + public const NETHERSTAR = 399, NETHER_STAR = 399; + public const PUMPKIN_PIE = 400; + public const FIREWORKS = 401; + public const FIREWORKSCHARGE = 402, FIREWORKS_CHARGE = 402; + public const ENCHANTED_BOOK = 403; + public const COMPARATOR = 404; + public const NETHERBRICK = 405, NETHER_BRICK = 405; + public const NETHER_QUARTZ = 406, QUARTZ = 406; + public const MINECART_WITH_TNT = 407, TNT_MINECART = 407; + public const HOPPER_MINECART = 408, MINECART_WITH_HOPPER = 408; + public const PRISMARINE_SHARD = 409; + public const HOPPER = 410; + public const RABBIT = 411, RAW_RABBIT = 411; + public const COOKED_RABBIT = 412; + public const RABBIT_STEW = 413; + public const RABBIT_FOOT = 414; + public const RABBIT_HIDE = 415; + public const HORSEARMORLEATHER = 416, HORSE_ARMOR_LEATHER = 416, LEATHER_HORSE_ARMOR = 416; + public const HORSEARMORIRON = 417, HORSE_ARMOR_IRON = 417, IRON_HORSE_ARMOR = 417; + public const GOLD_HORSE_ARMOR = 418, GOLDEN_HORSE_ARMOR = 418, HORSEARMORGOLD = 418, HORSE_ARMOR_GOLD = 418; + public const DIAMOND_HORSE_ARMOR = 419, HORSEARMORDIAMOND = 419, HORSE_ARMOR_DIAMOND = 419; + public const LEAD = 420; + public const NAMETAG = 421, NAME_TAG = 421; + public const PRISMARINE_CRYSTALS = 422; + public const MUTTON = 423, MUTTONRAW = 423, MUTTON_RAW = 423, RAW_MUTTON = 423; + public const COOKED_MUTTON = 424, MUTTONCOOKED = 424, MUTTON_COOKED = 424; + public const ARMOR_STAND = 425; + public const END_CRYSTAL = 426; + public const SPRUCE_DOOR = 427; + public const BIRCH_DOOR = 428; + public const JUNGLE_DOOR = 429; + public const ACACIA_DOOR = 430; + public const DARK_OAK_DOOR = 431; + public const CHORUS_FRUIT = 432; + public const CHORUS_FRUIT_POPPED = 433; + public const BANNER_PATTERN = 434; - public const DRAGON_BREATH = 437; - public const SPLASH_POTION = 438; + public const DRAGON_BREATH = 437; + public const SPLASH_POTION = 438; - public const LINGERING_POTION = 441; - public const SPARKLER = 442; - public const COMMAND_BLOCK_MINECART = 443, MINECART_WITH_COMMAND_BLOCK = 443; - public const ELYTRA = 444; - public const SHULKER_SHELL = 445; - public const BANNER = 446; - public const MEDICINE = 447; - public const BALLOON = 448; - public const RAPID_FERTILIZER = 449; - public const TOTEM = 450; - public const BLEACH = 451; - public const IRON_NUGGET = 452; - public const ICE_BOMB = 453; + public const LINGERING_POTION = 441; + public const SPARKLER = 442; + public const COMMAND_BLOCK_MINECART = 443, MINECART_WITH_COMMAND_BLOCK = 443; + public const ELYTRA = 444; + public const SHULKER_SHELL = 445; + public const BANNER = 446; + public const MEDICINE = 447; + public const BALLOON = 448; + public const RAPID_FERTILIZER = 449; + public const TOTEM = 450; + public const BLEACH = 451; + public const IRON_NUGGET = 452; + public const ICE_BOMB = 453; - public const TRIDENT = 455; + public const TRIDENT = 455; - public const BEETROOT = 457; - public const BEETROOT_SEEDS = 458; - public const BEETROOT_SOUP = 459; - public const RAW_SALMON = 460, SALMON = 460; - public const CLOWNFISH = 461; - public const PUFFERFISH = 462; - public const COOKED_SALMON = 463; - public const DRIED_KELP = 464; - 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 PHANTOM_MEMBRANE = 470; - public const CROSSBOW = 471; - public const SPRUCE_SIGN = 472; - public const BIRCH_SIGN = 473; - public const JUNGLE_SIGN = 474; - public const ACACIA_SIGN = 475; - public const DARKOAK_SIGN = 476; - public const SWEET_BERRIES = 477; + public const BEETROOT = 457; + public const BEETROOT_SEEDS = 458; + public const BEETROOT_SOUP = 459; + public const RAW_SALMON = 460, SALMON = 460; + public const CLOWNFISH = 461; + public const PUFFERFISH = 462; + public const COOKED_SALMON = 463; + public const DRIED_KELP = 464; + 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 PHANTOM_MEMBRANE = 470; + public const CROSSBOW = 471; + public const SPRUCE_SIGN = 472; + public const BIRCH_SIGN = 473; + public const JUNGLE_SIGN = 474; + public const ACACIA_SIGN = 475; + public const DARKOAK_SIGN = 476; + public const SWEET_BERRIES = 477; - public const COMPOUND = 499; - public const RECORD_13 = 500; - public const RECORD_CAT = 501; - public const RECORD_BLOCKS = 502; - public const RECORD_CHIRP = 503; - public const RECORD_FAR = 504; - public const RECORD_MALL = 505; - public const RECORD_MELLOHI = 506; - public const RECORD_STAL = 507; - public const RECORD_STRAD = 508; - public const RECORD_WARD = 509; - public const RECORD_11 = 510; - public const RECORD_WAIT = 511; + public const COMPOUND = 499; + public const RECORD_13 = 500; + public const RECORD_CAT = 501; + public const RECORD_BLOCKS = 502; + public const RECORD_CHIRP = 503; + public const RECORD_FAR = 504; + public const RECORD_MALL = 505; + public const RECORD_MELLOHI = 506; + public const RECORD_STAL = 507; + public const RECORD_STRAD = 508; + public const RECORD_WARD = 509; + public const RECORD_11 = 510; + public const RECORD_WAIT = 511; - public const SHIELD = 513; + public const SHIELD = 513; - public const SPYGLASS = 772; + public const SPYGLASS = 772; - public const HONEYCOMB = 736; - public const HONEY_BOTTLE = 737; + public const HONEYCOMB = 736; + public const HONEY_BOTTLE = 737; - public const NETHERITE_INGOT = 742; - public const NETHERITE_SWORD = 743; - public const NETHERITE_SHOVEL = 744; - public const NETHERITE_PICKAXE = 745; - public const NETHERITE_AXE = 746; - public const NETHERITE_HOE = 747; - public const NETHERITE_HELMET = 748; - public const NETHERITE_CHESTPLATE = 749; - public const NETHERITE_LEGGINGS = 750; - public const NETHERITE_BOOTS = 751; - public const NETHERITE_SCRAP = 752; + public const NETHERITE_INGOT = 742; + public const NETHERITE_SWORD = 743; + public const NETHERITE_SHOVEL = 744; + public const NETHERITE_PICKAXE = 745; + public const NETHERITE_AXE = 746; + public const NETHERITE_HOE = 747; + public const NETHERITE_HELMET = 748; + public const NETHERITE_CHESTPLATE = 749; + public const NETHERITE_LEGGINGS = 750; + public const NETHERITE_BOOTS = 751; + public const NETHERITE_SCRAP = 752; + // Dan's Implementations! + public const ECHO_SHARD = 900; + public const AMETHYST_SHARD = 901; + public const RAW_GOLD = 902; + public const RAW_IRON = 903; + public const RAW_COPPER = 904; + public const COPPER_INGOT = 905; + public const TRIAL_KEY = 906; + public const OMINOUS_TRIAL_KEY = 907; + public const WIND_CHARGE = 908; + public const BREEZE_ROD = 909; + public const DISC_FRAGMENT_5 = 910; + public const BRUSH = 911; + public const RECOVERY_COMPASS = 912; + public const MACE = 913; + public const HEAVY_CORE = 914; + public const NETHERITE_UPGRADE_SMITHING_TEMPLATE = 915; + public const BOLT_ARMOR_TRIM_SMITHING_TEMPLATE = 916; + public const HOST_ARMOR_TRIM_SMITHING_TEMPLATE = 917; + public const WAYFINDER_ARMOR_TRIM_SMITHING_TEMPLATE = 918; + public const SHAPER_ARMOR_TRIM_SMITHING_TEMPLATE = 919; + public const RAISER_ARMOR_TRIM_SMITHING_TEMPLATE = 920; + public const SENTRY_ARMOR_TRIM_SMITHING_TEMPLATE = 921; + public const VEX_ARMOR_TRIM_SMITHING_TEMPLATE = 922; + public const WILD_ARMOR_TRIM_SMITHING_TEMPLATE = 923; + public const COAST_ARMOR_TRIM_SMITHING_TEMPLATE = 924; + public const DUNE_ARMOR_TRIM_SMITHING_TEMPLATE = 925; + public const WARD_ARMOR_TRIM_SMITHING_TEMPLATE = 926; + public const TIDE_ARMOR_TRIM_SMITHING_TEMPLATE = 927; + public const SNOUT_ARMOR_TRIM_SMITHING_TEMPLATE = 928; + public const RIB_ARMOR_TRIM_SMITHING_TEMPLATE = 929; + public const EYE_ARMOR_TRIM_SMITHING_TEMPLATE = 930; + public const SPIRE_ARMOR_TRIM_SMITHING_TEMPLATE = 931; + public const FLOW_ARMOR_TRIM_SMITHING_TEMPLATE = 932; + public const SILENCE_ARMOR_TRIM_SMITHING_TEMPLATE = 933; + public const SNIFFER_EGG = 934; + public const ARMADILLO_SCUTE = 935; + public const RESIN_CLUMP = 936; + public const RESIN_BRICK = 937; + public const BUNDLE = 938; + public const BLACK_BUNDLE = 939; + public const BLUE_BUNDLE = 940; + public const BROWN_BUNDLE = 941; + public const CYAN_BUNDLE = 942; + public const GRAY_BUNDLE = 943; + public const GREEN_BUNDLE = 944; + public const LIGHT_BLUE_BUNDLE = 945; + public const LIGHT_GRAY_BUNDLE = 946; + public const LIME_BUNDLE = 947; + public const MAGENTA_BUNDLE = 948; + public const ORANGE_BUNDLE = 949; + public const PINK_BUNDLE = 950; + public const PURPLE_BUNDLE = 951; + public const RED_BUNDLE = 952; + public const WHITE_BUNDLE = 953; + public const YELLOW_BUNDLE = 954; } diff --git a/src/pocketmine/item/Mace.php b/src/pocketmine/item/Mace.php new file mode 100644 index 00000000..7775e459 --- /dev/null +++ b/src/pocketmine/item/Mace.php @@ -0,0 +1,19 @@ +level->getBlock($pos) instanceof Air and $this->level->getBlock($pos->up()) instanceof Air and $this->level->getBlock($pos->down())->isSolid(); } -} \ No newline at end of file +}