name: ENTITY_VILLAGER_TRADE| | | no-items-sold-sound |
volume: 1
pitch: 0
name: ENTITY_VILLAGER_HURT| | | cancel-sound |
volume: 1
pitch: 0
name: ENTITY_VILLAGER_NO| | ### sell_menu.yml | 变量 | 默认值 | 描述 | |----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | window-title | `
volume: 1
pitch: 0
- WWWWWWWWW| 基本上是 9x6 大小的库存布局。 | | item-map |
- W W
- W W
- W W
- W W
- WSSSPCCCW
P:| 对应于 `inventory-map` 字符的项目属性,支持:
end_crystal 1:
name: '\Sell for: \ {total}'
S:
green_stained_glass_pane 1:
name: \SELL
C:
red_stained_glass_pane 1:
name: \CANCEL
W:
purple_stained_glass_pane 1:
name: ' '
`name`: `String`
`lore`: `List
`cmd`(自定义材质数据): `Int`
`unbreakable`: `Bool`
`durability`: `Int`
`item_flags`: `List
`enchantments`: `List
P: price-button| 按钮 '类型',对应于 `inventory-map` 字符。 | ## 注意 ### 配置文件中的物品堆栈 物品堆栈序列化程序支持耐久度、药水、烟花、皮革颜色、头颅。
S: sell-button
C: cancel-button
W: wall-button
示例:
通用示例:
general-example:
diamond_sword 1:
name: Green name
lore:
- Lore 1
- Lore 2
- Lore 3
cmd: 6666
unbreakable: true
enchantments:
- channeling 10
item_flags:
- hide_enchants
- hide_dye
durability: 781
药水示例:
potion-example:
potion 1:
potion:
base: AWKWARD
effects:
- type: ABSORPTION
duration: 100
amplifier: 1
烟花示例:
firework-example:
firework_rocket 1:
firework:
effects:
- flicker: true
trail: true
type: BALL
colors:
- hex: '#808080'
fade:
- hex: '#00ffff'
- hex: '#ff0000'
- hex: '#008000'
power: 0
皮革颜色示例:
color-example:
leather_chestplate 1:
color:
hex: '#00ffff'
玩家头颅示例:
skull-example:
player_head 1:
textures: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTcxNzA1NzY4NDY4ZWViNjM2NmYyYWVhODQ3YjBjNzI2NGUwNWYyNWZlMGZiNGMxZTNlNjYzN2I5NTQ1MjY1YyJ9fX0=
~~~~