
在岩浆坑中丢失所有物品是否让你感到过于苛刻?
一般信息
- 可以通过游戏内规则
nicos_graves:spawn_player_graves来开启或关闭墓地的生成。 - 可以通过
nicos_graves:grave_access更改墓地的访问权限。
兼容性
- Trinkets Minecraft >1.17
- YYZ's Backpack Mod >1.2.1.0, Minecraft 1.19.X 或 [1.20, 1.20.4]
已知 Bug
存在一个 Bug,当你从 1.21.9 版本更新到 1.21.10 版本时,世界中的所有墓地都会显示非常长的名称。此 Bug 仅在更新 Minecraft 版本时出现。
开发者/整合包信息
要使物品成为灵魂绑定(即死亡后保留该物品),可以将该物品添加到标签 data/nicos_graves/tags/items/soulbound.json 中。
{
"replace": false,
"values": [
"mod_id:my_cool_item"
]
}
或者,物品类可以实现 SoulboundItem 接口,并重写 isRetained 方法。
package you.your_mod.items;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import nazario.nicosgraves.api.SoulboundItem;
public class MyCoolItem extends Item implements SoulboundItem {
public MyCoolItem(Settings settings) {
super(settings);
}
@Override
public boolean isRetained(ItemStack stack, PlayerEntity player, World world) {
return true;
}
}

Is the chance of losing all your items in a lava pit too punishing for you?
Generel Info
- The graves can be toggled with the gamerule
nicos_graves:spawn_player_graves. - The accessibility of the grave can be changed with
nicos_graves:grave_access
Compatibility
- Trinkets Minecraft >1.17
- YYZ's Backpack Mod >1.2.1.0, Minecraft 1.19.X or [1.20, 1.20.4]
Known Bugs
There is a bug where when you update the mod from 1.21.9 to 1.21.10 all the graves in the world will have a really long named displayed. This bug only occurs if you update the minecraft version.
Developer/Modpack Info
To make an item soulbound, essentially making the item be kept on death, the item can be added to the tag data/nicos_graves/tags/items/soulbound.json.
{
"replace": false,
"values": [
"mod_id:my_cool_item"
]
}
Alternatively the item class can implement the interface SoulboundItem, and override the isRetained method.
package you.your_mod.items;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import nazario.nicosgraves.api.SoulboundItem;
public class MyCoolItem extends Item implements SoulboundItem {
public MyCoolItem(Settings settings) {
super(settings);
}
@Override
public boolean isRetained(ItemStack stack, PlayerEntity player, World world) {
return true;
}
}
下载 Nicos Graves
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Nicos Graves
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Nicos Graves
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Nicos Graves
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Nicos Graves
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Nicos Graves
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Nicos Graves
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Nicos Graves
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Nicos Graves
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Nicos Graves
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 将
nicos_graves:only_owner_access更改为nicos_graves:grave_access,并提供三个选项而非布尔值。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组


评论 0
登录后参与评分
还没有评论,来抢沙发吧