跳到主要内容

商店配置

Kether 语法 点击查看

找到你需要设置商店功能的时装配置 `GeekCosmetics/cos/你的时装配置.yml

免费时装案例

cosmetics:
海马气球:
type: BALLOON
itemStack:
itemSource: ItemsAdder
itemID: "rubber_balloon"
name: '&b海马气球'
lore:
- '&b免费的海马气球'
allowColor: false
closeBalloonAction: false
shop:
condition: ""
achieve: |-
tell "你已经获得过这个气球了."
sound BLOCK_NOTE_BLOCK_DIDGERIDOO by 1 1
deny: ""
allow: |-
cosmetics add 海马气球
tell "成功领取一个海马气球,快去衣橱看看效果把."
sound ENTITY_EXPERIENCE_ORB_PICKUP by 1 1

点券购买时装案例

注意插件不提供 PlayerPoints 的 Kether 动作 不要问我为什么...

cosmetics:
魔法光环:
type: SOLE
itemStack:
itemSource: ItemsAdder
itemID: "guanghuan1"
material: APPLE
customModelData: 0
name: '&b魔法光环'
lore: []
# 是否允许上色
allowColor: false
# 商店配置
# 以下所有位置均使用 kether 脚本
shop:
condition: "check papi %playerpoints_points% > 1000"
achieve: |-
tell "你已经获得过这个光环了."
sound BLOCK_NOTE_BLOCK_DIDGERIDOO by 1 1
deny: |-
tell "你没有这么多点券购买这个光环."
sound BLOCK_NOTE_BLOCK_DIDGERIDOO by 1 1
allow: |-
command "points take %player_name% 1000" as console
cos add 魔法光环
tell "成功领取一个魔法光环,快去衣橱看看效果把."
sound ENTITY_EXPERIENCE_ORB_PICKUP by 1 1

金币购买时装案例

cosmetics:
皮质背包:
type: PACK
itemStack:
itemSource: ItemsAdder
itemID: "bundle_filled"
name: '&e皮质背包'
lore: []
allowColor: false
# 商店配置
# 以下所有位置均使用 kether 脚本
shop:
condition: "money has 800"
achieve: |-
tell "你已经获得过这个光环了."
sound BLOCK_NOTE_BLOCK_DIDGERIDOO by 1 1
deny: |-
tell "你没有这么多金币购买这个光环."
sound BLOCK_NOTE_BLOCK_DIDGERIDOO by 1 1
allow: |-
money take 800
cos add 皮质背包
tell "成功领取一个魔法光环,快去衣橱看看效果把."
sound ENTITY_EXPERIENCE_ORB_PICKUP by 1 1