海绵大改
Sponges Overhaul 为 Minecraft 添加了七种新的海绵类型,每种都设计用于吸收不同的物质。无论是面对熔岩湖、怪物入侵还是滞留药水云团,总有一种海绵能派上用场。
入门指南
本模组中的所有海绵均替换原版海绵——只需将原版海绵放入合成台即可将其转换为模组的基础吸水海绵。此后,其他所有类型的海绵均需通过将海绵与 4 个对应的匹配材料以十字形图案围绕来合成。湿海绵会像往常一样在熔炉中烘干。请注意,只有在合理的情况下(即水、雪和钻石)——海绵在被放置在下界时才会自动变干。
海绵种类
海绵 —— 经典款,现已重做。在其周围半径内吸收水和海底植物。
熔岩海绵 —— 使用熔岩桶合成。功能类似于吸水海绵,但针对熔岩。非常适合下界使用。
火焰海绵 —— 使用火球合成。在一个球形区域内吸收火焰方块。如果它吸收了灵魂之火,则湿润版本会呈现蓝色外观作为小的视觉奖励。
药水海绵 —— 使用下界疣合成。吸收地面上的滞留药水云团。在女巫战斗后清理战场非常实用。
不死海绵 —— 使用骨块合成。吸收附近的不死生物并将其储存在内部。湿润版本会随着时间推移逐个缓慢释放它们——请小心处理,或者将其熔炼以取回你的干海绵。
积雪海绵 —— 使用雪块合成。在一个区域内吸收雪和细雪。非常适合清除冬季景观。
钻石海绵 —— 围绕吸水海绵使用钻石合成。像普通海绵一样吸收水,但范围和容量大幅增加。当排空海洋纪念碑时,这笔投资是值得的。
2×2×2 立方体
每种海绵类型都有一个隐藏的升级机制:如果你将 8 个相同类型的海绵放置在一个 2×2×2 的立方体中,它们将链接在一起,作为一个超级增强单元运作,其作用范围为原来的 4 倍,吸收容量为原来的 8 倍。非常适合大规模排水或清除巨大的火源。
开发者 API
CustomSponges 接受流体类、方块类或方块标签作为目标。以下是一个快速示例:
Block PETROL_SPONGE = new CustomSponges(
SpongeBlocks.spongeProperties.setId(
ResourceKey.create(Registries.BLOCK,
Identifier.fromNamespaceAndPath("yourmodid", "petrol_sponge"))
),
PetrolFluid.class,
WET_PETROL_SPONGE
);
SpongeBlocks.spongeBlocks.add(PETROL_SPONGE);
有关完整的 API 文档和更多详细信息,请参阅 GitHub 上的 API.md。
作者的话
你好!如果你有新的海绵类型想法,欢迎在评论中提出建议——我很乐意添加它并为你署名致谢。始终欢迎提交错误报告和反馈。
如果你读到了这里,我在此表示感谢!
Sponges Overhaul
Sponges Overhaul adds seven new sponge types to Minecraft, each designed to absorb something different. Whether you're dealing with lava lakes, mob invasions, or a cloud of lingering potions, there's a sponge for that.
Getting started
All sponges in this mod replace the vanilla sponge — just drop a vanilla sponge in your crafting table to convert it into the mod's base water sponge. From there, every other type is crafted by surrounding a sponge with 4 of its matching ingredient in a cross pattern. Wet sponges dry out in a furnace as usual. Note that only sponges where it makes sense — water, snow, and diamond — will dry out automatically when placed in the Nether.
The Sponges
Sponge — The classic, now reworked. Absorbs water and underwater plants in a radius around it.
Lava Sponge — Crafted with lava buckets. Works like the water sponge, but for lava. Great for the Nether.
Fire Sponge — Crafted with fire charges. Absorbs fire blocks in a spherical area. If it soaks up soul fire instead, the wet version takes on a blue appearance as a small visual bonus.
Potion Sponge — Crafted with nether wart. Absorbs lingering potion clouds on the ground. Handy for cleaning up after a witch fight.
Undead Sponge — Crafted with bone blocks. Absorbs nearby undead mobs and stores them inside. The wet version slowly releases them back one by one over time — handle it carefully, or smelt it to get your dry sponge back.
Snow Sponge — Crafted with snow blocks. Absorbs snow and powder snow in an area. Perfect for clearing out winter landscapes.
Diamond Sponge — Crafted with diamonds around a water sponge. Absorbs water just like the regular one, but with a dramatically larger range and capacity. Worth the investment when draining an ocean monument.
The 2×2×2 Cube
Every sponge type has a hidden upgrade mechanic: if you place 8 of the same type in a 2×2×2 cube, they link together and act as one supercharged unit with 4× the range and 8× the absorption capacity. Great for large-scale drainage or clearing out massive fires.
Developer API
CustomSponges accepts a fluid class, a block class, or a block tag as the target. Here's a quick example:
Block PETROL_SPONGE = new CustomSponges(
SpongeBlocks.spongeProperties.setId(
ResourceKey.create(Registries.BLOCK,
Identifier.fromNamespaceAndPath("yourmodid", "petrol_sponge"))
),
PetrolFluid.class,
WET_PETROL_SPONGE
);
SpongeBlocks.spongeBlocks.add(PETROL_SPONGE);
For the full API documentation and more details, see API.md on GitHub.
A note from the author
Hi! If you have an idea for a new sponge type, feel free to suggest it in the comments — I'd be happy to add it and credit you for the idea. Bug reports and feedback are always appreciated.
If you've read this far, you have my gratitude!
评论 0
登录后参与评分
还没有评论,来抢沙发吧