Skip to content

Museum Exhibit Data

Immortius edited this page Aug 21, 2023 · 1 revision

Museum Exhibit Data is used to add museum exhibits and collections, or to insert additional items into existing exhibits.

Museum Exhibits are defined in the data/<mod_id>/museumexhibits resource path, where mod_id is the owning mod (for a modpack, this is withinn a zipped resource pack and placed under overrides\resourcepacks).

Museum exhibits have the following properties - all names are identifiers for the name in localisation files:

  • collection - the name of the collection the exhibit belongs to (no need to define collections, a collection exists if it contains at least one exhibit)
  • name - the name of the exhibit
  • relativeTo - Optional. The name of an exhibit this exhibit should be placed relative to.
  • placement - Optional. Whether this exhibit should be placed "before" or "after" the relativeTo exhibit.
  • items - Optional. A list of item definitions that are the content of the exhibit.
  • insertGroups - Optional. A list of groups of items to insert into an existing exhibit. The existing exhibit will be matched based on the collection + exhibit names.

An item definition is either the string id of an item, or an object with the following properties:

  • id - the id of the item
  • tags - optional. An object structure describing the tags the item must have to match this exhibit entry.

An item group has the following properties:

  • relativeTo - Optional. The id of an item this group should be inserted relative to.
  • placement - Optional. Whether the item group should be inserted "before" or "after" the relativeTo item.
  • items - A list of item definitions to insert.

Example:

{
  "collection" : "museumcurator.collection.animalhusbandry",
  "name" : "museumcurator.animalhusbandry.beestuff",
  "relativeTo" : "museumcurator.animalhusbandry.pigstuff",
  "placement" : "after",
  "items" : [
    "minecraft:beehive",
    {
      "id" : "minecraft:potion",
      "tags" : {
        "Potion" : "minecraft:long_slow_falling"
      }
    }  
  ],
  "insertGroups" : [
    {
      "relativeTo" : "minecraft:beehive",
      "placement" : "before",
      "items" : [
         "minecraft:honeycomb",
         "minecraft:honeycomb_block"
      ]
    }
  ] 
}
Clone this wiki locally