Skip to content
This repository was archived by the owner on Aug 9, 2026. It is now read-only.

Command

JackFred2 edited this page Mar 5, 2024 · 9 revisions

Lenient Death's command allows you to:

  • Configure the mod in-game,
  • If enabled, allows players to change their own per-player settings,
  • Run various utilities to help configure the mod.

Config Options

$.command.commandNames

A list of names to use for Lenient Death's command. This can be useful if it conflicts with another mod / plugin. To disable the command completely, use an empty list ([]). Requires a world reload (on a singleplayer world), or a server restart (on a dedicated server) to take effect.

  • Options: A list of single-world strings.
  • Default: ["lenientdeath", "ld"].
  • Commands:
    • /ld config command commandNames - list all current command names
    • /ld config command commandNames add <commandName> - add a command name for Lenient Death's command, to be applied on world reload.
    • /ld config command commandNames remove <commandName> - remove a command name from Lenient Death's command, to be applied on world reload.

Base Command

Does not require any special permissions, though will not be sent if a player cannot use any subcommands.

  • /lenientdeath
  • /ld (alias)

Per-Player Subcommand

Allows a player to view and edit their own or others' Per-Player settings, if enabled on the server. For more information, see Per-Player.

  • /lenientdeath perPlayer <subcommand>

Check Self

Allows a player to check their own Per-Player status.

  • /lenientdeath perPlayer check - Check your own Per-Player status.

Examples

  • /ld perPlayer check

Requirements

Requires Per-Player mode to be enabled for items and/or experience.

If the player has the ability to check others' status or change their own status, then they are implicitly allowed to use this command.

  • Permissions Key: lenientdeath.command.per_player.check_self
  • Otherwise: Always Available

Check Others

Allows a player to check another person's Per-Player status.

  • /lenientdeath perPlayer check <player> - Check another player's Per-Player status.

Examples

  • /lenientdeath perPlayer check jeb_
  • /ld perPlayer check Dinnerbone

Requirements

Requires Per-Player mode to be enabled for items and/or experience.

If the player has the ability to change others' status, then they are implicitly allowed to use this command.

  • Permissions Key: lenientdeath.command.per_player.check_others
  • Otherwise: Operator (permission level >= 4).

Change Self

Allows a player to change their own Per-Player status.

  • /lenientdeath perPlayer <enable|disable> - Enable or disable your own Per-Player status.

Examples

  • /lenientdeath perPlayer disable
  • /ld perPlayer enable

Requirements

Requires Per-Player mode to be enabled for items and/or experience.

If the player has the ability to change others' status, then they are implicitly allowed to use this command.

  • Permissions Key: lenientdeath.command.per_player.change_self
  • Otherwise: $.perPlayer.playersCanChangeTheirOwnSetting is true in the config.

Change Others

Allows a player to change another person's Per-Player status.

  • /lenientdeath perPlayer <enable|disable> <player> - Change another player's Per-Player status.

Examples

  • /lenientdeath perPlayer enable jeb_
  • /ld perPlayer disable Dinnerbone

Requirements

Requires Per-Player mode to be enabled for items and/or experience.

  • Permissions Key: lenientdeath.command.per_player.change_others
  • Otherwise: Operator (permission level >= 4).

Config Subcommand

Allows a player to edit Lenient Death's config. For more details on configuring a specific feature with the command, see it's respective page. For more information on the available presets, see the overview

  • /lenientdeath config <..config command>.
  • /lenientdeath config presets <preset name>.

Examples

  • /lenientdeath config perPlayer playersCanChangeTheirOwnSetting
  • /ld config extendedDeathItemLifetime enabled true
  • /ld config presets generous

Requirements

  • Permissions Key: lenientdeath.command.config
  • Otherwise: Operator (permission level >= 4)

Restore Inventory Subcommand

Version: 1.2.0+

Lenient Death saves player's inventories at time of death, and allows admins to restore them. For more information, see Restore Inventory.

Requirements

  • Permissions Key: lenientdeath.command.restore_nventory
  • Otherwise: Operator (permission level >= 4)

Listing Deaths

/ld deaths list - List the running user's past deaths.

/ld deaths list <player> - List the given user's past deaths.

Restoring

By default, restoring an inventory will replace the player's current experience with the saved amount.

/ld deaths restore <player> <deathIndex> - Give the given player a copy of the inventory from that death. This version drops any items that do not fit in their inventory.

/ld deaths restore <player> <deathIndex> replace - Replace the given player's inventory with the copy from the given death. This deletes any items currently in the player's inventory.

Utilities

A collection of utilities you may find useful for configuring the rest of the mod.

  • /lenientdeath utilities <utility>

Item Safety Tester

Allows you to check if a given item would pass Lenient Death's preservation checks based on the current configuration.

  • /lenientdeath utilities test - Test if the item in your main hand would pass Lenient Death's preservation check.
  • /lenientdeath utilities test <itemstack> - Test if the specified item would pass Lenient Death's preservation check.

Examples

  • /lenientdeath utilities test
  • /ld utilities test diamond_sword{Soulbound: 1b}

Requirements

  • Permissions Key: lenientdeath.command.utility.safe_check
  • Otherwise: Operator (permission level >= 4)

Item Tag Lister

Lists all items in a given item tag to chat.

  • /lenientdeath utilities listItemsInTag <tag> - List all items currently in the given item tag.

Example

  • /lenientdeath utilities listItemsInTag lenientdeath:safe
  • /ld utilities listItemsInTag c:axes

Requirements

  • Permissions Key: lenientdeath.command.utility.list_tag_items
  • Otherwise: Operator (permission level >= 4)

Clone this wiki locally