deluxemenu怎么设置花费多少点券执行某个指令
点券插件用的是playerpoints
点券插件用的是playerpoints
具体我也不清楚,dm的字母太多了,我都不用,你看看的站内教程https://www.mcbbs.net/thread-953320-1-1.html,我个人是trmenu,功能多,写法简便
- 'points':
- material: stone
- data: 1
- slot: 2
- display_name: '&f花岗岩'
- lore:
- - '&8* &7Buy for: &f100 &c点券'
- - '&8* &7Sell for: &f25 &a点券'
- left_click_requirement:
- requirements:
- anything_here:
- type: '>='
- input: '%playerpoints_points%'
- output: '100'
- deny_commands:
- - '[message] &4商店 &8> &f你需要 &c100 点券 &f来购买 &c1 x 花岗岩&f.'
- right_click_requirement:
- requirements:
- anything_here:
- type: string equals
- input: '%checkitem_mat:STONE,data:1%'
- output: 'yes'
- deny_commands:
- - '[message] &4商店 &8> &f你没有 &c1 x 花岗岩 &f来出售.'
- left_click_commands:
- - '[console] points take %player_name% 100'
- - '[console] give %player_name% stone:1 1'
- - '[message] &2商店 &8> &f你购买了 &a1 x 花岗岩 &f花费 &a100 点券&f.'
- right_click_commands:
- - '[console] points give %player_name% 25'
- - '[console] clear %player_name% stone:1 1'
- - '[message] &2商店 &8> &f你出售了 &a1 x 花岗岩 &f获得 &a25 点券&f.'
不会再追问
本帖最后由 Lonely丶独独 于 2021-2-8 19:38 编辑
[Tutorial][CPS] 还在用CC?手把手教你写一个完美的DeluxeMenus菜单
https://www.mcbbs.net/thread-953320-1-1.html
复制代码
[Tutorial][CPS] 还在用CC?手把手教你写一个完美的DeluxeMenus菜单
https://www.mcbbs.net/thread-953320-1-1.html
- 13 做一个收购&出售商店菜单
- 思路是如果玩家左键点击这个物品
- 那么需要10点券,如果满足条件(<-)将给予1个钻石
- 如果玩家右键点击这个物品
- 那么需要1个钻石,如果满足条件(<-)将给予9点券
- 图片展示
- 图片加载可能有些慢,谅解
- 菜单配置
- /papi ecloud download Player
- /papi ecloud download PlayerPoints
- menu_title: '&fComplex Studio'
- open_command: shop
- update_interval: 1
- size: 9
- items:
- diamond:
- material: hdb-106
- slot: 0
- display_name: '&b钻石'
- lore:
- - '&a左键 &8| &f花费10*点券,购买1*钻石'
- - '&a右键 &8| &f出手1*钻石,获得10*点券'
- left_click_commands:
- - '[message] 成功购买钻石*1,共花费10*点券'
- - '[console] points take %player_name% 10'
- - '[console] give %player_name% DIAMOND 1'
- left_click_requirement:
- requirements:
- points:
- type: '>='
- input: '%playerpoints_points%'
- output: '10'
- deny_commands:
- - '[close]'
- - '[message] 抱歉,您没有足够多的点券'
- right_click_commands:
- - '[message] 成功出手钻石*1,共获得9*点券'
- - '[console] points give %player_name% 9'
- - '[console] clear %player_name% DIAMOND 0 1'
- right_click_requirement:
- requirements:
- points:
- type: has item
- material: DIAMOND
- amount: 1
- deny_commands:
- - '[close]'
- - '[message] 抱歉,您没有足够多的钻石'