玩家Q键可以丢弃物品对吧(可以改)
我想要的效果是玩家不能丢弃任何物品,不要的物品只能通过垃圾桶丢弃,或者跟别人进行交易
应该如何操作
我想要的效果是玩家不能丢弃任何物品,不要的物品只能通过垃圾桶丢弃,或者跟别人进行交易
应该如何操作
一个插件,禁止玩家丢弃物品:https://www.mcbbs.net/thread-708795-1-1.html
禁止世界内玩家丢物品:https://www.mcbbs.net/thread-559498-1-1.html
一个客户端MOD(你可能用不到):https://www.mcmod.cn/class/10140.html
禁止世界内玩家丢物品:https://www.mcbbs.net/thread-559498-1-1.html
一个客户端MOD(你可能用不到):https://www.mcmod.cn/class/10140.html
安装 WorldGuard 输入如下两条命令即可
/rg define 区域名称 -w 世界名称 -g
/rg flag 区域名称 item-drop deny
/rg define 区域名称 -w 世界名称 -g
/rg flag 区域名称 item-drop deny
不如来试试万能的ce吧
[综合][SCT]ConditionalEvents——用ConditionalEvents添加玩法吧
https://www.mcbbs.net/thread-1095707-1-1.html
(出处: Minecraft(我的世界)中文论坛)
复制代码

[综合][SCT]ConditionalEvents——用ConditionalEvents添加玩法吧
https://www.mcbbs.net/thread-1095707-1-1.html
(出处: Minecraft(我的世界)中文论坛)
- nodrop:
- type: item_drop
- conditions:
- - '%player_has_permission_op.op% != yes'
- - '%player_has_permission_drop.allow% != yes'
- actions:
- default:
- - "message: &f[&6系统&f]&c服务器禁止丢弃物品!如果需要請輸入&e/drop"
- - "cancel_event: true"
- drop_command:
- type: player_command
- conditions:
- - '%player_has_permission_op.op% != yes'
- - '%command% startsWith /drop'
- actions:
- default:
- - 'cancel_event: true'
- - "message: &f[&6系统&f]&c丢弃禁止已关闭!你可以在30秒内丢弃物品!"
- - 'console_command: lp user %player% permission settemp drop.allow true 30s'
- 如果你不想让玩家完全丢弃,op除外
- nodrop:
- type: item_drop
- conditions:
- - '%player_has_permission_op.op% != yes'
- actions:
- default:
- - "message: &f[&6系统&f]&c服务器禁止丢弃物品!"
- - "cancel_event: true"
奇ger 发表于 2023-12-4 08:44
不如来试试万能的ce吧
[综合][SCT]ConditionalEvents——用ConditionalEvents添加玩法吧
https://ww ...
判断op有自己独特的方法
%player_is_op%
你用权限判断完全多余了
另外最好不要用startsWith判断命令,你保不准有什么其他命令是/drop开头的