Universal Graves

Mods
1,477,710 Downloads Last Updated: Oct 31, 2022 Game Version: 1.19.2   +2

Universal Graves

It's a simple, but really customisable grave/death chest mod! You can change how every message, block and hologram looks, how long it will be protected, if should drop items after expiring and alike.

This mod isn't require on client, but adding it allows for usage of more models.

This mod works only on Fabric Mod Loader and compatible!

If you have any questions, you can ask them on my Discord

Also check out my other mods and project, as you might find them useful!

Grave styles

To change grave style you need to modify config, see more info below

  • Default, player_head, recommended for servers
    • Style for vanilla clients: Example image
    • Style for clients with mod: Example image
  • client_model style with client mod and hologramDisplayIfOnClient set to false, recommended for modpacks Example image
  • and few other ones, which you need to configure manually to use

Commands (and permissions):

  • /graves - Main command, shows list of users graves (universal_graves.list, available by default)
  • /graves player <player> - Opens gui with list of players graves (universal_graves.list_others)
  • /graves reload - Reloads configuration and styles (requires universal_graves.reload)

Additionally, by having universal_graves.teleport permission, you can teleport to any grave.

Configuration:

You can find config file in ./config/universal-graves.jsonFormatting uses Simplified Text for which docs you can find here. Additionally, every message type has few own local variables.

{
  "CONFIG_VERSION_DONT_TOUCH_THIS": 2,
  "graveStyle": "player_head",               // Changes how block appears, "player_head" for owner's head, "client_model" for client side model (for modpacks), "preset_head" for head using values below, "chest" for chest, "barrel" for barrel and "custom" for custom
  "allowClientSideStyle": true,              // Enables client side models
  "playerHeadTurnIntoSkulls": true,          // Makes unlocked graves look like skull while using "player_head" style
  "presetHeadLockedTexture": "...",          // Points to locked grave texture ("preset_head"), requires a value field (most sites have it described)
  "presetHeadUnlockedTexture": "...",        // Points to unlocked grave texture ("preset_head"), requires a value field
  "customBlockStateLockedStyles": ["..."],   // Custom visual blockstate for locked graves for style "custom". Limited to 16, uses same formatting as /setblock
  "customBlockStateUnlockedStyles": ["..."], // Custom visual blockstate for unlocked graves for style "custom". Limited to 16, uses same formatting as /setblock
  "isProtected": true,                       // Changes if graves should be protected by default
  "protectionTime": 300,                     // Time for which graves should be protected (is seconds), -1 for infinite
  "breakingTime": 900,                       // Time after which grave will break, -1 to disable breaking
  "breakEmptyGraves": true,                  // If true, empty graves will break automatically
  "xpStorageType": "vanilla",                // Allows to change how much of xp is stored, "none" for nothing/destroying, "vanilla" for vanilla amount, "percent_levels" for percent of levels, "percent_points" for percent of points and "drop" for dropping outside of grave
  "xpPercentTypeValue": 100.0,               // Changes how much percent of xp will be stored, works only with xpStorageType of `percent_...`
  "replaceAnyBlock": true,                   // Allows to replace solid blocks if there is no other spot to place a grave
  "maxPlacementDistance": 8,                 // Maximal distance grave can be created from player's death location. Too big values can cause lag
  "useRealTime": false,                      // Switches to using real time for measuring time instead of ingame one
  "createFromPvP": true,                     // If false, after dying from another players attack grave won't be created
  "createFromVoid": true,                    // If false, graves won't be created if player dies in void
  "createFromCommandDeaths": true,           // If false, graves won't be created if player dies because of kill command
  "createInClaims": true,                    // if false, graves won't be created in claims
  "dropItemsAfterExpiring": true,            // If items should drop breaking from expiration
  "allowAttackersToTakeItems": false,        // Allows attackers to take items from victim's grave
  "shiftClickTakesItems": true,              // Enables quick pickup of graves if clicked while sneaking
  "giveGraveCompass": true,                  // When enabled, player will get a compass pointing to their grave after dying
  "graveTitle": "...",                       // Changes grave title
  "hologram": true,                          // Enables hologram
  "hologramDisplayIfOnClient": true,         // Allows to toggle visibility of hologram for players having client side mod
  "hologramOffset": 1.2,                     // Changes vertical offset of hologram
  "hologramProtectedText": [/*...*/],        // Hologram lines while protected
  "hologramText": [/*...*/],                 // Hologram lines while not protected
  "guiTitle": "...",                         // Gui title of list of player's graves
  "guiProtectedText": [/*...*/],             // Gui text while protected
  "guiText": [/*...*/],                      // Gui text while protected
  "message[Type]": "...",                    // Allows to change message, leave empty ("") to disable it
  "guiProtectedItem": [/*...*/],             // Items used in guis to represent protected graves, they use same syntax as /give
  "guiItem": [/*...*/],                      // Items used in guis to represent graves, they use same syntax as /give
  "[time-type]Text": "...",                  // Text used to represent time symbol
  "worldNameOverrides": {                    // Allows to override name of the world in messages
    "world:id": "WorldName"
    /* and others */
  },
  "blacklistedWorlds": [                     // Allows to block creation of graves with worlds with matching id
    /*...*/
  ],
  "tryDetectionSoulbound": true,             // Toggles automatic detection of soulbound enchantment (it's hit or miss)
  "skippedEnchantments": [                   // Allows to add own enchantments that end up being skipped from adding to grave
    /*...*/
  ]          
}

Comments

Posts Quoted: