本帖最后由 莫幽 于 2021-5-31 11:34 编辑
有什么变量可以查询当前玩家是否具备某种药剂效果,最好是能检测到玩家具备的药剂效果的等级格式是%balabala_<药剂效果名>%或是%balabala_<药剂效果名>_<药剂等级名>%
注: 我想拿这个变量做一些菜单的判定条件,如果变量里是必须使用固定的玩家名(%otherplayer_haspotioneffect_<player>_effect_<effect_name>%)那将毫无帮助...不可能为了某一个玩家做一个专门的菜单啊...
有什么变量可以查询当前玩家是否具备某种药剂效果,最好是能检测到玩家具备的药剂效果的等级格式是%balabala_<药剂效果名>%或是%balabala_<药剂效果名>_<药剂等级名>%
注: 我想拿这个变量做一些菜单的判定条件,如果变量里是必须使用固定的玩家名(%otherplayer_haspotioneffect_<player>_effect_<effect_name>%)那将毫无帮助...不可能为了某一个玩家做一个专门的菜单啊...
本帖最后由 redfish 于 2021-5-19 20:12 编辑
非要用插件搞这么复杂的话,推荐一个思路:
1、用命令方块做检测
2、用luckperms的临时权限存储变量
3、用trmenu检测luckperms存储的变量
命令方块不够用的话可以用这个插件ScriptBlockPlus
非要用插件搞这么复杂的话,推荐一个思路:
1、用命令方块做检测
2、用luckperms的临时权限存储变量
3、用trmenu检测luckperms存储的变量
命令方块不够用的话可以用这个插件ScriptBlockPlus
redfish 发表于 2021-5-19 20:09
非要用插件搞这么复杂的话,推荐一个思路:
1、用命令方块做检测
2、用luckperms的临时权限存储变量
没有啥papi提供的变量吗
本帖最后由 redfish 于 2021-5-21 13:24 编辑
我好像找到个扩展可以检测,怎么用你应该会吧复制代码
%otherplayer_haspotioneffect_<player>_effect_<effect_name>%
莫幽 发表于 2021-5-21 10:05
没有啥papi提供的变量吗
我好像找到个扩展可以检测,怎么用你应该会吧
- OtherPlayer
- /papi ecloud download OtherPlayer
- Lets you get placeholders for other players. (Not ** that triggers the action)
- %otherplayer_displayname_<player>%
- %otherplayer_gamemode_<player>%
- %otherplayer_hasperm_<player>_perm_<permission.string>%
- %otherplayer_haspotioneffect_<player>_effect_<effect_name>%
- %otherplayer_health_<player>%
- %otherplayer_hunger_<player>%
- %otherplayer_iteminhand_<player>%
- %otherplayer_ip_<player>%
- %otherplayer_level_<player>%
- %otherplayer_locx_<player>%
- %otherplayer_locy_<player>%
- %otherplayer_locz_<player>%
- %otherplayer_oxygen_<player>%
- %otherplayer_spells_<player>%
- %otherplayer_uuid_<player>%
- %otherplayer_world_<player>%
%otherplayer_haspotioneffect_<player>_effect_<effect_name>%
redfish 发表于 2021-5-21 13:10
我好像找到个扩展可以检测,怎么用你应该会吧
%otherplayer_haspotioneffect__effect_%
%otherplayer_haspotioneffect_<player>_effect_<effect_name>%中的<player>应该怎么使用变量代替