自定义快捷栏
第一步,在服务端中新建GermPlugin/gui/game_quick_bar.yml,并填入对应基础配置
game_quick_bar:
private:
tooltipOffsetX: "0"
tooltipOffsetY: "0"
actionBarOffsetX: "0"
actionBarOffsetY: "0"
options:
startX: "w*0.5"
startY: "h"
openDos:
- "update<->thisGui@texture"
- "goto<->1"
quick_bar_backpack_0:
type: slot
size: "16"
identity: "germmod_backpack_0"
fillPath: 'local<->textures/gui/slot.png'
emptyPath: 'local<->textures/gui/slot.png'
locationX: "-96"
locationY: "-18"
quick_bar_backpack_1:
type: slot
size: "16"
identity: "germmod_backpack_1"
fillPath: 'local<->textures/gui/slot.png'
emptyPath: 'local<->textures/gui/slot.png'
locationX: "-96 +18 +4"
locationY: "-18"
quick_bar_backpack_2:
type: slot
size: "16"
identity: "germmod_backpack_2"
fillPath: 'local<->textures/gui/slot.png'
emptyPath: 'local<->textures/gui/slot.png'
locationX: "-96 +18 +4 +18 + 4"
locationY: "-18"
quick_bar_backpack_3:
type: slot
size: "16"
identity: "germmod_backpack_3"
fillPath: 'local<->textures/gui/slot.png'
emptyPath: 'local<->textures/gui/slot.png'
locationX: "-96 +18 +4 +18 + 4 +22"
locationY: "-18"
quick_bar_backpack_4:
type: slot
size: "16"
identity: "germmod_backpack_4"
fillPath: 'local<->textures/gui/slot.png'
emptyPath: 'local<->textures/gui/slot.png'
locationX: "-96 +18 +4 +18 + 4 +22 +22-1"
locationY: "-18"
quick_bar_backpack_5:
type: slot
size: "16"
identity: "germmod_backpack_5"
fillPath: 'local<->textures/gui/slot.png'
emptyPath: 'local<->textures/gui/slot.png'
locationX: "-96 +18 +4 +18 + 4 +22 +22+22-1"
locationY: "-18"
quick_bar_backpack_6:
type: slot
size: "16"
identity: "germmod_backpack_6"
fillPath: 'local<->textures/gui/slot.png'
emptyPath: 'local<->textures/gui/slot.png'
locationX: "-96 +18 +4 +18 + 4 +22 +22+22+22-1"
locationY: "-18"
quick_bar_backpack_7:
type: slot
size: "16"
identity: "germmod_backpack_7"
fillPath: 'local<->textures/gui/slot.png'
emptyPath: 'local<->textures/gui/slot.png'
locationX: "-96 +18 +4 +18 + 4 +22 +22+22+22+22-2"
locationY: "-18"
quick_bar_backpack_8:
type: slot
size: "16"
identity: "germmod_backpack_8"
fillPath: 'local<->textures/gui/slot.png'
emptyPath: 'local<->textures/gui/slot.png'
locationX: "-96 +22 +22 +22 +22+22+22+22+22 - 2"
locationY: "-18"
quick_bar_offhand:
type: slot
enable: "exist(%germ_slot_has_item:germmod_off_hand%,true)"
size: "16"
identity: "germmod_off_hand"
fillPath: 'local<->textures/gui/slot.png'
emptyPath: 'local<->textures/gui/slot.png'
locationX: "-96-22 -16"
locationY: "-18"
texture:
type: texture
path: 'url<->https://s1.ax1x.com/2020/11/07/BIJE5D.png'
locationX: "%quick_holding_slot_x%-1"
locationY: "%quick_holding_slot_y%-1"
locationZ: "%quick_holding_slot_z%+2"
width: "18"
height: "18"