Spawns 是一款适用于 Bukkit 和 Minecraft 的插件,允许你完全自定义服务器上生物的生成行为。
功能
- 调整默认的 Minecraft 生物生成规则,或将其完全替换
- 设置生物在正常情况下绝不会生成的条件下生成
- 阻止特定生物在任何情况下生成
- 使生成的生物附带药水效果、装备、鞍等物品
- 使生物以不同的变体形式生成,例如通电的苦力怕、凋灵骷髅等
- 生物在世界的出现方式与正常情况相同,因此兼容所有其他插件
点击此处查看如何制作配置文件,或继续阅读以了解 Minecraft 生物生成的概述。
默认生成机制
Minecraft 的生物生成机制如下:
每个生成周期(敌对生物默认为 1 tick,即 1/20 秒)游戏会为每位玩家周围的所有区块生成一个列表,半径最多为七个区块。即使某个区块位于多个玩家周围,也只会计算一次。
列表生成完毕后,会计算一个生物上限。列表中区块越多,上限越高。如果当前世界中某类生物的数量已超过该上限,则本次生成周期将被取消。
如果未达到上限,系统将从列表中的每个区块随机选取一个方块,并将该区块作为一组生物生成的中心点。为了继续生成,对于水生生物(目前仅有鱿鱼),该方块必须是水;对于其他所有类型的生物,该方块必须是空气。
如果该方块符合条件,系统将从距离中心方块最远 20 个方块的范围内(但始终与中心方块处于同一高度)选择最多 12 个随机方块。
最后,系统会检查这些单独的方块是否物理上适合容纳生物,即它们必须是空气,上方必须有空气,下方必须有不透明方块。生物类型根据匹配的条件(生物群系、高度、地面方块类型等)进行选择,最终生物从所有符合生成条件的生物中随机选出。同一组中的所有其他生物都将是相同的类型。
权限
spawns.can-reload-config:允许用户重新加载配置文件。默认为 OP(管理员)。
spawns.can-count-mobs:允许用户显示世界中生物数量的摘要。默认为 OP。
命令
/reload-spawns 或 /rs:无需重启服务器即可重新加载配置文件。世界中已经存在的任何生物都不会受到配置更改的影响。
/count-mobs 或 /cm:显示世界中生物数量的列表。添加世界名称参数以指定世界(如果是玩家运行则为可选),以及/或生物类型参数以选择要计数的特定生物类型。
更新检查
如果你喜欢,可以设置插件以检查是否有新版本发布。为此,请在 config.xml 文件中添加以下元素:
<check-for-newer-version/>
当此元素存在时,如果发现新版本,插件将会报告。这仅适用于正式版本,因此你不会受到测试版或开发版的打扰。要禁用此检查,只需删除该元素即可。
请注意,即使设置了此项,也不会下载任何更新。
示例
我非常欢迎你将你创建的示例配置文件/包/生物文件提交给我,以便添加到文档中。如果你有一个引以为傲的配置,请发送给我,我会将其加入其中。
spawns 的开发付出了大量心血,如果你的服务器因它而受益,请考虑给予一些支持!
<a href=" special instructions to the addon author(s)&business=apodlesna@gmail.com&bn=PP-DonationsBF:btndonateCCLG.gif%3ANonHosted&cancelreturn=http%3A%2F%2Fdev.bukkit.org%2Fserver-mods%2Fmobs%2F&lc=US&itemname=spawns+%28from+Bukkit.org%29&cmd=donations&rm=1&noshipping=1¤cycode=USD"><img class="aligncenter" alt="donate" src="US/i/btn/btndonateLG.gif" /></a>
如果你身无分文,或者喜欢 spawns 但程度没那么深,我也接受 TF2 的物品。把你不再需要的任何物品寄给我吧!STEAM ID: coldntired
如果你不知道什么是 TF2,那就开始玩吧!它是免费且有趣的!
有关其他项目、链接、帮助等,请访问主网站。
你也可以在 Twitter 上关注 sylian.eu 以获取更新。
Spawns is a plugin for Bukkit and Minecraft that allows you to fully customize the spawning behaviour of mobs on your server.
Features
- tweak the default Minecraft spawns or replace them completely
- set mobs to spawn under conditions they never normally would
- block certain mobs from ever spawning
- cause mobs to spawn with potion effects, equipment, saddles, etc.
- cause mobs to spawn in different variants, like powered creeper, wither skeleton, etc.
- mobs appear in the world in the same way as they do normally, so are compatible with all other plugins
Dive right in here to see how to make config files or keep reading for an overview of Minecraft spawning.
Default spawning
Minecraft spawning works like this:
Every spawn cycle (1 tick or 1/20 second by default for hostile mobs) the game makes a list of all the chunks around each player, up to a radius of seven chunks. Each chunk will only be counted once, even if that chunk is around several players.
Once this list is complete a mob limit is calculated. The limit is higher the more chunks are in the list. If the limit is lower than the current amount of a mob type in the world then the cycle will be cancelled.
If the limit is not yet reached a random block from each chunk in the list will be calculated and this chunk will be used as the centre point for a pack of mobs to spawn around. In order to continue, this block must be water for water mobs (only squid so far) and air for any other type of mob.
If this block is suitable then a maximum of 12 random blocks are chosen from up to 20 blocks away, but always at the same height as the centre block.
Lastly, The individual blocks are checked that they can physically fit the mob, so they need to be air, have air above and an opaque block below. The type of mob is chosen based upon the matching conditions (biome, height, floor block type, etc.) and the final mob is chosen randomly from all mobs that are eligible to spawn there. All other mobs in the pack will be the same type.
Permissions
spawns.can-reload-config, which allows the user to reload the config. Default is Op.
spawns.can-count-mobs, which allows the user to display a summary of mob amounts in a world. Default is Op.
Commands
/reload-spawns, or /rs, which reloads the config without having to reload the server. Any mobs already in the world will be unaffected by any changes in the config.
/count-mobs, or /cm, which displays a list of mob numbers in the world. Add a world name argument to specify a world (optional if run as a player) and / or a mob type argument to choose one type of mob to count.
Update checking
If you like, you can set the plugin to check for any newer versions that get released. To do this add an element to the config.xml file, like this:
<check-for-newer-version/>
When this element is present the plugin will report if it finds a newer version. This only works for release builds so you won't be bothered by any beta or dev builds. To disable this checking simply remove the element.
Note that no update will be downloaded even with this set.
Examples
I would love to get any example config/packs/mobs files you have created to add to the docs, so if you have one you're proud of send it in and I'll add it.
spawns took a lot of work, so if your server is enriched by it please consider sending some love my way!
<a href=" special instructions to the addon author(s)&business=apodlesna@gmail.com&bn=PP-DonationsBF:btndonateCCLG.gif%3ANonHosted&cancelreturn=http%3A%2F%2Fdev.bukkit.org%2Fserver-mods%2Fmobs%2F&lc=US&itemname=spawns+%28from+Bukkit.org%29&cmd=donations&rm=1&noshipping=1¤cycode=USD"><img class="aligncenter" alt="donate" src="US/i/btn/btndonateLG.gif" /></a>
If you're penniless or like spawns but not that much I'm also partial to TF2 items. Send any you don't want my way! STEAM id: coldntired
If you don't know what TF2 is, then start playing! It's free and fun!
For other projects, links, help, etc. please visit the main website.
You can also follow sylian.eu on Twitter for updates.
评论 0
登录后参与评分
还没有评论,来抢沙发吧