Download Access Denied — Minecraft Mods — MetaMods

Access Denied

Active

Downloads

0

Last update

2 months ago

Versions

1.18 — 1.21.5
Client and server
Fabric
Forge
Neoforge
Game mechanics
Control

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 all
  • pushBackPlayer — option to push the player away from the portal when they cannot enter the dimension
  • consumeItem — option to consume items specified in the itemKeys requirement (only for NeoForge and Forge, coming soon to Fabric)
  • accessDeniedMessage — text displayed when the player cannot access a dimension
  • requirementsMessageBuilder — 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 broken
  • blocksPlaced = number of blocks that need to be placed
  • xpLevel = required experience level
  • playerKills = required number of player kills
  • mobKills = required number of mob kills (players are not counted)
  • playTime = required number of seconds of playtime
  • itemsKey = list of items that must be in the player's inventory
  • effects = list of effects that must be active on the player
  • health = required health amount
  • deaths = required number of deaths
  • chance = additional chance to enter the dimension when other requirements are met
  • advancements = list of achievements the player must complete
  • jumps = number of jumps the player must make
  • timesFished = number of times the player must have fished
  • ftbQuestIds = 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
  }
}