用户:
LZ编编编编程猫查看:0 回复:0 评论:0 创建时间:2023-08-16T23:00:08
'hotbar 1': {
display: true,
bindings: [
{ action: "sendMessage", messageName: "hotbar 1", event: "click", selector: "#hotbar_1" }
],
data: `
<image src="${IRON_SWORD}" bottom="8" left="${entity.player.screenWidth / 2 - 356}" width="72" height="72" id="hotbar_1"></image>
`
},
'hotbar 2': {
display: true,
bindings: [
{ action: "sendMessage", messageName: "hotbar 2", event: "click", selector: "#hotbar_2" }
],
data: `
<image src="${GAPPLE[8]}" bottom="8" left="${entity.player.screenWidth / 2 - 276}" width="72" height="72" id="hotbar_2"></image>
`
},
'hotbar 3': {
display: true,
bindings: [
{ action: "sendMessage", messageName: "hotbar 3", event: "click", selector: "#hotbar_3" }
],
data: `
<image src="${BOW}" bottom="8" left="${entity.player.screenWidth / 2 - 196}" width="72" height="72" id="hotbar_3"></image>
`
},
'hotbar 9': {
display: true,
bindings: [
{ action: "sendMessage", messageName: "hotbar 9", event: "click", selector: "#hotbar_9" }
],
data: `
<image src="${ARROW}" bottom="8" left="${entity.player.screenWidth / 2 + 284}" width="72" height="72" id="hotbar_9"></image>
`
},
'select box': {
display: true,
data: `
<image src="https://pic.imgdb.cn/item/喵ca44271喵ac507cc886587.png" bottom="0" left="${entity.player.screenWidth / 2 - 368}" width="96" height="91" id="select_box"></image>
`
},
'scoreboard': {
display: true,
data: `
<group right="3" top="${entity.player.screenHeight / 2 - 128}" width="192" height="256" backgroundColor="#0005" borderColor="#0000" id="scoreboard">
<label text="战桥" percentWidth="100" height="25" x="74" y="3" fontSize="22" color="#ff5"></label>
<label text="${mm + '/' + 喵 + '/' + d.getFullYear() % 100}" percentWidth="100" height="25" x="4" y="28" fontSize="22" color="#aaa"></label>
<label text="[B]" percentWidth="100" height="25" x="4" y="78" fontSize="22" color="#55f"></label>
<label text="⚪⚪⚪⚪⚪" percentWidth="100" height="25" x="36" y="78" fontSize="18" color="#aaa"></label>
<label text="" percentWidth="100" height="25" x="36" y="78" fontSize="18" color="#fff" id="blue_score"></label>
<label text="[R]" percentWidth="100" height="25" x="4" y="103" fontSize="22" color="#f55"></label>
<label text="⚪⚪⚪⚪⚪" percentWidth="100" height="25" x="36" y="103" fontSize="18" color="#aaa"></label>
<label text="" percentWidth="100" height="25" x="36" y="103" fontSize="18" color="#fff" id="red_score"></label>
<label text="击杀数:" percentWidth="100" height="25" x="4" y="153" fontSize="22" color="#fff"></label>
<label text="0" percentWidth="100" height="25" x="92" y="153" fontSize="22" color="#5f5" id="kills"></label>
<label text="得分:" percentWidth="100" height="25" x="4" y="178" fontSize="22" color="#fff"></label>
<label text="0" percentWidth="100" height="25" x="70" y="178" fontSize="22" color="#5f5" id="score"></label>
<label text="dao3.fun" percentWidth="100" height="25" x="4" y="228" fontSize="22" color="#ff5"></label>
</group>
`
},
'title': {
display: true,
data: `
<label text="" left="100" top="${entity.player.screenHeight / 2 - 72}" percentWidth="0" height="72" color="#0000" fontSize="72" id="title"></label>
`
},
'subtitle': {
display: true,
data: `
<label text="" top="${entity.player.screenHeight / 2 + 36}" percentWidth="0" height="24" color="#0000" fontSize="36" id="subtitle"></label>
`
},
'chat': {
display: true,
data: `
<group bottom="160" left="9" width="${entity.player.screenWidth * 0.675}" height="0" backgroundColor="#00000080" borderColor="#0000" id="chat"></group>
`
}
});