可充能图腾
此数据包添加了“可充能图腾”(reloadable_totem)。
可以通过消耗不死图腾来使用“充能器”为可充能图腾充电。
(最多可为 16 个图腾充电。)
此外,还可以通过消耗 2 点充能来避免虚空死亡。
支持多人游戏。
其他特性
- 此数据包不使用自定义物品的刷怪蛋,因此这些物品不会计入统计/物品统计中。
(它使用的是 book 和 enchanted_book。)
合成配方:
可充能图腾:
充能书:
召唤“充能器”:
- 在讲台侧面放置一个发光物品展示框。
- 将“充能书”放入框中。

为图腾充能:
手持可充能图腾右键点击“充能器”,即可从背包中使用一个不死图腾,使可充能图腾的充能值增加 1。
其他内容:
卸载方法:
卸载此数据包前,请在删除文件之前运行以下命令。
/function rl_totem:uninstall
: 撤销进度、移除计分板和标签
资源包:
此资源包允许您更改物品的材质贴图。
自定义设置:
reload_totem.mcfunction:默认。如果副手为空,则将可充能图腾放置在副手中。
reload_totem.mcfunction.in_mainhand:如果主手为空,则将可充能图腾放置在主手中。
(这些文件位于 data/rl_totem/function/totem/ 目录下。)
- 如果您希望使用此设置,请将文件
reload_totem.mcfunction 重命名为 reload_totem.mcfunction.in_offhand,并将文件 reload_totem.mcfunction.in_mainhand 重命名为 reload_totem.mcfunction。
注意事项:
多人游戏中:
- 在多人游戏中,如果在安装数据包时有任何玩家未登录,之后才加入世界,请在他们首次加入世界时运行
/function rl_totem:load。
(这是为了向玩家添加必要的计分板。)
使用提示:
- 即使在潜行状态下,右键点击充能器仍然有效。例如,在充能器附近放置方块时请小心操作。
- 如果您的副手持有一个充能值为 2 或以上的可充能图腾,且主手持有一个经过 NBT 编辑的不死图腾(例如带有自定义名称的图腾),当您在副手持可充能图腾的情况下掉入虚空时,主手中不死图腾的 NBT 将被重置。
冲突问题:
- 请勿将此数据包与其他具有防止虚空死亡功能的数据包同时安装。
可能会发生冲突。
技术说明:
- 在此数据包中,“虚空死亡保护”逻辑仅在您手持可充能图腾(设置了
custom_data 为 reloadable_totem 的附魔书)时运行。
换句话说,此数据包可能与其他仅在您手持其各自自定义物品时运行“虚空死亡保护”逻辑的数据包兼容。
计分板、标签
- 计分板:
rl_totem.charged,rl_totem.damage,rl_totem.tick_count
- 标签(玩家):
rl_totem.mainhand,rl_totem.offhand,rl_totem.void_crisis,rl_totem.tick_count,rl_totem.rl_totem,rl_totem.totem_of_undying,rl_totem.exception
- 标签:
rl_totem.particle_base
Reloadable Totem
This datapack adds a "reloadable_totem".
The reloadable_totem can be charged using a "charger" by consuming totem_of_undying.
(Up to 16 totems can be charged.)
It is also possible to avoid the void death by consuming 2 charges.
It supports multiplayer.
Other characteristics
- This datapack does not use spawn eggs for custom items, so spawn eggs will not be counted in Statistics/Items.
(It uses book and enchanted_book.)
Recipe:
reloadable totem:
charger book:
Summon "charger":
- Place a glow_item_frame on the side of a lectern.
- Place a "charger_book" inside the frame.

Load totem:
By right-clicking on the "charger" while holding the reloadable_totem, you can use one totem_of_undying from your inventory to increase the reloadable_totem's charge by 1.
Others:
Uninstall:
When uninstalling the datapack, please run this function before removing the files.
/function rl_totem:uninstall
: revoke advancements, remove scoreboards and tags
Resource pack:
This resource pack allows you to change the texture of items.
Customisation:
reload_totem.mcfunction : default. If the offhand is empty, reloadable_totem is placed in the offhand.
reload_totem.mcfunction.in_mainhand : If the mainhand is empty, reloadable_totem is placed in the mainhand.
(The files are located in data/rl_totem/function/totem/.)
- If you want to use this, please rename the file
reload_totem.mcfunction to reload_totem.mcfunction.in_offhand, and rename the file reload_totem.mcfunction.in_mainhand to reload_totem.mcfunction.
Notes:
In multiplayer:
- In multiplayer, if any players were not logged in when the data pack was installed and join the world afterwards, please run
/function rl_totem:load when they first join the world.
(This is to add the necessary scoreboards to the player.)
Usage notes:
- Right-clicking on the charger will still work even while sneaking. Please be careful when placing blocks near a charger, for example.
- If you fall into the void while holding a reloadable_totem with a charged value of 2 or more in your offhand and a totem_of_undying with edited NBT (such as one with a custom name) in your mainhand, the NBT of the totem_of_undying in your mainhand will be reset.
Conflicts:
- Do not install this data pack alongside other data packs that have features to prevent death in the void.
A conflict may occur.
Technically speaking:
- In this datapack, the "void death protection" logic only runs while you are holding a reloadable_totem ( enchanted_book with custom_data set to
reloadable_totem ) .
In other words, this datapack may be compatible with other datapacks whose "void death protection" logic only runs when you are holding their respective custom items.
-
If you fall into the void while holding a reloadable_totem with a charged value of 2 or more in your offhand and an item with death_protection (added by a data pack other than this one) in your mainhand, the reloadable_totem may not function correctly.
-
This datapack uses scoreboards and tags with names beginning with "rl_totem.".
There is a possibility of conflicts with other datapacks that use the same names.
scoreboards, tags
- scoreboards:
rl_totem.charged,rl_totem.damage,rl_totem.tick_count
- tags (player):
rl_totem.mainhand,rl_totem.offhand,rl_totem.void_crisis,rl_totem.tick_count,rl_totem.rl_totem,rl_totem.totem_of_undying,rl_totem.exception
- tags:
rl_totem.particle_base
评论 0
登录后参与评分
还没有评论,来抢沙发吧