← Назад к ресурсам

Nicos Graves

A grave mod so you don't lose your stuff

Modrinth game-mechanics utility

Описание

![Created for Remnants SMP](https://cdn.modrinth.com/data/cached_images/199461d5e18f8ecddc82a29008a2889edea3ffb7_0.webp) [![Available on Github](https://github.com/intergrav/devins-badges/blob/v3/assets/cozy/available/github_64h.png?raw=true)](https://github.com/Nico44YT/NicosGraves) [![Issue Tracker on GitHub](https://github.com/intergrav/devins-badges/blob/v3/assets/cozy/documentation/issues_64h.png?raw=true)](https://github.com/Nico44YT/NicosGraves/issues) ![Showcase](https://github.com/Nico44YT/NicosGraves/blob/fabric-1.20.X/promo/NicosGraves-Showcase.gif?raw=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](https://modrinth.com/mod/trinkets) Minecraft >1.17 - [YYZ's Backpack](https://modrinth.com/mod/yyzs-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`. ```json { "replace": false, "values": [ "mod_id:my_cool_item" ] } ``` Alternatively the item class can implement the interface `SoulboundItem`, and override the `isRetained` method. ```java 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; } } ```