Mantle Commands - SlimeKnights/Mantle GitHub Wiki

In 1.16 builds and later, Mantle adds several commands under the root command /mantle

View Tag

Prints all values in the given tag to the console.

Syntax:

/mantle view_tag <type> <name>

Arguments:

  • <type>: Tag type, for example minecraft:item or minecraft:potion
  • <name>: Tag name, for example forge:ingots/iron

Tags For

Lists all tags for the given registry entry.

ID

Fetches a registry entry by ID and lists all its tags.

Syntax:

/mantle tags_for id <type> <name>

Arguments:

  • <type>: Tag type, for example minecraft:item or minecraft:potion
  • <name>: Registry entry name, for example minecraft:iron_ingot

Held

Lists all tags for the held item.

Syntax:

/mantle tags_for held <type>

<type> can be one of 6 values:

  • item: Lists all item tags for the held item
  • block: Lists all block tags for the held block
  • fluid: Lists all fluid tags for the fluid contained in the held item
  • enchantment: Lists all enchantment tags for each enchantment on the held item
  • potion: Lists all potion tags for the held potion
  • entity: Lists all entity tags for the held spawn egg

Targeted

Lists all tags for the targeted object.

Syntax:

/mantle tags_for targeted <type>

<type> can be one of 2 values:

  • entity: Lists all entity tags for the targeted entity
  • tile_entity: Lists all tile entity tags for the targeted block

Note for blocks and fluids, the debug screen lists tags.

Dump Tag

Prints a JSON object containing the combination of a tag from all loaded datapacks.

Syntax:

/mantle dump_tag <type> <name>

Arguments:

  • <type>: Tag type, for example minecraft:item or minecraft:potion
  • <name>: Tag name, for example forge:ingots/iron

Dump All Tags

Searches all loaded datapacks for all tag JSON and adds them to <gameDirectory>/mantle_data_dump. The file path in the output is clickable to open the folder.

Syntax:

/mantle dump_add_tags [<type>]
  • <type>: Tag type, for example minecraft:item or minecraft:potion. If left out, all types are dumped.

Dump Loot Modifiers

Searches all loaded datapacks for all enabled global loot modifiers and either logs or saves them.

Syntax:

/mantle dump_loot_modifiers (log|save)

If the second argument is log, logs the result to the console. If the second argument is save, saves them to a json file in /mantle_data_dump`. The link in the output of save is clickable.

⚠️ **GitHub.com Fallback** ⚠️