Compatibility
Minecraft: Java Edition
1.21.1
1.20.x
1.19.x
1.18.2
1.17.1
1.16.5
Platforms
Supported environments
Details
Licensed GPL-3.0-or-later
Published last month
Updated last week

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.
Compatibility
- Trinkets Minecraft >1.17
- YYZ's Backpack Mod >1.2.1.0, Minecraft 1.19.X or [1.20, 1.20.4]
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;
}
}





