ImageNameItem IDLegacy Item IDNumerical ID Oak Planks minecraft:oak_planks minecraft:planks 5 Spruce Planks minecraft:spruce_planks minecraft:planks 5:1 Birch Planks minecraft:birch_planks minecraft:planks 5:2 Jungle Planks minecraft:jungle_planks ...
Item Frame(minecraft:item_frame) 390 Flower Pot(minecraft:flower_pot) 391 Carrot(minecraft:carrot) 392 Potato(minecraft:potato) 393 Baked Potato(minecraft:baked_potato) 394 Poisonous Potato(minecraft:poisonous_potato) 395 Empty Map(minecraft:map) 396 Golden Carrot(minecraft:golden_carrot) 397 Mob ...
添加物品首先需要创建DeferredRegister,这个可以理解为一个list,用于管理Item。每次创建一个新的Item,就是相当于要将RegistryObject注册到list中: public classItemInit{// idprivate static final String TITANIUM_INGOT="titanium_ingot";private static final String TITANIUM_NUGGET="titanium_nugget";private static fin...
new ItemStack(itemType: ItemType | string, amount?: number)Creates a new instance of a stack of items for use in the world.ParametersitemType: ItemType | string Type of item to create. See the {@link @minecraft/vanilla-data.MinecraftItemTypes} enumeration for a list of standard item ...
import{ world, EntityInventoryComponent, DimensionLocation }from"@minecraft/server";functiongetFirstHotbarItem(log: (message:string, status?:number) =>void, targetLocation: DimensionLocation){for(constplayer of world.getAllPlayers()) {constinventory = player.getComponent(EntityInventoryComponent.component...
To learn more about how Items function in Minecraft: Bedrock Edition, please take a look at the Item JSON DocumentationList of Items展開資料表 IDNameAux Values (if applicable) 383 acacia_boat -140 acacia_button 658 acacia_chest_boat 568 acacia_door -812 acacia_double_slab -575 acac...
在mod 包下新建一个名为init的包,在init包下新建ItemiInit.java 代码语言:javascript 代码运行次数:0 复制Cloud Studio 代码运行 public class ItemInit { public static final DeferredRegister<Item> ITEMS = new DeferredRegister<>(ForgeRegistries.ITEMS, Test.MOD_ID); public static final RegistryObject<Item...
Classic Site map MinecraftShop MinecraftHelp Center Mojang Bug Tracker MinecraftFeedback MinecraftFacebook Education Festival MinecraftInstagram MinecraftTwitter Dungeons Legends Education Marketplace Festival Mojang Studios Twitter Employees list MinecraftYouTube ...
A list of all Minecraft Tool IDs. The basic tools are pickaxes, axes (hatchets), hoes, and shovels. But there are some other Minecraft tools included in this category too.
ItemUseOnEvent LeverActionAfterEvent LeverActionAfterEventSignal ListBlockVolume MolangVariableMap PistonActivateAfterEvent PistonActivateAfterEventSignal Player PlayerBreakBlockAfterEvent PlayerBreakBlockAfterEventSignal PlayerBreakBlockBeforeEvent PlayerBreakBlockBeforeEventSignal PlayerCursorInventoryComponent PlayerDimen...