Mantle Commands - SlimeKnights/Mantle GitHub Wiki
In 1.16 builds and later, Mantle adds several commands under the root command /mantle
Prints all values in the given tag to the console.
Syntax:
/mantle view_tag <type> <name>
Arguments:
-
<type>
: Tag type, for exampleminecraft:item
orminecraft:potion
-
<name>
: Tag name, for exampleforge:ingots/iron
Lists all tags for the given registry entry.
Fetches a registry entry by ID and lists all its tags.
Syntax:
/mantle tags_for id <type> <name>
Arguments:
-
<type>
: Tag type, for exampleminecraft:item
orminecraft:potion
-
<name>
: Registry entry name, for exampleminecraft:iron_ingot
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
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.
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 exampleminecraft:item
orminecraft:potion
-
<name>
: Tag name, for exampleforge:ingots/iron
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 exampleminecraft:item
orminecraft:potion
. If left out, all types are dumped.
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.