tr版本3.1.16
先判断是否有 [test.测试任务] 权限后再判断是否有 [test1.测试任务1] 权限
如果有[test.测试任务]权限则显示有[test1.测试任务1的物品图标]
如果没有[test.测试任务]权限则显示有[泥土图标]
如果有[test1.测试任务1]权限点击后 向玩家发送 [拥有test1.测试任务1权限]
如果没有[test1.测试任务1]权限点击后 向玩家发送 [未拥有test1.测试任务1权限]
v3能做到这种吗
先判断是否有 [test.测试任务] 权限后再判断是否有 [test1.测试任务1] 权限
如果有[test.测试任务]权限则显示有[test1.测试任务1的物品图标]
如果没有[test.测试任务]权限则显示有[泥土图标]
如果有[test1.测试任务1]权限点击后 向玩家发送 [拥有test1.测试任务1权限]
如果没有[test1.测试任务1]权限点击后 向玩家发送 [未拥有test1.测试任务1权限]
v3能做到这种吗
 本帖最后由 执笔绘君衣 于 2023-2-18 13:34 编辑 
复制代码
-   权限判定:
 
-     display:
 
-       mats: 388
 
-       name: '&a点击打开八荒套装进阶'
 
-     actions:
 
-       all:
 
-         - condition: 'not perm *<span style="background-color: rgb(251, 242, 219);">test.测试任务</span>'
 
-           actions:
 
-             - 'close'
 
-             - 'Title: `&c您未拥有九天权限!`'
 
-           deny:
 
-             - 'close'
 
- - 'op: shopkeeper remote 八荒进阶'
这个好像只能判断一个吧,我想要的是判断两个权限的。。
小奇又来了 发表于 2023-2-18 13:33
这个好像只能判断一个吧,我想要的是判断两个权限的。。
帖子要求可以做到,我想想怎么写吧
- Title:
 
-   - '&7&l[&1权限判定&7&l]'
 
- Layout: 
 
-     - '####`权限判定`####'
 
- Options:
 
-   Default-Layout: 0
 
-   Hide-Player-Inventory: false
 
-   Min-Click-Delay: 200
 
-   Depend-Expansions: []
 
- Events:
 
-   Open:
 
-     - condition: ''  
 
-       actions:
 
-         - 'sound: BLOCK_CHEST_OPEN-1-0'
 
-         - 'reset'
 
-         - 'refresh'
 
- Icons: 
 
-   权限判定:
 
-     refresh: 20
 
-     update: 20
 
-     display:
 
-       mats: 3
 
-       name: '&3test.测试任务检测'
 
-       lore:
 
-         - '没有test.测试任务权限'
 
-     icons:
 
-      - condition: 'perm *test1.测试任务1' #检测是否拥有test1.测试任务1权限,拥有则将图标属性修改至下方设定的属性
 
-        priority: 1
 
-        display:
 
-         mats: 399
 
-         name: '&3test1.测试任务1检测'
 
-         lore:
 
-          - '拥有test1.测试任务1权限'
 
-        actions:
 
-          all:
 
-           - 'tell: 拥有test1.测试任务1权限'
 
-      - condition: 'perm *test.测试任务' #检测是否拥有test.测试任务权限,拥有则将图标属性修改至下方设定的属性
 
-        display:
 
-          mats: 188
 
-          name: 'test.测试任务检测'
 
-          lore:
 
-          - '拥有test.测试任务权限'
 
-        actions:
 
-          all:
 
- - 'tell: 未拥有test1.测试任务1权限'
小奇又来了 发表于 2023-2-18 13:33
这个好像只能判断一个吧,我想要的是判断两个权限的。。
权限判断直接上
all [ perm *'权限' perm * '权限' ]
不就好了吗...
 本帖最后由 LittleSkep 于 2023-2-18 19:05 编辑 
复制代码
如果你要没有 test.测试任务 权限也能执行 test1.测试任务1 权限动作的话用下面这个
复制代码
-   '1':
 
-     update: 20
 
-     display:
 
-       mats: 'dirt'
 
-       name: 'test.测试任务'
 
-       lore:
 
-         - '&c&l没有'
 
-     icons:
 
-     - condition: 'perm *test.测试任务'
 
-       pri: 1
 
-       update: 20
 
-       display:
 
-         mats: 'book'
 
-         name: 'test.测试任务'
 
-         lore:
 
-           - '&a&l有 - 可点击'
 
-       actions:
 
-         all:
 
-         - condition: 'perm *test1.测试任务1'
 
-           actions:
 
-             - 'tell: &a&l拥有test1.测试任务1权限'
 
-             - 'refresh'
 
-           deny:
 
-             - 'tell: &c&l未拥有test1.测试任务1权限'
 
- - 'refresh'
如果你要没有 test.测试任务 权限也能执行 test1.测试任务1 权限动作的话用下面这个
-   '1':
 
-     update: 20
 
-     display:
 
-       mats: 'dirt'
 
-       name: 'test.测试任务'
 
-       lore:
 
-         - '&c&l没有'
 
-     actions:
 
-       all:
 
-       - condition: 'perm *test1.测试任务1'
 
-         actions:
 
-           - 'tell: &a&l拥有test1.测试任务1权限'
 
-           - 'refresh'
 
-         deny:
 
-           - 'tell: &c&l未拥有test1.测试任务1权限'
 
-           - 'refresh'
 
-     icons:
 
-     - condition: 'perm *test.测试任务'
 
-       pri: 1
 
-       update: 20
 
-       display:
 
-         mats: 'book'
 
-         name: 'test.测试任务'
 
-         lore:
 
-           - '&a&l有 - 可点击'
 
-       actions:
 
-         all:
 
-         - condition: 'perm *test1.测试任务1'
 
-           actions:
 
-             - 'tell: &a&l拥有test1.测试任务1权限'
 
-             - 'refresh'
 
-           deny:
 
-             - 'tell: &c&l未拥有test1.测试任务1权限'
 
- - 'refresh'
LittleSkep 发表于 2023-2-18 13:28
如果你要没有 test.测试任务 权限也能执行 test1.测试任务1 权限动作的话用下面这个
...
这个可以执行左右键吗