物品配置结构了解
物品配置的位置
v.3.3.0 版本以前:已在前文介绍了 namespace 的概念,因此找到对应 namespace 的物品配置不是难事,只需打开 ItemsAdder/data/item_packs/namespace 的名称 文件夹即可。
v.3.3.0 版本以后:打开 ItemsAdder/contents/各个包的名称/configs 文件夹即可。
物品配置的构成
此处作为参照手册使用,如果您是第一次阅读的新手,可以跳过此处,直接阅读下一节的教程。
categories
见 分类 一节。
info
info:
namespace: weapon填写这个物品配置对应的 namespace 名称的地方,不可缺失,不可写错。
items
items:
copper_axe:
display_name: 铜斧
lore:
- '&7通过合成获得.'
- ''
- '&7以合成原版该类型物品合成为模板'
- '&7将铁锭替换为铜锭即可.'
mmoitem:
type: TOOL
id: COPPER_AXE
custom_id: 10000
nbt: '{AureliumSkills: {Requirements: {Item: {Foraging: 10}}}}'
durability:
max_custom_durability: 880
resource:
material: STONE_AXE
generate: true
textures:
- tools/copper_axe.png填写物品配置的位置。
armors_rendering
填写盔甲模型的位置。
recipes
填写配方的位置。
trees_populators
填写树木生成器的位置。
surface_decorators
填写地面地物生成器的位置。
cave_decorators
填写洞穴地物生成器的位置。
loot
填写掉落物配置的位置。
behaviours
填写行为属性的位置。
hud
本教程不涉及,为自定义 HUD。
最后更新于
这有帮助吗?