SkeletonToast 的末影珍珠重做
有时,尤其是在生存多人游戏环境中,末影珍珠变得过于强大了。玩家可以用它们瞬间逃离战斗(如果敌人没有防备,这种逃脱往往难以察觉),毫无预兆地出现并发起攻击,甚至利用“静止室”(stasis chambers)覆盖无限距离,从最坚固的监狱中逃脱。末影珍珠重做解决了这些问题,并直接改变了末影珍珠的功能。
安装此数据包后,末影珍珠不再是可投掷的物品;相反,它们被改为消耗品,使用时仅将玩家传送。使用末影珍珠会将玩家向前短距离传送(如果遇到实心方块则会停止移动),并在传送后的一两秒内跟随一道粒子轨迹。这意味着末影珍珠现在只能用于短距离移动,且传送后的玩家更容易被追踪。
因此,由于末影珍珠不再作为可投掷实体存在,“静止室”不再起作用。
这个数据包是为我的服务器设计的,但我相信许多其他服务器也能从中受益。许多大型服务器最近开始完全禁用末影珍珠,而本包旨在提供该选项的低强度原版替代方案。代码仅在珍珠实际被投掷时执行,因此极其轻量。即使内存很低,它对世界/服务器性能也没有任何 noticeable 影响。
此数据包可以随时启用或禁用,无需承担任何风险,也无需重启世界/服务器。每当切换此数据包时,末影珍珠的功能将无缝更改,不会出现任何中断。副作用功能(例如末影珍珠生成末影螨)仍然保留。
可以通过执行以下命令来更改默认传送距离:
scoreboard players set $default ss_epr.teleport_distance <value>
默认情况下,<value> 设置为 40,这大约相当于 20 个方块的距离。此值也可以针对每个玩家单独更改,从而允许与其他数据包兼容/修改,但开发者请注意,每个玩家的设置值会在每个刻(tick)结束时重置。
要按玩家更改值,只需执行以下命令:
scoreboard players set <player> ss_epr.teleport_distance <value>
享受吧!
SkeletonToast's Ender Pearl Rework
Sometimes, especially in survival multiplayer settings, ender pearls end up being a little too useful. Players can use them to instantly escape fights (often undetectably if their enemy isn't prepared), appear and attack without warning, and even use in stasis chambers to cover infinite distances and escape from even the best prisons. Ender Pearl Rework addresses these issues, and directly changes the functionality of ender pearls.
With this pack installed, Ender Pearls are no longer throwable items; instead, they're changed to consumables that simply teleport the player upon use. Using an ender pearl will teleport the player a short distance forward (or stop them if they run into a solid block), and cause a trail of particles to follow them for a couple seconds after teleporting. This means that Ender Pearls can now ONLY be used to cover short distances, and teleporting players can be tracked slightly more easily after teleporting.
As a result of this, ender pearl "stasis chambers" no longer function, because ender pearls no longer exist as throwable entities.
This pack was designed for a server of mine, but I imagine many others could find some use in it. Many larger-scale servers have recently begun disabling ender pearls entirely, and this is meant to be a low-intensity vanilla alternative to that option. Code is basically only executed when a pearl is actually thrown, so it's extremely lightweight. It has no noticeable any impact on world/server performance, even with very low memory.
This datapack can be enabled and disabled at any time without any risk, and without even restarting the world/server. Ender pearl functionality will seamlessly change with no hiccups whenever the datapack is toggled. Side functionality, such as Ender Pearls spawning endermites, still remains.
The default teleport distance can be changed by executing the following command:
scoreboard players set $default ss_epr.teleport_distance <value>
By default, <value> is set to 40, which translates to roughly 20 blocks of distance. This value can also be changed on a per-player basis, allowing for compatibility/modification from other datapacks, but developers be aware, the per-player value resets at the end of each tick.
To change the value per-player, just execute the following command:
scoreboard players set <player> ss_epr.teleport_distance <value>
Enjoy!
评论 0
登录后参与评分
还没有评论,来抢沙发吧