Settings
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:
Section titled “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