Pack: Graves - teakivy/teaks-tweaks GitHub Wiki
When a player dies, a grave is made at their location containing all their items and xp.
Right-click the grave to drop the items contained within. Crouch to make it so only you can pick them up.
Get a grave key to unlock any grave: /grave key
Locate your last grave (if locatable is enabled): /grave locate
NOTE: If you are using EssentialsX back command, you must have register-back-in-listener
set to true in the Essentials config.yml
file.
The config for this pack can be found in the config.yml
file for the plugin.
# Graves
# When a player dies, a grave is made at their location containing all their items. Right-click the grave to receive your items,
# and crouch to make it so only you can pick them up.
# Get a grave key to unlock any grave: `/grave key`
# Locate your last grave (if locatable is on): `/grave locate` or `/grave`
# NOTE: If you are using EssentialsX back command, you must have `register-back-in-listener` set to true in the Essentials config.yml
#
# Commands:
# /grave (Permission: teakstweaks.command.grave)
# /grave key (Permission: teakstweaks.command.grave.key)
# /grave locate (Permission: teakstweaks.command.grave.locate)
# /grave uninstall (Permission: teakstweaks.command.grave.uninstall)
graves:
enabled: false
# Whether or not graves hold the players xp
hold-xp: true
# Whether or not to hold all xp or just the xp dropped on death
keep-all-xp: false
# Whether or not it sends a message to the player telling the location of their grave
locatable: true
# Whether or not all players can take from a players grave
allow-robbing: false
# Whether or not to allow graves to be placed above the void
allow-void-graves: true
# Whether or not to allow graves to be generated when a player's inventory is empty
allow-empty-graves: true
# Whether or not to generate a grave when a player dies in creative mode
creative-graves: true
# Whether or not creative players will drop their items on death
# If allow-empty-graves is false, and this is false, creative players will not generate graves
creative-drops: true
# Whether or not to allow graves to generate when a player dies in lava
generate-in-lava: true
# Whether or not an info blob is sent to the console when a grave is created
# Includes the grave location, the player who died, and the items in the grave
console-info: false
# The minimum xp level a player must reach before a grave can be generated
# If set to 0, graves will always generate
# Example: If level-threshold is 5, and a player dies with 4 levels, the player will drop their items normally
# If level-threshold is 5, and a player dies with 5+ levels, the player will generate a grave
level-threshold: 0
- Type -
boolean
- Default -
false
- Description - Controls whether the pack is enabled.
- Type -
boolean
- Default -
true
- Description - Controls whether graves contain the player's experience.
- Type -
boolean
- Default -
false
- Description - Controls whether the grave will contain all of the player's experience at time of death, or just the amount dropped (7 × experience points, up to a maximum of 100 points).
- Type -
boolean
- Default -
true
- Description - Controls whether a message will be sent to the player upon death with their death coordinates. The player can also use
/grave locate
.
- Type -
boolean
- Default -
false
- Description - Controls whether all players can take from a players grave, or just the grave owner
- Type -
boolean
- Default -
true
- Description - Controls whether a grave can be generated when the player dies in the void. If enabled, a grave is placed on a grass block at the bottom of the world.
- Type -
boolean
- Default -
false
- Description - Controls whether a grave will be generated when the player's inventory is empty.
- Type -
boolean
- Default -
true
- Description - Controls whether graves will be generated when the player dies in creative mode.
- Type -
boolean
- Default -
true
- Description - When false, and
creative-graves
, andallow-empty-graves
is false, players in creative mode will not drop items, or generate a grave upon death.
- Type -
boolean
- Default -
true
- Description - Controls whether players will generate a grave when they die inside lava.
- Type -
boolean
- Default -
false
- Description - Controls whether an info blob is sent to the console when a grave is created. Includes the grave location, the player who died, and the items in the grave.
- Type -
int
- Default -
0
- Description - Sets the minimum xp level a player must reach before a grave can be generated. If set to 0, graves will always generate.
-
Example: If
level-threshold
is set to5
, and a player dies with4
levels, the player will drop their items normally. If level-threshold is set to5
, and a player dies with> 5
levels, the player will generate a grave.
-
Example: If
teakstweaks.command.grave
- Default -
true
- Description - Controls whether the player can use the
/grave
command.
teakstweaks.command.grave.locate
- Default -
true
- Description - Controls whether the player can use the
/grave locate
command.
teakstweaks.command.grave.key
- Default -
op
- Description - Controls whether the player can use the
/grave key
command.
teakstweaks.command.grave.uninstall
- Default -
op
- Description - Controls whether the player can use the
/grave uninstall
command.
"graves.name": "Graves",
"graves.description": "When a player dies, a grave is made at their location containing all their items. Right-click the grave to receive your items, and crouch to make it so only you can pick them up.<newline>Get a grave key to unlock any grave: '/grave key'<newline>Locate your last grave (if locatable is enabled): '/grave locate'",
"graves.cant_rob_grave": "<red>You are not allowed to rob graves!",
"graves.last_grave": "<yellow>Your last grave was at XYZ: <gold><x> <y> <z></gold> in <gold>World: <world>",
"graves.key.item_name": "<gold>Grave Key",
"graves.key.item_lore": "Right-click any grave with this key to open it.",
"graves.log.created": "Created a grave for <player> at XYZ: <x> <y> <z> in World: <world>",
"graves.log.contains": "Contains <gold><item_count></gold> items and <gold><xp_count></gold> XP.",
"graves.log.item": "- <gold><item> <white>x <gold><amount>",
graves.name
- Default -
Graves
graves.description
- Default -
When a player dies, a grave is made at their location containing all their items. Right-click the grave to receive your items, and crouch to make it so only you can pick them up.<newline>Get a grave key to unlock any grave: '/grave key'<newline>Locate your last grave (if locatable is enabled): '/grave locate'
graves.cant_rob_grave
- Default -
<red>You are not allowed to rob graves!
graves.last_grave
- Default -
<yellow>Your last grave was at XYZ: <gold><x> <y> <z></gold> in <gold>World: <world>
- Placeholders
-
x
- The X coordinate of the grave. -
y
- The Y coordinate of the grave. -
z
- The Z coordinate of the grave. -
world
- The world name of which the grave was created in.
-
graves.key.item_name
- Default -
<gold>Grave Key
graves.key.item_lore
- Default -
Right-click any grave with this key to open it.
graves.log.created
- Default -
Created a grave for <player> at XYZ: <x> <y> <z> in World: <world>
- Placeholders
-
player
- The grave's owner. -
x
- The X coordinate of the grave. -
y
- The Y coordinate of the grave. -
z
- The Z coordinate of the grave. -
world
- The world name of which the grave was created in.
-
graves.log.contains
- Default -
Contains <gold><item_count></gold> items and <gold><xp_count></gold> XP.
- Placeholders
-
item_count
- The total amount of items contained within the grave. -
xp_count
- The total amount of experience points contained within the grave.
-
graves.log.item
- Default -
- <gold><item> <white>x <gold><amount>
- Placeholders
-
item
- The item in the list. -
amount
- The amount of the item contained within the grave.
-