Decursio Team Wiki
  • The Official Decursio Team Wiki
  • Modpacks
    • Decursio Project: Expert
      • General Info
        • Frequently Asked Questions
          • VR
          • GUI & Visuals
          • Gameplay
          • No Release?
        • Mod Distribution (WIP)
        • Modified Features (WIP)
        • Tips (WIP)
      • Mechanics
        • Quests
        • Ages
        • Gated Features
        • Mob Difficulty
        • Chunk Claiming/Loading
        • Player Health
        • Player Nutrition (PR 26+)
        • Seasons/Agriculture (WIP)
        • Dimensions (WIP)
        • Boss Fights (WIP)
        • Endgame (WIP)
      • Guides
        • Ore Gen
        • The First Day
        • Making Charcoal
        • The Pit Kiln
        • Ore Kilns
        • Construction Paste Processing (WIP)
        • Leather Working (WIP)
        • Making Iron
        • Armors (WIP)
        • Resourceful Bees (WIP)
        • Eidolon & Rituals (WIP)
        • Create Rotational Power Generators (WIP)
  • mods
    • Decursio Stages
      • Generating the mod's files
      • decursio_stages folder
      • The Stage/Restriction file
        • How to make a stage
        • Restrictions
      • Possible Configuration Examples
      • Debug Feature
      • In-Game Commands
      • FAQ
    • [DISCONTINUED ] T.H.I.S.
      • 1.16.5
        • Understanding Stages/Restrictions
        • Creating stages
        • Creating restrictions
          • Restriction Data
          • Settings
        • Final Example
        • Integrations
          • Improved Mobs
      • 1.18-1.19.2
        • Understanding Stages/Restrictions
        • Creating stages
        • Creating restrictions
          • Restriction Data
          • Settings
        • Final Example
    • Pickable Health Orbs
      • Locating the orbs folder
      • Modifying already existing orbs
      • Creating custom orbs
        • Orbs Data
Powered by GitBook
On this page

Was this helpful?

  1. mods
  2. [DISCONTINUED ] T.H.I.S.
  3. 1.16.5
  4. Creating restrictions

Restriction Data

So exciting, the tutorial is almost finished!!!

So open the file you've created in the previous step with your preferred text editor and let's start making a restriction.

Restriction Data example (a restriction's required information)

{
  "Restriction Data": {
    "stage": "age_1",
    "itemList": [
      "minecraft:diamond"
    ],
    "blockList": [
    ],
    "modList": [
      "botania"
    ],
    "exceptionList": [
    ],
    "containerList": [
      "net.minecraft.inventory.container.WorkbenchContainer", "thitemstages.inventoryMenu.CraftingGrid"
    ],
    "dimensionList": [
      "minecraft:the_nether"
    ]
  },
}

Ok soo, now what does everything mean???

  • "stage": <stage_name> - the stage that the restriction is linked to - requires a String

  • "itemList": <items> - the list of items that should be linked to the restriction - requires a list of Resource Locations (item ids)

  • "blockList": <blocks> - the list of blocks that should be linked to the restriction - requires a list of Resource Locations (block ids)

  • "modList": <mods> - the list of mods that should be linked to the restriction - requires a list of Strings (mod ids)

  • "tagList": <tags> - the list of tags that should be linked to the restriction - requires a list of Resource Locations (tag ids)

  • "exceptionList": <items> - the list of items that are in the mods/tags previously stated that shouldn't be linked to the restriction (useful if you want to hide items from the same mods/tags to multiple stages) - requires a list of Resource Locations (item ids)

  • "containerList": <container_classes_paths> - when the player is going to open a container from that list if he has items from that restriction they will be dropped from his inventory - requires a list of Container Classes paths (easiest way of getting the path of a container class is enabling the mod's debug mode found in the "thitemstages-common.toml" config file, with that enabled when you're going to open a container the path of that container's class will be shown in chat)

  • "dimensionList": <dimensions> - the list of dimensions that should be linked to that restriction - requires a list of Resource Locations (dimension ids)

PreviousCreating restrictionsNextSettings

Last updated 8 months ago

Was this helpful?