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

Settings

Aaand the last piece of the puzzle (optional)

Ok so now to modify the settings of the restriction you've created in the previous step you should add something similar to the "Settings" example after the last } of the "Restriction Data" parameter (check Final Example for a preview).

Settings example (a restriction's optional information)

{
  "Settings": {
    "advancedTooltips": "ALWAYS",
    "itemTitle": "Unavailable Item",
    "pickupDelay": 15,
    "hideInJEI": true,
    "canPickup": false,
    "containerListWhitelist": false,
    "checkPlayerInventory": false,
    "checkPlayerEquipment": true,
    "usableItems": false,
    "usableBlocks": false
  }
}

Ok soo, now what does everything mean???

  • "advancedTooltips": <ALWAYS/NONE/ADVANCED> -ALWAYS: the restricted items will always have tooltips explaining the way they're restricted -NONE: the restricted items will never have tooltips explaining the way they're restricted -ADVANCED: the restricted items will have tooltips explaining the way they're restricted only when the client has the advanced tooltips (F3+H) enabled

  • "itemTitle": <item_title> - the name that the restricted items are going to have -requires a String

Important: If you're interested in having the default Item names, just leave the "itemTitle" field empty, like this:

"itemTitle": ""
  • "pickupDelay": <delay> - the pickup delay that the items dropped from the player's inventory are going to have -requires a Integer (value in ticks, 20 ticks = 1 second)

  • "hideInJEI": <true/false> - if the items restricted should be hidden in JEI or not -requires a Boolean

  • "canPickup": <true/false> - if the player shouldn't be able to pickup the items restricted -requires a Boolean

  • "containerListWhitelist": <true/false> - if the "containerList" should be a whitelist or not -requires a Boolean

  • "checkPlayerInventory": <true/false> - if the player's inventory should be checked for restricted items and then drop them (this verifies the player inventory every time there's a change to it) -requires a Boolean

  • "checkPlayerEquipment": <true/false> - if the player's equipment slots should be checked for restricted items and then drop them (this verifies the player inventory every time there's a change to it) -requires a Boolean

  • "usableItems": <true/false> - if the items restricted shouldn't be usable (right-click and left-click events will be canceled) -requires a Boolean

  • "usableBlocks": <true/false> - if the items restricted shouldn't be usable (right-click events will be canceled) -requires a Boolean

PreviousRestriction DataNextFinal Example

Last updated 11 months ago

Was this helpful?