sculk-ban
SculkBan。(看似)同类首创之作
简介
如果你和我一样讨厌潜影块(Sculk)的存在,而且既然 Mojang 还没意识到添加这些方块是个多么糟糕的主意,我决定自己动手解决问题。因此我创建了这款数据包,以多种方式禁用潜影块,确保你不再需要与它们打交道,同时仍能获得那些通常会被禁止的进度。
免责声明
我不对因使用此数据包而导致的任何世界、服务器或其他方面的损坏承担责任。在为在乎的世界安装数据包时,请务必进行备份。此外,我的数据包并非旨在用于模组化环境,例如模组服务器(如 Spigot 或 Paper)、其他数据包以及模组;虽然并非专门为此设计,但它确实可以与某些性能优化模组(如 Sodium、Lithium 等)配合使用。
工作原理
它首先会在每个玩家周围 100x100 的区域、所有 Y 轴高度范围内移除任何与潜影块相关的方块(包括潜影块、潜影传感器、潜影催化剂、潜影尖叫者、潜影脉络、校准潜影传感器)。它会每刻(每秒 20 次)进行检查。
它还会清除所有玩家物品栏中与潜影块相关的方块。
如何处理不可能达成的进度
有 3 个进度会因为上述更改而变得通常无法达成:
- Sneak 100
- It Spreads
- How Did We Get Here
为了处理前两个(Sneak 100 和 It Spreads),我只需在玩家首次加入时给予他们这两个进度(会在聊天栏中显示,但除此之外,发生时基本保持静默)。
为了处理 How Did We Get Here,我想保留获取该进度的挑战性,因此我没有免费将其给予玩家,而是添加了一种获取黑暗效果的方法:药水。
制作该药水需要 5 个回声碎片,在合成台上将回声碎片摆放成十字形。
我知道这是解决这个问题的一个糟糕方案,但在 Mojang 允许通过数据包制作酿造配方(或者更好的是自定义命令)之前,这是我目前能做的最好的方案。
关于维护的说明
当新的 Minecraft 版本发布时,我会尝试为新版制作新的数据包版本,但这意味着我的数据包的修订版仅会针对最新版本发布。如果你愿意(并且知道自己在做什么),你可以修改 pack.mcmeta 文件使其在旧版本中工作,但较新的数据包格式更新可能导致其与旧版本不兼容(例如,1.21 更改了一些文件夹名称,因此如果不进行进一步修改,它在先前版本中不兼容且无法工作)。我不会列出不兼容版本的清单,也不会为旧版本制作数据包。
另一个技术细节,以防你想让数据包与此包协同工作
如果你对数据包了解不多,以下内容可能毫无意义
我过滤潜影块的方式是通过一个方块和物品标签:#minecraft:sculk
这意味着如果你在数据包中添加了更多潜影块,你可以添加自己的“潜影”标签,包含新潜影块的方块和物品 ID,这样你的潜影块也会被此数据包移除。我不会验证你的实现是否有效,你需要自行测试你的数据包。
sculk-ban
SculkBan. (seemingly) the first of its kind
Introduction
If your anything like me you hate the existence of sculk blocks and since Mojang hasn't realized what a terrible idea it was to add, I have decided to take matters into my own hands, so that is why I created this data pack that bans sculk (In many ways) to ensure you won't have to deal with it again. And can still get advancements that would normally be made impossible
Disclaimer
I don't take any responsibility for any damage caused to any worlds, servers, or more by this data pack, always make a backup when installing data packs on worlds you care about. Also my pack is not intended to be used in modded environments such as modded servers (Like spigot or paper), other data packs, and mods, while not specifically intended it does work with certain performance mods like Sodium, Lithium, etc.
How it works
It starts by removing any sculk related blocks (Sculk, Sculk sensor, Sculk catalyst, Sculk Shrieker, Sculk Vein, Calibrated Sculk Sensor) within a 100x100 area at all y-levels around every player. It checks every tick (20 times per second).
It also clears all Sculk related blocks from every players inventories
How it accounts for impossible advancements
There are 3 advancements that would normally be made impossible be these changes:
- Sneak 100
- It Spreads
- How Did We Get Here
To account for the first 2 (Sneak 100 and It Spreads) I just have it give the 2 advancements to players when they first join (It shows up in chat but other than that it is mostly silent when it happens)
To account for How Did We Get Here I wanted to keep the challenge of getting it, so instead of giving to players for free I instead added a way to get the darkness effect: a potion.
To make the potion you need 5 echo shards, place the echo shards in a plus shape on a crafting table.
I know this is a terrible solution to the problem but until Mojang allows making brewing recipes (or better yet, custom commands) with data packs this is the best I can do right now
A note about maintaining
When new Minecraft updates come out I will try to make new version of my data pack for the new version, but this means that revisions of my data pack will only be released for the latest version. If you want (and know what you are doing) you can modify the pack.mcmeta file to make it work in older versions but newer updates to data pack format may make it incompatible with older versions (e.g. 1.21 changed a few folder names and therefore it is incompatible and the pack won't work in versions prior without further modification). I won't make any list of incompatible versions nor will I make the pack for older versions
One more technical detail in case you want to make a data pack work with this one
IF YOU DON'T KNOW A LOT ABOUT DATA PACKS THIS WILL MAKE NO SENSE
The way in which I filter for Sculk blocks is though a block and item tag: #minecraft:sculk
That means that if you add more Sculk blocks in your data pack you can add your own "sculk" tag with your new Sculk block and item IDs and and its Sculk blocks will get removed by this one. I won't verify for you if your implementation works, you will have to test your pack
评论 0
登录后参与评分
还没有评论,来抢沙发吧