whiteyu1314
deluxemenu怎么设置花费多少点券执行某个指令
点券插件用的是playerpoints

劫゜
具体我也不清楚,dm的字母太多了,我都不用,你看看的站内教程https://www.mcbbs.net/thread-953320-1-1.html,我个人是trmenu,功能多,写法简便

二哈大魔王
  1.   'points':
  2.     material: stone
  3.     data: 1
  4.     slot: 2
  5.     display_name: '&f花岗岩'
  6.     lore:
  7.     - '&8* &7Buy for: &f100 &c点券'
  8.     - '&8* &7Sell for: &f25 &a点券'
  9.     left_click_requirement:
  10.       requirements:
  11.         anything_here:
  12.           type: '>='
  13.           input: '%playerpoints_points%'
  14.           output: '100'
  15.       deny_commands:
  16.       - '[message] &4商店 &8> &f你需要 &c100 点券 &f来购买 &c1 x 花岗岩&f.'
  17.     right_click_requirement:
  18.       requirements:
  19.         anything_here:
  20.           type: string equals
  21.           input: '%checkitem_mat:STONE,data:1%'
  22.           output: 'yes'
  23.       deny_commands:
  24.       - '[message] &4商店 &8> &f你没有 &c1 x 花岗岩 &f来出售.'
  25.     left_click_commands:
  26.     - '[console] points take %player_name% 100'
  27.     - '[console] give %player_name% stone:1 1'
  28.     - '[message] &2商店 &8> &f你购买了 &a1 x 花岗岩 &f花费 &a100 点券&f.'
  29.     right_click_commands:
  30.     - '[console] points give %player_name% 25'
  31.     - '[console] clear %player_name% stone:1 1'
  32.     - '[message] &2商店 &8> &f你出售了 &a1 x 花岗岩 &f获得 &a25 点券&f.'
复制代码


不会再追问

Lonely丶独独
本帖最后由 Lonely丶独独 于 2021-2-8 19:38 编辑

[Tutorial][CPS] 还在用CC?手把手教你写一个完美的DeluxeMenus菜单
https://www.mcbbs.net/thread-953320-1-1.html




  1. 13  做一个收购&出售商店菜单

  2. 思路是如果玩家左键点击这个物品
  3. 那么需要10点券,如果满足条件(<-)将给予1个钻石
  4. 如果玩家右键点击这个物品
  5. 那么需要1个钻石,如果满足条件(<-)将给予9点券  

  6. 图片展示



  7. 图片加载可能有些慢,谅解

  8. 菜单配置

  9. /papi ecloud download Player
  10. /papi ecloud download PlayerPoints
  11. menu_title: '&fComplex Studio'
  12. open_command: shop
  13. update_interval: 1
  14. size: 9
  15. items:
  16.   diamond:
  17.     material: hdb-106
  18.     slot: 0
  19.     display_name: '&b钻石'
  20.     lore:
  21.     - '&a左键 &8| &f花费10*点券,购买1*钻石'
  22.     - '&a右键 &8| &f出手1*钻石,获得10*点券'
  23.     left_click_commands:
  24.     - '[message] 成功购买钻石*1,共花费10*点券'
  25.     - '[console] points take %player_name% 10'
  26.     - '[console] give %player_name% DIAMOND 1'
  27.     left_click_requirement:
  28.       requirements:
  29.         points:
  30.           type: '>='
  31.           input: '%playerpoints_points%'
  32.           output: '10'
  33.       deny_commands:
  34.       - '[close]'
  35.       - '[message] 抱歉,您没有足够多的点券'
  36.     right_click_commands:
  37.     - '[message] 成功出手钻石*1,共获得9*点券'
  38.     - '[console] points give %player_name% 9'
  39.     - '[console] clear %player_name% DIAMOND 0 1'
  40.     right_click_requirement:
  41.       requirements:
  42.         points:
  43.           type: has item
  44.           material: DIAMOND
  45.           amount: 1
  46.       deny_commands:
  47.       - '[close]'
  48.       - '[message] 抱歉,您没有足够多的钻石'
复制代码



第一页 上一页 下一页 最后一页