h [COMMAND] - 命令列表/帮助 heal- 补指定的血 health- 设置生命值 help [COMMAND] - 命令列表/帮助 home 回到出生点 i [数量] - 刷东西 instantmine - 开关即时采矿(采矿无延迟)item [数量][费用] 给玩家物品, 如果不指定则是最大的数量 itemname - 显示当前手上的物品名称 itemstack [数...
h [COMMAND] - 命令列表/帮助 heal - 补指定的血 health - 设置生命值 help [COMMAND] - 命令列表/帮助 home 回到出生点 i <物品代码> [数量] - 刷东西 instantmine - 开关即时采矿(采矿无延迟)item <物品代码|物品名称> [数量] [费用] 给玩家物品, 如果不指定则是最大的数量 itemname -...
hasComponent(componentId: string): booleanReturns true if the specified component is present on this item stack.ParameterscomponentId: string The identifier of the component (e.g., 'minecraft:food') to retrieve. If no namespace prefix is specified, 'minecraft:' is assumed.Returns boolean...
The combination of max_stack_size and max_damage components is no longer allowed in commands and data pack definitions max_stack_size 和 max_damage 的组合现在不再在命令方块以及数据包中支持 Added a new option body in entity equipment sub-predicate to match the item in the body armor slot of...
Stack can be changed with commands by setting slot inventory.0 使用命令设置 inventory.0 以更改物品堆 Fields: 字段: item - item stack to display. Same format as in inventory (example:{id: "minecraft:dirt", Count: 1}) item - 要展示的物品。与物品栏中物品格式相同(举例: {id: "minecraft:...
h [COMMAND] - 命令列表/帮助 heal <HEALTH> - 补指定的血 health <MIN|MAX|INFINITE> - 设置生命值 help [COMMAND] - 命令列表/帮助 home 回到出生点 i <物品代码> [数量] - 刷东西 instantmine - 开关即时采矿(采矿无延迟)item <物品代码|物品名称> [数量] [费用] 给玩家物品, 如果...
h [COMMAND] - 命令列表/帮助 heal - 补指定的血 health - 设置生命值 help [COMMAND] - 命令列表/帮助 home 回到出生点 i <物品代码> [数量] - 刷东西 instantmine - 开关即时采矿(采矿无延迟)item <物品代码|物品名称> [数量] [费用] 给玩家物品, 如果不指定则是最大的数量 itemname -...
CommandManager#execute方法不再返回整数。要得到这个整数,使用ServerCommandSource#withReturnValueConsumer。 RecipeProvider方法有些更改。一些JSON builder和generateCookingRecipes现在需要传入配方类的构造方法,例如CampfireCookingRecipe::new。其他的builder不再需要serializer。
CommandManager#execute方法不再返回整数。要得到这个整数,使用ServerCommandSource#withReturnValueConsumer。 RecipeProvider方法有些更改。一些JSON builder和generateCookingRecipes现在需要传入配方类的构造方法,例如CampfireCookingRecipe::new。其他的builder不再需要serializer。
Gives the simulated player a particular item stack. Parameters itemStack:@minecraft/server.ItemStack Item to give. selectSlot?:boolean=false Whether to set the selected slot once given. Returnsboolean Notes: This function can't be called in read-only mode. ...