物品配置结构了解
最后更新于
这有帮助吗?
最后更新于
这有帮助吗?
v.3.3.0 版本以前:已在前文介绍了 namespace
的概念,因此找到对应 namespace
的物品配置不是难事,只需打开 ItemsAdder/data/item_packs/namespace 的名称
文件夹即可。
v.3.3.0 版本以后:打开 ItemsAdder/contents/各个包的名称/configs
文件夹即可。
此处作为参照手册使用,如果您是第一次阅读的新手,可以跳过此处,直接阅读下一节的教程。
见 一节。
info:
namespace: weapon
填写这个物品配置对应的 namespace
名称的地方,不可缺失,不可写错。
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:
copper_set_armor:
color: '#d60000'
layer_1: armors/copper_layer_1
layer_2: armors/copper_layer_2
use_color: false
填写盔甲模型的位置。
recipes:
crafting_table:
deadmau5_hat:
permission: myitems.deadmau5_hat
enabled: true
pattern:
- BXB
- XBX
- XXX
ingredients:
B: LIGHT_BLUE_WOOL
result:
item: myitems:deadmau5_hat
amount: 1
填写配方的位置。
trees_populators:
my_tree:
worlds:
- world
bottom_blocks:
- DIRT
- GRASS_BLOCK
- PODZOL
chance: 40.0
max_height: 100
min_height: 50
amount: 3
iterations: 2
tree_type: TREE
leaves: myitems:my_leaves
log: myitems:my_log
biomes:
- PLAINS
- SUNFLOWER_PLAINS
- MOUNTAINS
填写树木生成器的位置。
surface_decorators:
rose:
block: rose
bottom_blocks:
- DIRT
- GRASS_BLOCK
biomes:
- PLAINS
- SUNFLOWER_PLAINS
- RIVER
- MOUNTAINS
- MOUNTAIN_EDGE
- BIRCH_FOREST
- BIRCH_FOREST_HILLS
- TALL_BIRCH_FOREST
- TALL_BIRCH_HILLS
worlds:
- world
chance: 10
max_height: 255
min_height: 0
amount: 1
填写地面地物生成器的位置。
cave_decorators:
small_rocks:
block: small_rocks
bottom_blocks:
- DIRT
- GRASS_BLOCK
- STONE
- COBBLESTONE
- MOSSY_COBBLESTONE
biomes:
- PLAINS
- SUNFLOWER_PLAINS
- RIVER
- MOUNTAINS
- MOUNTAIN_EDGE
- BIRCH_FOREST
- BIRCH_FOREST_HILLS
- TALL_BIRCH_FOREST
- TALL_BIRCH_HILLS
worlds:
- world
chance: 100
max_height: 255
min_height: 0
amount: 4
position: SURFACE
填写洞穴地物生成器的位置。
loots:
blocks:
ruby_ore:
type: itemsadder:ruby_ore
items:
ruby:
item: itemsadder:ruby
min_amount: 1
max_amount: 2
chance: 100
nether_quartz_ore:
type: NETHER_QUARTZ_ORE
drop_only_first: true
items:
crystal:
item: itemsadder:crystal
min_amount: 1
max_amount: 2
chance: 10
knowledge_fragment:
item: itemsadder:knowledge_fragment
min_amount: 1
max_amount: 2
chance: 15
填写掉落物配置的位置。
behaviours:
furniture:
entity: armor_stand
small: true
solid: true
fixed_rotation: true
hitbox:
length: 1
width: 2
height: 1
width_offset: 0.5
placeable_on:
walls: false
ceiling: false
floor: true
furniture_sit:
sit_height: 0.5
填写行为属性的位置。
本教程不涉及,为自定义 HUD。