Kalem的
DropSwap
Kalem's DropSwap 插件是一个 Bukkit 服务器模组,它会监控生物死亡和方块破坏,查看掉落物,然后交换物品及其数量。
____
已适配 Bukkit 1.5.1 R0.1
已在 Bukkit-1.5.2-R0.1 (Build #02754) 上测试并正常运行
____
功能:
- 选择要监控的生物/方块
- 指定要监控的掉落物
- 替换现有掉落物(让蜘蛛掉落线网而不是棉线!)。
- 添加新掉落物(让僵尸再次掉落羽毛!)。
- 移除掉落物(不再掉落腐肉!)。
- 为额外/替换掉落物的最小和最大数量设定范围。
- 设置添加/替换/移除尝试成功的概率。
____
设置简单:
将 dropswap.jar 放入服务器的插件文件夹后,重启服务器以生成默认的 config.yml 文件。默认情况下,DropSwap 会在 50% 的概率下给僵尸掉落物添加羽毛,并将蜘蛛的棉线掉落物替换为线网掉落物。
要修改 DropSwap,只需使用以下选项编辑 plugins/DropSwap 文件夹中的 config.yml 文件:
日志设置
- INFO - 在控制台显示所有信息
- SEVERE - 仅记录错误(默认)
[必须大写]
权限设置
权限:已移除!因为会导致太多复杂问题,且阻碍我保持插件更新。
DropSwap 设置
- 实体|材料:子类型, 动作: <掉落物品>:子类型, <替换物品>:子类型, <概率>, <最小值>, <最大值>
- ENTITY(实体):要修改的怪物/生物/动物的字符串名称(必填)
(对 ENTITY 使用 ALL 以包含所有生物,包括家畜、宠物等)
注意:ENTITY 必须是生物的字符串名称
(对 MATERIAL 使用 ANY(无子类型)以包含任何方块,包括树叶、草、花朵等)
注意:MATERIAL 可以是方块的字符串名称或整数 ID
- SUB(子类型):由冒号(:)与方块分隔,SUB-ID 允许选择子类型(可选 - 仅限整数)
- ACTION(动作):从 additem(添加物品)|swapitem(替换物品)|removeitem(移除物品)中选择(必填)
- DROP ITEM(掉落物品):实体原本掉落的物品(swapitem|removeitem 时必填)
- SWAP ITEM(替换物品):用于替换原物品的物品(additem|swapitem 时必填)
- CHANCE(概率):浮点数(需带小数点),表示添加/替换/移除发生的概率(如果使用 max 或 min/max 则必填)
- MIN(最小值):允许替换物品的最小数量(如果使用,必须排在最大值之前,未使用时默认为 1)
- MAX(最大值):允许替换物品的最大数量(如果使用 min 则必填,可以与 min 相等)
____
Config.yml 示例
dropswap:
- ALL, additem, GOLD_NUGGET, .10
- SPIDER, swapitem, STRING, WEB, 1.0, 1
- ZOMBIE, additem, FEATHER, .50
- ZOMBIE, removeitem, ROTTEN_FLESH, 1.0
- SQUID, additem, RAW_FISH, 0.8
- GLASS, additem, GLASS, 1.0
- LOG:2, swapitem, 17:2, 17:3, 0.5
____
未来计划:
- 欢迎提供建议
____
期待您的反馈
感谢您的友善且有建设性的反馈。工单将在我有空时尽快回复。尚未测试与其他插件的兼容性。
____
祝好,
- Kalem
Kalem's
DropSwap
Kalem's DropSwap plugin is a Bukkit server mod that monitors creature deaths and block breaking, looks at the drops, then swaps items and quantity.
____
Updated for Bukkit 1.5.1 R0.1
Tested and working with Bukkit-1.5.2-R0.1 (Build #02754)
____
Features:
- Select creatures/blocks to monitor
- Specify drops to monitor
- Swap existing drops (Have spiders drop web instead of string!).
- Add new drops (Have zombies drop feathers again!).
- Remove drops (No more rotten flesh!).
- Give a range for the minimum and maximum number of additional/swapped items to drop.
- Set the chance for an add/swap/remove attempt to be successful.
____
Simple to set up:
After putting dropswap.jar in you server's plug-in folder, reload your server to create the default config.yml file. By default, DropSwap will add feathers to Zombie drops 50% of the time, and will turn Spider drops of string into Spider drops of web.
To modify DropSwap, just edit the config.yml file in the plugins/DropSwap folder using the following options:
LOGGING SETTINGS
- INFO - Show all information to the console
- SEVERE - Reduce logging to only errors (default)
[Must be upper case]
PERMISSION SETTINGS
PERMISSIONS: REMOVED! Causing too many complications and kept me from keeping plug-in up to date.
DROPSWAP SETTINGS
- ENTITY|MATERIAL:SUB, ACTION: <DROP ITEM>:SUB, <SWAP ITEM>:SUB, <CHANCE>, <MIN>, <MAX>
- ENTITY: the string name of the monster/creature/animal to modify (required)
(use ALL for ENTITY to include all creatures including farm animals, pets, etc)
NOTE: ENTITY must be the string name of the creature
(use ANY(no sub-type) for MATERIAL to include any block including leaves, grass, flowers)
NOTE: MATERIAL can be the string name or the integer ID of the block
- SUB: Separated from the blocks by a COLON(:), the SUB-ID allows selection of sub-types (optional - integer only)
- ACTION: choose from additem|swapitem|removeitem (required)
- DROP ITEM: original item that entity drops (required for swapitem|removeitem)
- SWAP ITEM: item that is swapped for original item (required for additem|swapitem)
- CHANCE: a floating number (decimal required) for chance that add/swap/remove will occur (required if using max or min/max)
- MIN: the minimum number of swap items to allow (must come before max if used, 1 is min if not used)
- MAX: the maximum number of swap items to allow (required if min is used, can be equal to min)
____
Config.yml Example
dropswap:
- ALL, additem, GOLD_NUGGET, .10
- SPIDER, swapitem, STRING, WEB, 1.0, 1
- ZOMBIE, additem, FEATHER, .50
- ZOMBIE, removeitem, ROTTEN_FLESH, 1.0
- SQUID, additem, RAW_FISH, 0.8
- GLASS, additem, GLASS, 1.0
- LOG:2, swapitem, 17:2, 17:3, 0.5
____
Future:
- Suggestions welcome
____
I'd love to hear from you
Kind and constructive feedback is appreciated. Tickets will be responded to as soon as I can. No plug-in compatibility has been tested.
____
Cheers,
- Kalem
下载 DropSwap
下载 DropSwap
下载 DropSwap
下载 DropSwap
下载 DropSwap
下载 DropSwap
下载 DropSwap
下载 DropSwap
下载 DropSwap
下载 DropSwap
__ 20130327@1300
修复: - 交换功能正常 - 移除功能正常
功能变更: - 移除了权限系统
__ 20120811@0750
修复:
再次修复了 additem,防止原版物品掉落重复。
__ 20120811@0750
修复:
修复了 additem
修复了在未找到交换或移除规则时保留原版掉落的问题
__ 20120811@0750
已适配 CB 1.4.2-R0.3。
为材料添加了子 ID。
__ 20120811@0750
添加了对禁止建造区域的检查,以防止在玩家破坏方块时 DropSwap 掉落“添加”的物品。
__ 20120811@0750
基于 Bukkit 1.3.1 r1.0 构建 本次更新不包含其他修复或新功能
__ 20120507@1945
优化了方块处理逻辑,消除意外产生的额外掉落。
__ 20120506@1205
修复了生物掉落处理,使其能在玩家事件中正常工作。
__ 20120506@1205
修复了生物掉落处理,确保在非玩家事件触发时仍能正常工作。 从 config.yml 中移除了爆炸相关的引用,因为目前尚不支持该功能。
__ 20120505@1130
添加了方块破坏支持(暂不支持爆炸)。 添加了权限支持(仅在 PermissionBukkit 上测试过)。 升级为“正式版”。
__
20120420@1900
重写了 config.yml 文件及其解析逻辑,以移除默认键值。
需要替换 DropSwap 的任何先前版本的 config.yml 文件
不再使用实体和操作作为键值。
__
20120417@2155
修复了 config.yml 中的错误(行内存在制表符)
__
20120417@2120
首次发布 - 测试版
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧