Access Denied
The Access Denied modification provides server owners and modpack developers with complete control over player access to various dimensions.
Using this modification, you can either completely disable certain dimensions or set various requirements that players must complete before gaining access to a specific dimension.
Warning
This description is only relevant for versions starting from 6.2.0.
Configuration
Access Denied has a general configuration located in the following folders depending on the loader:
- NeoForge:
config/access_denied/configuration.toml - Forge:
world/serverconfig/access_denied/configuration.toml - Fabric:
config/access_denied/configuration.json
In this configuration, you can customize:
disabledDimensions— list of dimensions (can be empty) that players cannot access at allpushBackPlayer— option to push the player away from the portal when they cannot enter the dimensionconsumeItem— option to consume items specified in theitemKeysrequirement (only for NeoForge and Forge, coming soon to Fabric)accessDeniedMessage— text displayed when the player cannot access a dimensionrequirementsMessageBuilder— list of strings that form the large requirements message
Dimension Requirements
Now let's move on to setting up dimension requirements.
Access Denied offers a wide selection of additional requirements that can be added:
- REQUIRED:
dimension= registry name of the dimension blocksBroken= number of blocks that need to be brokenblocksPlaced= number of blocks that need to be placedxpLevel= required experience levelplayerKills= required number of player killsmobKills= required number of mob kills (players are not counted)playTime= required number of seconds of playtimeitemsKey= list of items that must be in the player's inventoryeffects= list of effects that must be active on the playerhealth= required health amountdeaths= required number of deathschance= additional chance to enter the dimension when other requirements are metadvancements= list of achievements the player must completejumps= number of jumps the player must maketimesFished= number of times the player must have fishedftbQuestIds= list of FTB quest IDs the player must complete (only for NeoForge 1.21.1, coming soon to Forge and Fabric)mobBounties= list of mobs to kill and their quantity (for example, 3 zombies)blockBounties= list of blocks to mine and their quantity (for example, 5 obsidian)
These requirements must be placed in a JSON file (can be named anything, but without spaces or capital letters) inside the config/access_denied folder.
Here's an example:
{
"dimension": "minecraft:the_nether",
"blocksBroken": 35,
"blocksPlaced": 70,
"xpLevel": 30,
"playerKills": 3,
"mobKills": 10,
"playTime": 300,
"itemsKey": [
"minecraft:diamond",
"minecraft:netherite_sword"
],
"effects": [
"minecraft:strength",
"minecraft:invisibility"
],
"health": 20,
"deaths": 1,
"chance": 50,
"advancements": [
"minecraft:story/follow_ender_eye",
"minecraft:adventure/kill_a_mob"
],
"jumps": 75,
"timesFished": 12,
"ftbQuestIds": [
"questId1",
"questId2"
],
"jumps": 50,
"timesFished": 3,
"mobBounties": {
"minecraft:cow": 5,
"minecraft:zombie": 14
},
"blockBounties": {
"minecraft:glass": 10,
"minecraft:end_stone": 64
}
}