文档和工具
EntityTypeBlockTypeEnchantTypeItemTypeSysSoundTypeEntityConstBiomeTypeChangeActorDamageCauseKeyBoardTypeItemAcquisitionMethodItemUseMethodEnumArmorSlotTypeAttrType
EntityType
- 描述 生物类型,主要用于API文档中EngineType组件
xxxxxxxxxxUndefined = 1TypeMask = 0x000000ffMob = 0x00000100PathfinderMob = 0x00000200 | MobMonster = 0x00000800 | PathfinderMobAnimal = 0x00001000 | PathfinderMobTamableAnimal = 0x00004000 | AnimalAmbient = 0x00008000 | MobUndeadMob = 0x00010000 | MonsterZombieMonster = 0x00020000 | UndeadMobArthropod = 0x00040000 | MonsterMinecart = 0x00080000SkeletonMonster = 0x00100000 | UndeadMobEquineAnimal = 0x00200000 | TamableAnimalProjectile = 0x00400000AbstractArrow = 0x00800000WaterAnimal = 0x00002000 | PathfinderMobVillagerBase = 0x01000000 | PathfinderMobChicken = 10 | AnimalCow = 11 | AnimalPig = 12 | AnimalSheep = 13 | AnimalWolf = 14 | TamableAnimalVillager = 15 | VillagerBaseMushroomCow = 16 | AnimalSquid = 17 | WaterAnimalRabbit = 18 | AnimalBat = 19 | AmbientIronGolem = 20 | PathfinderMobSnowGolem = 21 | PathfinderMobOcelot = 22 | TamableAnimalHorse = 23 | EquineAnimalPolarBear = 28 | AnimalLlama = 29 | AnimalParrot = 30 | TamableAnimalDolphin = 31 | WaterAnimalDonkey = 24 | EquineAnimalMule = 25 | EquineAnimalSkeletonHorse = 26 | EquineAnimal | UndeadMobZombieHorse = 27 | EquineAnimal | UndeadMobZombie = 32 | ZombieMonsterCreeper = 33 | MonsterSkeleton = 34 | SkeletonMonsterSpider = 35 | ArthropodPigZombie = 36 | UndeadMobSlime = 37 | MonsterEnderMan = 38 | MonsterSilverfish = 39 | ArthropodCaveSpider = 40 | ArthropodGhast = 41 | MonsterLavaSlime = 42 | MonsterBlaze = 43 | MonsterZombieVillager = 44 | ZombieMonsterWitch = 45 | MonsterStray = 46 | SkeletonMonsterHusk = 47 | ZombieMonsterWitherSkeleton = 48 | SkeletonMonsterGuardian = 49 | MonsterElderGuardian = 50 | MonsterNpc = 51 | MobWitherBoss = 52 | UndeadMobDragon = 53 | MonsterShulker = 54 | MonsterEndermite = 55 | ArthropodAgent = 56 | MobVindicator = 57 | MonsterPhantom = 58 | UndeadMobIllagerBeast = 59 | MonsterArmorStand = 61 | MobTripodCamera = 62 | MobPlayer = 63 | MobItemEntity = 64PrimedTnt = 65FallingBlock = 66MovingBlock = 67ExperiencePotion = 68 | ProjectileExperience = 69EyeOfEnder = 70EnderCrystal = 71FireworksRocket = 72Trident = 73 | Projectile | AbstractArrowTurtle = 74 | AnimalCat = 75 | TamableAnimalShulkerBullet = 76 | ProjectileFishingHook = 77Chalkboard = 78DragonFireball = 79 | ProjectileArrow = 80 | Projectile | AbstractArrowSnowball = 81 | ProjectileThrownEgg = 82 | ProjectilePainting = 83LargeFireball = 85 | ProjectileThrownPotion = 86 | ProjectileEnderpearl = 87 | ProjectileLeashKnot = 88WitherSkull = 89 | ProjectileBoatRideable = 90WitherSkullDangerous = 91 | ProjectileLightningBolt = 93SmallFireball = 94 | ProjectileAreaEffectCloud = 95LingeringPotion = 101 | ProjectileLlamaSpit = 102 | ProjectileEvocationFang = 103 | ProjectileEvocationIllager = 104 | MonsterVex = 105 | MonsterMinecartRideable = 84 | MinecartMinecartHopper = 96 | MinecartMinecartTNT = 97 | MinecartMinecartChest = 98 | MinecartMinecartFurnace = 99 | MinecartMinecartCommandBlock = 100 | MinecartIceBomb = 106 | ProjectileBalloon = 107Pufferfish = 108 | WaterAnimalSalmon = 109 | WaterAnimalDrowned = 110 | ZombieMonsterTropicalfish = 111 | WaterAnimalFish = 112 | WaterAnimalPanda = 113 | AnimalPillager = 114 | MonsterVillagerV2 = 115 | VillagerBaseZombieVillagerV2 = 116 | ZombieMonsterShield = 117WanderingTrader = 118 | PathfinderMobLectern = 119ElderGuardianGhost = 120 | MonsterFox = 121 | AnimalEntityExtension = 255MAX_ENTITY_ID = 256
BlockType
- 描述 方块类型,主要用于API文档中BlockInfo组件。 注意:部分API返回的blockId为负数,则为blockType=255-blockId。如使用blockInfo组件GetBlock接口,海带方块kelp返回的是 -138,blockType为255-(-138)=393。当API返回blockId为正数时,不需要做此转换。
xxxxxxxxxxair = 0stone = 1grass = 2dirt = 3cobblestone = 4planks = 5sapling = 6bedrock = 7flowing_water = 8water = 9flowing_lava = 10lava = 11sand = 12gravel = 13gold_ore = 14iron_ore = 15coal_ore = 16log = 17leaves = 18sponge = 19glass = 20lapis_ore = 21lapis_block = 22dispenser = 23sandstone = 24noteblock = 25bed = 26golden_rail = 27detector_rail = 28sticky_piston = 29web = 30tallgrass = 31deadbush = 32piston = 33pistonArmCollision = 34wool = 35yellow_flower = 37red_flower = 38brown_mushroom = 39red_mushroom = 40gold_block = 41iron_block = 42stone_slab = 44double_stone_slab = 43brick_block = 45tnt = 46bookshelf = 47mossy_cobblestone = 48obsidian = 49torch = 50mob_spawner = 52oak_stairs = 53chest = 54redstone_wire = 55diamond_ore = 56diamond_block = 57crafting_table = 58wheat = 59farmland = 60furnace = 61lit_furnace = 62standing_sign = 63wooden_door = 64ladder = 65rail = 66stone_stairs = 67wall_sign = 68lever = 69stone_pressure_plate = 70iron_door = 71wooden_pressure_plate = 72redstone_ore = 73lit_redstone_ore = 74unlit_redstone_torch = 75redstone_torch = 76stone_button = 77snow_layer = 78ice = 79snow = 80cactus = 81clay = 82reeds = 83jukebox = 84fence = 85pumpkin = 86netherrack = 87soul_sand = 88glowstone = 89portal = 90lit_pumpkin = 91cake = 92unpowered_repeater = 93powered_repeater = 94invisibleBedrock = 95trapdoor = 96monster_egg = 97stonebrick = 98brown_mushroom_block = 99red_mushroom_block = 100iron_bars = 101glass_pane = 102melon_block = 103pumpkin_stem = 104melon_stem = 105vine = 106fence_gate = 107brick_stairs = 108stone_brick_stairs = 109mycelium = 110waterlily = 111nether_brick = 112nether_brick_fence = 113nether_brick_stairs = 114nether_wart = 115enchanting_table = 116brewing_stand = 117cauldron = 118end_portal = 119end_portal_frame = 120end_stone = 121dragon_egg = 122redstone_lamp = 123lit_redstone_lamp = 124dropper = 125activator_rail = 126cocoa = 127sandstone_stairs = 128emerald_ore = 129ender_chest = 130tripwire_hook = 131tripWire = 132emerald_block = 133spruce_stairs = 134birch_stairs = 135jungle_stairs = 136command_block = 137beacon = 138cobblestone_wall = 139flower_pot = 140carrots = 141potatoes = 142wooden_button = 143skull = 144anvil = 145trapped_chest = 146light_weighted_pressure_plate = 147heavy_weighted_pressure_plate = 148unpowered_comparator = 149powered_comparator = 150daylight_detector = 151redstone_block = 152quartz_ore = 153hopper = 154quartz_block = 155quartz_stairs = 156wooden_slab = 158double_wooden_slab = 157stained_hardened_clay = 159stained_glass_pane = 160leaves2 = 161log2 = 162acacia_stairs = 163dark_oak_stairs = 164slime = 165iron_trapdoor = 167prismarine = 168seaLantern = 169hay_block = 170carpet = 171hardened_clay = 172coal_block = 173packed_ice = 174double_plant = 175standing_banner = 176wall_banner = 177daylight_detector_inverted = 178red_sandstone = 179red_sandstone_stairs = 180stone_slab2 = 182double_stone_slab2 = 181spruce_fence_gate = 183birch_fence_gate = 184jungle_fence_gate = 185dark_oak_fence_gate = 186acacia_fence_gate = 187repeating_command_block = 188chain_command_block = 189spruce_door = 193birch_door = 194jungle_door = 195acacia_door = 196dark_oak_door = 197grass_path = 198frame = 199chorus_flower = 200purpur_block = 201purpur_stairs = 203undyed_shulker_box = 205end_bricks = 206frosted_ice = 207end_rod = 208end_gateway = 209magma = 213nether_wart_block = 214red_nether_brick = 215bone_block = 216structure_void = 217shulker_box = 218purple_glazed_terracotta = 219white_glazed_terracotta = 220orange_glazed_terracotta = 221magenta_glazed_terracotta = 222light_blue_glazed_terracotta = 223yellow_glazed_terracotta = 224lime_glazed_terracotta = 225pink_glazed_terracotta = 226gray_glazed_terracotta = 227silver_glazed_terracotta = 228cyan_glazed_terracotta = 229blue_glazed_terracotta = 231brown_glazed_terracotta = 232green_glazed_terracotta = 233red_glazed_terracotta = 234black_glazed_terracotta = 235concrete = 236concretePowder = 237chorus_plant = 240stained_glass = 241camera = 242podzol = 243beetroot = 244stonecutter = 245stonecutter_block = 452glowingobsidian = 246netherreactor = 247info_update = 248info_update2 = 249movingBlock = 250observer = 251structure_block = 252reserved6 = 255prismarine_stairs = 257dark_prismarine_stairs = 258prismarine_bricks_stairs = 259stripped_spruce_log = 260stripped_birch_log = 261stripped_jungle_log = 262stripped_acacia_log = 263stripped_dark_oak_log = 264stripped_oak_log = 265blue_ice = 266fire = 51chemistry_table = 238underwater_torch = 239hard_glass = 253hard_stained_glass = 254hard_glass_pane = 190hard_stained_glass_pane = 191chemical_heat = 192colored_torch_rg = 202colored_torch_bp = 204mod_ore = 230element_0 = 36coral = 386coral_block = 387coral_fan = 388coral_fan_dead = 389coral_fan_hang = 390coral_fan_hang2 = 391coral_fan_hang3 = 392kelp = 393dried_kelp_block = 394seagrass = 385acacia_button = 395birch_button = 396dark_oak_button = 397jungle_button = 398spruce_button = 399acacia_trapdoor = 400birch_trapdoor = 401dark_oak_trapdoor = 402jungle_trapdoor = 403spruce_trapdoor = 404acacia_pressure_plate = 405birch_pressure_plate = 406dark_oak_pressure_plate = 407jungle_pressure_plate = 408spruce_pressure_plate = 409carved_pumpkin = 410sea_pickle = 411conduit = 412bubble_column = 415turtle_egg = 414barrier = 416scaffolding = 420bamboo = 418bamboo_sapling = 419stone_slab3 = 417stone_slab4 = 421double_stone_slab3 = 422double_stone_slab4 = 423granite_stairs = 424diorite_stairs = 425andesite_stairs = 426polished_granite_stairs = 427polished_diorite_stairs = 428polished_andesite_stairs = 429mossy_stone_brick_stairs = 430smooth_red_sandstone_stairs = 431smooth_sandstone_stairs = 432end_brick_stairs = 433mossy_cobblestone_stairs = 434normal_stone_stairs = 435smooth_stone = 438red_nether_brick_stairs = 439smooth_quartz_stairs = 440spruce_standing_sign = 436spruce_wall_sign = 437birch_standing_sign = 441birch_wall_sign = 442jungle_standing_sign = 443jungle_wall_sign = 444acacia_standing_sign = 445acacia_wall_sign = 446darkoak_standing_sign = 447darkoak_wall_sign = 448lectern = 449grindstone = 450blast_furnace = 451smoker = 453lit_smoker = 454cartography_table = 455fletching_table = 456smithing_table = 457barrel = 458loom = 459bell = 461sweet_berry_bush = 462lantern = 463campfire = 464lava_cauldron = 465jigsaw = 466wood = 467composter = 468lit_blast_furnace = 469light_block = 470wither_rose = 471stickyPistonArmCollision = 472
EnchantType
- 描述 方块类型,主要用于API文档中BlockInfo组件
xxxxxxxxxxArmorAll = 0ArmorFire = 1ArmorFall = 2ArmorExplosive = 3ArmorProjectile = 4ArmorThorns = 5WaterBreath = 6WaterSpeed = 7WaterAffinity = 8WeaponDamage = 9WeaponUndead = 10WeaponArthropod = 11WeaponKnockback = 12WeaponFire = 13WeaponLoot = 14MiningEfficiency = 15MiningSilkTouch = 16MiningDurability = 17MiningLoot = 18BowDamage = 19BowKnockback = 20BowFire = 21BowInfinity = 22FishingLoot = 23FishingLure = 24FrostWalker = 25Mending = 26CurseBinding = 27CurseVanishing = 28TridentImpaling = 29TridentRiptide = 30TridentLoyalty = 31TridentChanneling = 32CrossbowMultishot = 33CrossbowPiercing = 34CrossbowQuickCharge = 35NumEnchantments = 36InvalidEnchantment = 37
ItemType
- 描述 物品类型,主要用于API文档中物品相关组件的itemId参数
xxxxxxxxxxapple = 260golden_apple = 322appleEnchanted = 466mushroom_stew = 282bread = 297porkchop = 319cooked_porkchop = 320fish = 349salmon = 460clownfish = 461pufferfish = 462cooked_fish = 350cooked_salmon = 463dried_kelp = 464cookie = 357melon = 360beef = 363cooked_beef = 364chicken = 365cooked_chicken = 366rotten_flesh = 367spider_eye = 375carrot = 391potato = 392baked_potato = 393poisonous_potato = 394golden_carrot = 396pumpkin_pie = 400beetroot = 457beetroot_soup = 459sweet_berries = 477rabbit = 411cooked_rabbit = 412rabbit_stew = 413wheat_seeds = 295pumpkin_seeds = 361melon_seeds = 362nether_wart = 372beetroot_seeds = 458iron_shovel = 256iron_pickaxe = 257iron_axe = 258flint_and_steel = 259bow = 261arrow = 262coal = 263diamond = 264iron_ingot = 265gold_ingot = 266iron_sword = 267wooden_sword = 268wooden_shovel = 269wooden_pickaxe = 270wooden_axe = 271stone_sword = 272stone_shovel = 273stone_pickaxe = 274stone_axe = 275diamond_sword = 276diamond_shovel = 277diamond_pickaxe = 278diamond_axe = 279stick = 280bowl = 281golden_sword = 283golden_shovel = 284golden_pickaxe = 285golden_axe = 286string = 287feather = 288gunpowder = 289wooden_hoe = 290stone_hoe = 291iron_hoe = 292diamond_hoe = 293golden_hoe = 294wheat = 296leather_helmet = 298leather_chestplate = 299leather_leggings = 300leather_boots = 301chainmail_helmet = 302chainmail_chestplate = 303chainmail_leggings = 304chainmail_boots = 305iron_helmet = 306iron_chestplate = 307iron_leggings = 308iron_boots = 309diamond_helmet = 310diamond_chestplate = 311diamond_leggings = 312diamond_boots = 313mod_armor = 454golden_helmet = 314golden_chestplate = 315golden_leggings = 316golden_boots = 317shield = 513flint = 318painting = 321sign = 323wooden_door = 324bucket = 325minecart = 328saddle = 329iron_door = 330redstone = 331snowball = 332boat = 333leather = 334kelp = 335brick = 336clay_ball = 337reeds = 338paper = 339book = 340slime_ball = 341chest_minecart = 342egg = 344compass = 345fishing_rod = 346clock = 347glowstone_dust = 348dye = 351bone = 352sugar = 353cake = 354bed = 355repeater = 356map = 358shears = 359ender_pearl = 368blaze_rod = 369ghast_tear = 370gold_nugget = 371potion = 373glass_bottle = 374fermented_spider_eye = 376blaze_powder = 377magma_cream = 378brewing_stand = 379cauldron = 380ender_eye = 381speckled_melon = 382spawn_egg = 383experience_bottle = 384fireball = 385writable_book = 386written_book = 387emerald = 388frame = 389flower_pot = 390emptyMap = 395skull = 397carrotOnAStick = 398netherStar = 399fireworks = 401fireworksCharge = 402enchanted_book = 403comparator = 404netherbrick = 405quartz = 406tnt_minecart = 407hopper_minecart = 408hopper = 410rabbit_foot = 414rabbit_hide = 415horsearmorleather = 416horsearmoriron = 417horsearmorgold = 418horsearmordiamond = 419record_13 = 500record_cat = 501record_blocks = 502record_chirp = 503record_far = 504record_mall = 505record_mellohi = 506record_stal = 507record_strad = 508record_ward = 509record_11 = 510record_wait = 511trident = 455lead = 420name_tag = 421prismarine_crystals = 422muttonRaw = 423muttonCooked = 424armor_stand = 425end_crystal = 426spruce_door = 427birch_door = 428jungle_door = 429acacia_door = 430dark_oak_door = 431chorus_fruit = 432chorus_fruit_popped = 433dragon_breath = 437splash_potion = 438lingering_potion = 441command_block_minecart = 443elytra = 444prismarine_shard = 409shulker_shell = 445banner = 446totem = 450iron_nugget = 452nautilus_shell = 465heart_of_the_sea = 467turtle_shell_piece = 468turtle_helmet = 469phantom_membrane = 470crossbow = 471spruce_sign = 472birch_sign = 473jungle_sign = 474acacia_sign = 475darkoak_sign = 476banner_pattern = 434campfire = 720suspicious_stew = 734camera = 698compound = 499mod = 456ice_bomb = 453bleach = 451rapid_fertilizer = 449balloon = 448medicine = 447sparkler = 442glow_stick = 422
SysSoundType
- 描述 系统音效类型,主要用于API文档中systemAudio组件
xxxxxxxxxxItemUseOn = 0Hit = 1Step = 2Fly = 3Jump = 4Break = 5Place = 6HeavyStep = 7Gallop = 8Fall = 9Ambient = 10AmbientBaby = 11AmbientInWater = 12Breathe = 13Death = 14DeathInWater = 15DeathToZombie = 16Hurt = 17HurtInWater = 18Mad = 19Boost = 20Bow = 21SquishBig = 22SquishSmall = 23FallBig = 24FallSmall = 25Splash = 26Fizz = 27Flap = 28Swim = 29Drink = 30Eat = 31Takeoff = 32Shake = 33Plop = 34Land = 35Saddle = 36Armor = 37ArmorPlace = 38AddChest = 39Throw = 40Attack = 41AttackNoDamage = 42AttackStrong = 43Warn = 44Shear = 45Milk = 46Thunder = 47Explode = 48Fire = 49Ignite = 50Fuse = 51Stare = 52Spawn = 53Shoot = 54BreakBlock = 55Launch = 56Blast = 57LargeBlast = 58Twinkle = 59Remedy = 60Unfect = 61LevelUp = 62BowHit = 63BulletHit = 64ExtinguishFire = 65ItemFizz = 66ChestOpen = 67ChestClosed = 68ShulkerBoxOpen = 69ShulkerBoxClosed = 70EnderChestOpen = 71EnderChestClosed = 72PowerOn = 73PowerOff = 74Attach = 75Detach = 76Deny = 77Tripod = 78Pop = 79DropSlot = 80Note = 81Thorns = 82PistonIn = 83PistonOut = 84Portal = 85Water = 86LavaPop = 87Lava = 88Burp = 89BucketFillWater = 90BucketFillLava = 91BucketEmptyWater = 92BucketEmptyLava = 93EquipChain = 94EquipDiamond = 95EquipGeneric = 96EquipGold = 97EquipIron = 98EquipLeather = 99EquipElytra = 100Record13 = 101RecordCat = 102RecordBlocks = 103RecordChirp = 104RecordFar = 105RecordMall = 106RecordMellohi = 107RecordStal = 108RecordStrad = 109RecordWard = 110Record11 = 111RecordWait = 112RecordNull = 113Flop = 114GuardianCurse = 115MobWarning = 116MobWarningBaby = 117Teleport = 118ShulkerOpen = 119ShulkerClose = 120Haggle = 121HaggleYes = 122HaggleNo = 123HaggleIdle = 124ChorusGrow = 125ChorusDeath = 126Glass = 127PotionBrewed = 128CastSpell = 129PrepareAttackSpell = 130PrepareSummon = 131PrepareWololo = 132Fang = 133Charge = 134TakePicture = 135PlaceLeashKnot = 136BreakLeashKnot = 137AmbientGrowl = 138AmbientWhine = 139AmbientPant = 140AmbientPurr = 141AmbientPurreow = 142DeathMinVolume = 143DeathMidVolume = 144ImitateBlaze = 145ImitateCaveSpider = 146ImitateCreeper = 147ImitateElderGuardian = 148ImitateEnderDragon = 149ImitateEnderman = 150ImitateEndermite = 151ImitateEvocationIllager = 152ImitateGhast = 153ImitateHusk = 154ImitateIllusionIllager = 155ImitateMagmaCube = 156ImitatePolarBear = 157ImitateShulker = 158ImitateSilverfish = 159ImitateSkeleton = 160ImitateSlime = 161ImitateSpider = 162ImitateStray = 163ImitateVex = 164ImitateVindicationIllager = 165ImitateWitch = 166ImitateWither = 167ImitateWitherSkeleton = 168ImitateWolf = 169ImitateZombie = 170ImitateZombiePigman = 171ImitateZombieVillager = 172EnderEyePlaced = 173EndPortalCreated = 174AnvilUse = 175BottleDragonBreath = 176PortalTravel = 177TridentHit = 178TridentReturn = 179TridentRiptide_1 = 180TridentRiptide_2 = 181TridentRiptide_3 = 182TridentThrow = 183TridentThunder = 184TridentHitGround = 185Default = 186FletchingTableUse = 187ElemConstructOpen = 188IceBombHit = 189BalloonPop = 190LTReactionIceBomb = 191LTReactionBleach = 192LTReactionElephantToothpaste = 193LTReactionElephantToothpaste2 = 194LTReactionGlowStick = 195LTReactionGlowStick2 = 196LTReactionLuminol = 197LTReactionSalt = 198LTReactionFertilizer = 199LTReactionFireball = 200LTReactionMagnesiumSalt = 201LTReactionMiscFire = 202LTReactionFire = 203LTReactionMiscExplosion = 204LTReactionMiscMystical = 205LTReactionMiscMystical2 = 206LTReactionProduct = 207SparklerUse = 208GlowStickUse = 209SparklerActive = 210ConvertToDrowned = 211BucketFillFish = 212BucketEmptyFish = 213BubbleColumnUpwards = 214BubbleColumnDownwards = 215BubblePop = 216BubbleUpInside = 217BubbleDownInside = 218HurtBaby = 219DeathBaby = 220StepBaby = 221SpawnBaby = 222Born = 223TurtleEggBreak = 224TurtleEggCrack = 225TurtleEggHatched = 226LayEgg = 227TurtleEggAttacked = 228BeaconActivate = 229BeaconAmbient = 230BeaconDeactivate = 231BeaconPower = 232ConduitActivate = 233ConduitAmbient = 234ConduitAttack = 235ConduitDeactivate = 236ConduitShort = 237Swoop = 238BambooSaplingPlace = 239PreSneeze = 240Sneeze = 241AmbientTame = 242Scared = 243ScaffoldingClimb = 244CrossbowLoadingStart = 245CrossbowLoadingMiddle = 246CrossbowLoadingEnd = 247CrossbowShoot = 248CrossbowQuickChargeStart = 249CrossbowQuickChargeMiddle = 250CrossbowQuickChargeEnd = 251AmbientAggressive = 252AmbientWorried = 253CantBreed = 254ShieldBlock = 255LecternBookPlace = 256GrindstoneUse = 257Bell = 258CampfireCrackle = 259SweetBerryBushHurt = 262SweetBerryBushPick = 263Roar = 260Stun = 261CartographyTableUse = 264StonecutterUse = 265ComposterEmpty = 266ComposterFill = 267ComposterFillLayer = 268ComposterReady = 269BarrelOpen = 270BarrelClose = 271RaidHorn = 272LoomUse = 273AmbientInRaid = 274UICartographyTableUse = 275UIStonecutterUse = 276UILoomUse = 277SmokerUse = 278BlastFurnaceUse = 279SmithingTableUse = 280Screech = 281Sleep = 282FurnaceUse = 283MooshroomConvert = 284MilkSuspiciously = 285Celebrate = 286Undefined = 287
EntityConst
- 描述 实体类型,主要用于API文档中的CreateEntity功能
xxxxxxxxxxTYPE_LVOBJ = "lvobj"TYPE_ENTITY = "entity"TYPE_MONSTER = "monster"TYPE_PLAYER = "player"TYPE_BULLET = "bullet"TYPE_SFX = "sfx"TYPE_BUFF = "buff"TYPE_PARTICLE = "particle"TYPE_FONT = "font"TYPE_TEAM = "team"TYPE_ITEM_ENTITY = "item_entity"TYPE_NPC = "npc"TYPE_MOD_ENTITY = "mod_entity"
BiomeType
- 描述 生物群系,主要用于API文档中的mobSpawn组件,设置世界的生成生物规则
xxxxxxxxxxocean = 0plains = 1desert = 2extreme_hills = 3forest = 4taiga = 5swampland = 6river = 7hell = 8the_end = 9legacy_frozen_ocean = 10frozen_river = 11ice_plains = 12ice_mountains = 13mushroom_island = 14mushroom_island_shore = 15beach = 16desert_hills = 17forest_hills = 18taiga_hills = 19extreme_hills_edge = 20jungle = 21jungle_hills = 22jungle_edge = 23deep_ocean = 24stone_beach = 25cold_beach = 26birch_forest = 27birch_forest_hills = 28roofed_forest = 29cold_taiga = 30cold_taiga_hills = 31mega_taiga = 32mega_taiga_hills = 33extreme_hills_plus_trees = 34savanna = 35savanna_plateau = 36mesa = 37mesa_plateau_stone = 38mesa_plateau = 39warm_ocean = 40deep_warm_ocean = 41lukewarm_ocean = 42deep_lukewarm_ocean = 43cold_ocean = 44deep_cold_ocean = 45frozen_ocean = 46deep_frozen_ocean = 47bamboo_jungle = 48bamboo_jungle_hills = 49sunflower_plains = 129desert_mutated = 130extreme_hills_mutated = 131flower_forest = 132taiga_mutated = 133swampland_mutated = 134ice_plains_spikes = 140jungle_mutated = 149jungle_edge_mutated = 151birch_forest_mutated = 155birch_forest_hills_mutated = 156roofed_forest_mutated = 157cold_taiga_mutated = 158redwood_taiga_mutated = 160redwood_taiga_hills_mutated = 161extreme_hills_plus_trees_mutated = 162savanna_mutated = 163savanna_plateau_mutated = 164mesa_bryce = 165mesa_plateau_stone_mutated = 166mesa_plateau_mutated = 167
Change
- 描述 生物群系更改的类型,主要用于API文档中的mobSpawn组件,设置世界的生成生物规则
xxxxxxxxxxAdd = 0Remove = 1
ActorDamageCause
- 描述 实体伤害来源,及实体被伤害的原因。
xxxxxxxxxx# -*- coding:utf-8 -*-class ActorDamageCause(object): NONE = "none" Override = "override" Contact = "contact" # EntityDamageByBlockSource Cactus EntityAttack = "entity_attack" # EntityDamageByEntitySource Projectile = "projectile" # EntityDamageByChildEntitySource Suffocation = "suffocation" Fall = "fall" Fire = "fire" FireTick = "fire_tick" Lava = "lava" Drowning = "drowning" BlockExplosion = "block_explosion" # EntityDamageByBlockSource (bed explosion in nether) EntityExplosion = "entity_explosion" # EntityDamageSource / EntityDamageByEntitySource Void = "void" # Falling out of world Suicide = "suicide" # kill command. not here yet! Magic = "magic" # Potions! Wither = "wither" # Wither poison Starve = "starve" # Hunger starvation Anvil = "anvil" Thorns = "thorns" FallingBlock = "falling_block" Piston = "piston" FlyIntoWall = "none" # Using an Elytra and flying into a wall at high speeds Magma = "magma" Fireworks = "fireworks" Lightning = "none" Charging = "charging" # will also knock the damage causer back from the target All = "all"KeyBoardType
- 描述 PC端点击键盘输入的按钮枚举。
xxxxxxxxxxclass KeyBoard: KEY_GOBACK = 4 KEY_BACKSPACE = 8 KEY_TAB = 9 KEY_RETURN = 13 KEY_PAUSE = 19 KEY_LSHIFT = 16 KEY_CONTROL = 17 KEY_MENU = 18 KEY_CAPS_LOCK = 20 KEY_ESCAPE = 27 KEY_SPACE = 32 KEY_PG_UP = 33 KEY_PG_DOWN = 34 KEY_END = 35 KEY_HOME = 36 KEY_LEFT = 37 KEY_UP = 38 KEY_RIGHT = 39 KEY_DOWN = 40 KEY_INSERT = 45 KEY_DELETE = 46 KEY_0 = 48 KEY_1 = 49 KEY_2 = 50 KEY_3 = 51 KEY_4 = 52 KEY_5 = 53 KEY_6 = 54 KEY_7 = 55 KEY_8 = 56 KEY_9 = 57 KEY_A = 65 KEY_B = 66 KEY_C = 67 KEY_D = 68 KEY_E = 69 KEY_F = 70 KEY_G = 71 KEY_H = 72 KEY_I = 73 KEY_J = 74 KEY_K = 75 KEY_L = 76 KEY_M = 77 KEY_N = 78 KEY_O = 79 KEY_P = 80 KEY_Q = 81 KEY_R = 82 KEY_S = 83 KEY_T = 84 KEY_U = 85 KEY_V = 86 KEY_W = 87 KEY_X = 88 KEY_Y = 89 KEY_Z = 90 KEY_NUMPAD0 = 96 KEY_NUMPAD1 = 97 KEY_NUMPAD2 = 98 KEY_NUMPAD3 = 99 KEY_NUMPAD4 = 100 KEY_NUMPAD5 = 101 KEY_NUMPAD6 = 102 KEY_NUMPAD7 = 103 KEY_NUMPAD8 = 104 KEY_NUMPAD9 = 105 KEY_MULTIPLY = 106 KEY_ADD = 107 KEY_SUBTRACT = 109 KEY_DECIMAL = 110 KEY_DIVIDE = 111 KEY_F1 = 112 KEY_F2 = 113 KEY_F3 = 114 KEY_F4 = 115 KEY_F5 = 116 KEY_F6 = 117 KEY_F7 = 118 KEY_F8 = 119 KEY_F9 = 120 KEY_F10 = 121 KEY_F11 = 122 KEY_F12 = 123 KEY_F13 = 124 KEY_NUM_LOCK = 144 KEY_SCROLL = 145 KEY_SEMICOLON = 186 KEY_EQUALS = 187 KEY_COMMA = 188 KEY_MINUS = 189 KEY_PERIOD = 190 KEY_SLASH = 191 KEY_GRAVE = 192 KEY_LBRACKET = 219 KEY_BACKSLASH = 220 KEY_RBRACKET = 221 KEY_APOSTRAPHE = 222 KEY_ANDROID_MENU = 0xffItemAcquisitionMethod
xxxxxxxxxxclass ItemAcquisitionMethod(object): Unknown = -1 MethodNone = 0 PickedUp = 1 Crafted = 2 TakenFromChest = 3 TakenFromEnderchest = 4 Bought = 5 Anvil = 6 Smelted = 7 Brewed = 8 Filled = 9 Trading = 10 Fishing = 11 Container = 13ItemUseMethodEnum
xxxxxxxxxxclass ItemUseMethodEnum(object): Unknown = -1 EquipArmor = 0 # Equipping armor Eat = 1 # Eating food Attack = 2 # Attacking (anything?) Consume = 3 # Consuming potion Throw = 4 # Thrown item (snowball, potion) Shoot = 5 # Bow+Arrow Place = 6 # Place an item (e.g. Sign) FillBottle = 7 # Attempted to fill an empty bottle FillBucket = 8 # Attempted to fill an empty bucket PourBucket = 9 # Pour contents of a filled bucket UseTool = 10 # Use right-click function of a tool (flint&steel, hoe, shovel, etc) Interact = 11 Retrieved = 12 # Currently only for reeling in the fishing rodArmorSlotType
- 描述 盔甲槽位枚举值文档
xxxxxxxxxxclass ArmorSlotType(object): DEFAULT = -1 HEAD = 0 BODY = 1 LEG = 2 FOOT = 3AttrType
- 描述 属性枚举值文档,用于attr属性组件
xxxxxxxxxxclass AttrType(object): HEALTH = 0 SPEED = 1 DAMAGE = 2