Download CTKor NoPlace — Minecraft Mods — MetaMods

CTKor NoPlace

Active

Downloads

0

Last update

8 years ago
Client
Utils

CTKor NoPlace

This modification provides a flexible configuration system for restricting the placement of specific blocks in particular Minecraft dimensions.

Compatibility and Requirements

For this mod to function, the CTKor Library is required. Ensure you install both components together.

Features and Applications

Imagine a scenario: you have a portal block that players should use exclusively in the Nether. Simply add this block to the configuration file and include dimension -1 in the whitelist — everything is ready to go!

Configuration Setup

Here's an example of a simple configuration:

{
  "blocks": {
    "minecraft:stone:0": {
      "dimensionIdWhiteList": [],
      "dimensionIdBlackList": [
        0
      ],
      "returnedItem": "minecraft:stone:0",
      "message": "As an example: stone is prohibited for placement in dimension 0 (Overworld)."
    }
  }
}

List Logic

The filtering system operates according to the following principle:

  1. If the whitelist is NOT empty and the placed block is in the whitelist for the given dimension — the block is placed
  2. If the blacklist is NOT empty and the placed block is NOT in the blacklist for the given dimension — the block is placed

Important: if you add the same dimension to both lists simultaneously, the block will still be placed because the whitelist check is performed first.

Returned Item

If you leave the returned item parameter empty or completely omit it, the mod will return to the player the item that normally drops when the block is broken. This works for most blocks but not for those that return a different item. Stone is a good example: when a stone block is broken, the player receives cobblestone. The returnedItem parameter allows you to override the returned item, as shown in the example above.

Informational Messages

If you specify the message parameter and don't leave it empty, the player will see this message when trying to place a restricted block. This helps notify and inform the player, providing hints about where this block can be used. Without this information, the player might think that there's a crash or error in the game.

Project members
codetaylor

codetaylor

Created: 10 Dec 2016

ID: 81487