本插件已支持 1.20.2!
ClayGen 是我开发的一个插件,旨在在 mcMMO 移除相关功能后,将砾石转化为黏土。它提供三种不同的模式:
当水流过或绕过砾石时将其转化为黏土(类似 mcMMO 的方式);仅当砾石块下方存在特定方块时才转化(从 0.5 版本起默认为砖块);农场模式:在砾石转化为黏土前设置可配置的延迟时间,就像 Minecraft 中的其他作物一样。
要更改插件的行为,只需编辑首次运行时在 plugins/ClayGen 目录下生成的 claygen.ini 文件即可。
欢迎提供评论、建议以及错误报告。
功能:
- 将砂砾转化为黏土,支持有或无激活剂的情况。
- 可配置选项,仅将一定比例的砂砾转化为黏土。
- 可更改默认的黏土掉落数量。
- 在服务器重启后,保存处于耕作模式下转化为黏土的方块状态。
- 可配置选项:水流流经黏土的时间越长,黏土掉落的黏土球越多。
- 支持多世界(尽管所有世界共享同一配置文件)。
- 可编辑的配置文件。
- 在更新时自动向配置文件添加新设置。
源代码
更新日志:
版本 1.5
- 对代码进行了全面清理。
- 修复了水流边缘的砾石无法转化为黏土的 Bug。
- 修复了砾石转化速度异常过快的 Bug。
- 修复(希望如此)导致主服务器线程锁定的问题。
版本 1.4
- 为 CB 1000 更新了已弃用的钩子(hooks)。
版本 1.3
- 解决了因线程不同步和服务器锁定导致的耕种问题,以及其他诸如 NextTickOutofSync 错误等问题。
版本 1.2
- 修复在使用 WorldEdit 重新生成区域时出现的 StackOverflowError。(应也能修复其他世界重新生成插件的问题。)
版本 1.1
- 修复了区块未加载时砾石无法转化为黏土的问题。(感谢 mtszyk 指出此问题并协助测试修复方案。)
- 添加了在砾石转化为黏土期间保持区块加载的选项。
版本 1.0
- 添加了砾石有概率转化为黏土的功能。(来自 Canary 论坛用户的建议。)
版本 0.9
- 仅适用于 Canary 的模组版本。此版本在 Bukkit 上不存在。为了保持两个服务器模组之间的兼容性,我在 Bukkit 上将版本号提升到了 1.0。
版本 0.8
- 修复了一个 bug:当你只有一个激活器且启用了“随时间增加掉落物”功能时,如果未激活的那个激活器放在黏土旁边,它仍然会积累掉落物。
版本 0.7
- 提升了耕作模式下的运行速度(降低 CPU 负载)。
- 添加了可配置的默认黏土掉落量。
- 添加了“水流流过黏土的时间越长,掉落物越多”的功能。(感谢 DarkLiKally 提出此功能的建议!)
版本 0.6
- 修复了过度保存砾石文件的问题。
- 进行了微小的代码优化/提速。
版本 0.5
- 在耕作模式下,可以选择将所有转化为黏土的砾石块进行保存。(如果你设置了较长的延迟时间并重启服务器,这将非常有用。)
- 在配置文件中添加了相关选项,用于开启或关闭保存功能。
- 修复了耕作模式中的一个 bug:如果相邻的方块变为黏土,某些方块直到下一轮才会更新。
- 移除了耕作模式中残留的调试信息。
- 将默认的激活器方块更改为砖块(BRICK)。请注意,除非你是初次安装该插件或删除配置文件,否则你看不到此更改。
版本 0.4
- 添加了“耕作”模式,在此模式下,砾石会在一个半随机的延迟后转化为黏土。(按请求添加)
- 在配置文件中添加了相关选项,以配置转化为黏土所需的最短和最长耗时。
- 在耕作模式下,将砾石放置在已流动/静止的水旁边也会启动计时器。
版本 0.3
- 添加了配置选项,用于设置何种流体触发砾石转化为黏土(水和/或岩浆)。
- 清理了冗余代码。
版本 0.2
- 使得水/岩浆可以从侧面流过砾石使其转化为黏土,而不仅仅是在其上方。
- 添加了 mcMMO 风格的支持。
- 创建了标准的配置文件。
版本 0.1
This plugin is 1.20.2 ready!
ClayGen is a plugin I made to turn gravel into clay after it was removed from mcMMO. There are three different modes:
Turn gravel into clay whenever water flows over or around it (mcMMO style) Only when a certain block is below the gravel block (the default is Brick as of version 0.5). Farming mode: Sets a configurable delay before the gravel turns into clay. Just like any other crop in Minecraft.
To change the behavior of the plugin just edit the claygen.ini file that it creates on first run under plugins/ClayGen.
Comments, suggestions and bug reports are all welcome.
Features:
- Turns Gravel into clay with or without an activator.
- Configurable option to only change a certain percentage of the gravel into clay.
- Change the default number of clay drops
- Saves the blocks turning into clay in farming mode across server reboots.
- Configurable option to have the clay drop more clay balls the longer water runs over the clay.
- Multi-world support (although all worlds share the same config)
- Editable config file.
- Automatically adds new settings to config file when updating.
Source Code
Changelog:
Version 1.5
- General cleaning up of code.
- Fixed bug where the gravel on the very edge of the water flow would not turn into clay.
- Fixed bug where gravel would turn into clay unusually fast.
- Fixed (hopefully) bug causing main server thread lockup.
Version 1.4
- Updated depreciated hooks for CB 1000.
Version 1.3
- Solved farming issues with threads not being in sync and locking up servers, causing NextTickOutofSync errors, among others.
Version 1.2
- Fixed StackOverflowError when regenerating regions with WorldEdit. (Should fix other world regeneration plugins as well.)
Version 1.1
- Fixed problem with gravel not turning to clay when the chunk wasn't loaded. (Thanks to mtszyk for pointing it out and helping test the fix.)
- Added option to keep chunks loaded when gravel is turning into clay.
Version 1.0
- Added option to have a percentage chance for the gravel to turn into clay. (A suggestion by someone on the canary forum.)
Version 0.9
- A Canary mod only version. This version does not exist on bukkit. I bumped the version number to 1.0 on bukkit to not break compatibility going between the two server mods.
Version 0.8
- Fixed bug where when you only had 1 activator and the more drops over time feature enabled, you could leave the other one that wasn't activated next to the clay and it would still accumulate drops.
Version 0.7
- Speed enhancement (cpu load) for farming mode
- Added configurable default clay drops
- Added the "more drops the longer water runs over the clay" feature. (Thanks to DarkLiKally for suggesting this feature!)
Version 0.6
- Fixed problem where it would save the gravel file excessively.
- Minor code enhancements/speed-ups.
Version 0.5
- Option to save all the gravel blocks turning into clay in farming mode. (Useful if you have a long delay set and you restart the server.)
- Added relevant option in the config file to turn saving on and off.
- Fixed a bug in farming mode where some blocks wouldn't update until the next round if the block next to them changed to clay.
- Removed lingering debug message in farming mode.
- Changed default activator block to BRICK. Please note that you will not see this change unless you are just installing the plugin or delete the config file.
Version 0.4
- Added a "farming" mode, where the gravel only turns into clay after a semi-random delay. (as requested)
- Added relevant options to the config file to configure minimum and maximum time it takes to turn into clay.
- In farming mode, placing gravel next to already running/still water will start the timer as well.
Version 0.3
- Added config options to set what flow triggers the gravel into clay change (water and/or lava)
- Cleaned up redundant code.
Version 0.2
- Made it so that water/lava can flow next to the gravel turning it into clay, not just on top.
- Added mcMMO style.
- Created a proper config file.
Version 0.1
- First release of the plugin.
评论 0
登录后参与评分
还没有评论,来抢沙发吧