Items are registered in Item::staticCtor() in
Minecraft.World/Item.cpp . Block IDs 0-255 also
take up space in the item ID range (blocks are automatically wrapped in TileItem). True
item IDs start at 256.
The constructor argument (e.g., new Item(9)) is an internal slot index . The actual
item ID is 256 + slot, declared as *_Id constants in Item.h.
ID Field Name Class Texture Name 256 shovel_ironShovelItemshovelIron 257 pickAxe_ironPickaxeItempickaxeIron 258 hatchet_ironHatchetItemhatchetIron 259 flintAndSteelFlintAndSteelItemflintAndSteel 260 appleFoodItemapple 261 bowBowItembow 262 arrowItemarrow 263 coalCoalItemcoal 264 diamondItemdiamond 265 ironIngotItemingotIron 266 goldIngotItemingotGold 267 sword_ironWeaponItemswordIron 268 sword_woodWeaponItemswordWood 269 shovel_woodShovelItemshovelWood 270 pickAxe_woodPickaxeItempickaxeWood 271 hatchet_woodHatchetItemhatchetWood 272 sword_stoneWeaponItemswordStone 273 shovel_stoneShovelItemshovelStone 274 pickAxe_stonePickaxeItempickaxeStone 275 hatchet_stoneHatchetItemhatchetStone 276 sword_diamondWeaponItemswordDiamond 277 shovel_diamondShovelItemshovelDiamond 278 pickAxe_diamondPickaxeItempickaxeDiamond 279 hatchet_diamondHatchetItemhatchetDiamond 280 stickItemstick 281 bowlItembowl 282 mushroomStewBowlFoodItemmushroomStew 283 sword_goldWeaponItemswordGold 284 shovel_goldShovelItemshovelGold 285 pickAxe_goldPickaxeItempickaxeGold 286 hatchet_goldHatchetItemhatchetGold 287 stringTilePlanterItemstring 288 featherItemfeather 289 sulphurItemsulphur 290 hoe_woodHoeItemhoeWood 291 hoe_stoneHoeItemhoeStone 292 hoe_ironHoeItemhoeIron 293 hoe_diamondHoeItemhoeDiamond 294 hoe_goldHoeItemhoeGold 295 seeds_wheatSeedItemseeds 296 wheatItemwheat 297 breadFoodItembread 298 helmet_clothArmorItemhelmetCloth 299 chestplate_clothArmorItemchestplateCloth 300 leggings_clothArmorItemleggingsCloth 301 boots_clothArmorItembootsCloth 302 helmet_chainArmorItemhelmetChain 303 chestplate_chainArmorItemchestplateChain 304 leggings_chainArmorItemleggingsChain 305 boots_chainArmorItembootsChain 306 helmet_ironArmorItemhelmetIron 307 chestplate_ironArmorItemchestplateIron 308 leggings_ironArmorItemleggingsIron 309 boots_ironArmorItembootsIron 310 helmet_diamondArmorItemhelmetDiamond 311 chestplate_diamondArmorItemchestplateDiamond 312 leggings_diamondArmorItemleggingsDiamond 313 boots_diamondArmorItembootsDiamond 314 helmet_goldArmorItemhelmetGold 315 chestplate_goldArmorItemchestplateGold 316 leggings_goldArmorItemleggingsGold 317 boots_goldArmorItembootsGold 318 flintItemflint 319 porkChop_rawFoodItemporkchopRaw 320 porkChop_cookedFoodItemporkchopCooked 321 paintingHangingEntityItempainting 322 apple_goldGoldenAppleItemappleGold 323 signSignItemsign 324 door_woodDoorItemdoorWood 325 bucket_emptyBucketItembucket 326 bucket_waterBucketItembucketWater 327 bucket_lavaBucketItembucketLava 328 minecartMinecartItemminecart 329 saddleSaddleItemsaddle 330 door_ironDoorItemdoorIron 331 redStoneRedStoneItemredstone 332 snowBallSnowballItemsnowball 333 boatBoatItemboat 334 leatherItemleather 335 milkMilkBucketItemmilk 336 brickItembrick 337 clayItemclay 338 reedsTilePlanterItemreeds 339 paperItempaper 340 bookBookItembook 341 slimeBallItemslimeball 342 minecart_chestMinecartItemminecartChest 343 minecart_furnaceMinecartItemminecartFurnace 344 eggEggItemegg 345 compassCompassItemcompass 346 fishingRodFishingRodItemfishingRod 347 clockClockItemclock 348 yellowDustItemyellowDust 349 fish_rawFoodItemfishRaw 350 fish_cookedFoodItemfishCooked 351 dye_powderDyePowderItemdyePowder 352 boneItembone 353 sugarItemsugar 354 cakeTilePlanterItemcake 355 bedBedItembed 356 diodeTilePlanterItemdiode 357 cookieFoodItemcookie 358 mapMapItemmap 359 shearsShearsItemshears 360 melonFoodItemmelon 361 seeds_pumpkinSeedItemseeds_pumpkin 362 seeds_melonSeedItemseeds_melon 363 beef_rawFoodItembeefRaw 364 beef_cookedFoodItembeefCooked 365 chicken_rawFoodItemchickenRaw 366 chicken_cookedFoodItemchickenCooked 367 rotten_fleshFoodItemrottenFlesh 368 enderPearlEnderpearlItemenderPearl 369 blazeRodItemblazeRod 370 ghastTearItemghastTear 371 goldNuggetItemgoldNugget 372 netherStalkSeedsSeedItemnetherStalkSeeds 373 potionPotionItempotion 374 glassBottleBottleItemglassBottle 375 spiderEyeFoodItemspiderEye 376 fermentedSpiderEyeItemfermentedSpiderEye 377 blazePowderItemblazePowder 378 magmaCreamItemmagmaCream 379 brewingStandTilePlanterItembrewingStand 380 cauldronTilePlanterItemcauldron 381 eyeOfEnderEnderEyeItemeyeOfEnder 382 speckledMelonItemspeckledMelon 383 monsterPlacerMonsterPlacerItemmonsterPlacer 384 expBottleExperienceItemexpBottle 385 fireballFireChargeItemfireball 388 emeraldItememerald 389 frameHangingEntityItemframe 390 flowerPotTilePlanterItemflowerPot 391 carrotsSeedFoodItemcarrots 392 potatoSeedFoodItempotato 393 potatoBakedFoodItempotatoBaked 394 potatoPoisonousFoodItempotatoPoisonous 396 carrotGoldenFoodItemcarrotGolden 397 skullSkullItemskull 398 carrotOnAStickCarrotOnAStickItemcarrotOnAStick 400 pumpkinPieFoodItempumpkinPie 403 enchantedBookEnchantedBookItemenchantedBook 405 netherbrickItemnetherbrick 406 netherQuartzItemnetherquartz 2256 record_01RecordingItemrecord 2257 record_02RecordingItemrecord 2258 record_03RecordingItemrecord 2259 record_04RecordingItemrecord 2260 record_05RecordingItemrecord 2261 record_06RecordingItemrecord 2262 record_07RecordingItemrecord 2263 record_09RecordingItemrecord 2264 record_10RecordingItemrecord 2265 record_11RecordingItemrecord 2266 record_12RecordingItemrecord 2267 record_08RecordingItemrecord
Note
In the LCEMP source, IDs 386-387, 395, 399, 401-402, 404 are unassigned.
IDs 0-255 are reserved for block items (see the Block ID Registry ).
The MinecraftConsoles repo adds these items not present in the LCEMP source:
ID Field Name Class Texture Name 383 spawnEggSpawnEggItemmonsterPlacer 395 emptyMapEmptyMapItemmap_empty 399 netherStarSimpleFoiledItemnether_star 401 fireworksFireworksItemfireworks 402 fireworksChargeFireworksChargeItemfireworks_charge 404 comparatorTilePlanterItemcomparator 407 minecart_tntMinecartItemminecart_tnt 408 minecart_hopperMinecartItemminecart_hopper 417 horseArmorMetalItemiron_horse_armor 418 horseArmorGoldItemgold_horse_armor 419 horseArmorDiamondItemdiamond_horse_armor 420 leadLeashItemlead 421 nameTagNameTagItemname_tag
Note
In the MinecraftConsoles source, MonsterPlacerItem was renamed to SpawnEggItem (ID 383).
The sulphur field (ID 289) was renamed to gunpowder but keeps the same texture name
sulphur. The diode item (ID 356) was renamed to repeater. The milk item (ID 335) was
renamed to bucket_milk. Several items gained potion brewing formulas (gunpowder, redstone,
glowstone dust, sugar, ghast tear, blaze powder, magma cream, spider eye, fermented spider eye,
golden carrot, speckled melon, nether wart).
ID LCEMP Field MinecraftConsoles Field 289 sulphurgunpowder298 helmet_clothhelmet_leather299 chestplate_clothchestplate_leather300 leggings_clothleggings_leather301 boots_clothboots_leather335 milkbucket_milk356 dioderepeater372 netherStalkSeedsnetherwart_seeds
ID Field Track Name 2256 record_0113 2257 record_02cat 2258 record_03blocks 2259 record_04chirp 2260 record_05far 2261 record_06mall 2262 record_07mellohi 2263 record_09stal 2264 record_10strad 2265 record_11ward 2266 record_1211 2267 record_08where are we now
Tools are built with a Tier that sets durability, speed, damage, and
enchantability:
Tier Level Durability Speed Damage Bonus Enchantability WOOD 0 59 2 0 15 STONE 1 131 4 1 5 IRON 2 250 6 2 14 DIAMOND 3 1561 8 3 10 GOLD 0 32 12 0 22
Armor pieces use an ArmorMaterial that sets durability multiplier and defense values:
Material Render Index Durability Factor Defense Values (Head/Chest/Legs/Feet) CLOTH (Leather) 0 Low 1 / 3 / 2 / 1 CHAIN 1 Medium 2 / 5 / 4 / 1 IRON 2 Medium-High 2 / 6 / 5 / 2 DIAMOND 3 High 3 / 8 / 6 / 3 GOLD 4 Low 2 / 5 / 3 / 1
Food items have nutrition (hunger points restored) and saturation modifiers:
Saturation Level Modifier Used By POOR Very low Cookie, rotten flesh LOW Low Apple, raw pork, raw beef, raw chicken, raw fish, melon, potato NORMAL Normal Bread, cooked fish, cooked chicken, baked potato, carrots GOOD Good Cooked pork, cooked beef, spider eye SUPERNATURAL Very high Golden apple, golden carrot
LCEMP item IDs declared in: Minecraft.World/Item.h (lines 389-577)
LCEMP item registration in: Minecraft.World/Item.cpp, Item::staticCtor() (line 237)
MinecraftConsoles item registration in: Minecraft.World/Item.cpp, Item::staticCtor() (line 255)