跳到正文

CTKor NoPlace

作者:codetaylor

This mod provides a config to restrict blocks from being placed in dimensions.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

This mod provides a config to restrict blocks from being placed in dimensions.

Dependencies

This mod requires CTKor Library. Please make sure it is installed along with this mod.

Overview

Let’s say you have a portal block that you want the player to have to place in the Nether. Simply add the block to the config file and whitelist dimension -1 and you’re good to go.

Configuration

A simple example configuration is provided:

{
  "blocks": {
    "minecraft:stone:0": {
      "dimensionIdWhiteList": [],
      "dimensionIdBlackList": [
        0
      ],
      "returnedItem": "minecraft:stone:0",
      "message": "As an example, stone has been blacklisted for dimension 0 (Overworld)."
    }
  }
}

The .json is pretty straightforward, but there are a couple of things to note here.

Whitelist and Blacklist Logic

The whitelist and blacklist logic works as follows:

  1. If the whitelist is NOT empty and the placed block is in the whitelist for the dimension, it gets placed.
  2. If the blacklist is NOT empty and the placed block is NOT in the blacklist for the dimension, it gets placed.

Therefore, if you were to whitelist and blacklist the same dimension, the block would still be placed because the whitelist is checked first.

Returned Item

If the returned item is left blank or omitted entirely, the mod will return to the player the item that is normally given when the block is broken. This works for most blocks, however, it does not work for blocks that return something different. Stone is a good example of this. When the stone block is broken, cobblestone is returned. The returnedItem parameter allows you to override the returned item, like we did in the example above.

Message

If the message parameter is provided, and not left blank, the player will see this message when they try to place a restricted block. This serves to notify and inform the player, optionally giving hints as to where the block can be placed. Without this information the player might think that something is bugged or glitched.

 

You can use this mod in any modpack provided you do not host the file elsewhere.

常见问题

CTKor NoPlace 支持哪些 Minecraft 版本?

CTKor NoPlace 支持 Minecraft Java 版 1.10.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

CTKor NoPlace 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

codetaylor 的其他作品

查看全部 →