CTKor NoPlace
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:
- If the whitelist is NOT empty and the placed block is in the whitelist for the dimension, it gets placed.
- 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 的其他作品
查看全部 →Athenaeum
这是我的 Minecraft 模组库。类似的有很多,但这个是我的。
Dropt
根据玩家、游戏阶段、维度、生物群系、手持物品、Y轴高度、掉落物、时运等级、精准采集来修改方块掉落。规则可通过 ZenScript、JSON 或 DroptAPI 定义。
Artisan Worktables 1.12
带工具槽的主题工作台。可选工具由 CraftTweaker、JEI 和 GameStages 提供。
Advanced Mortars
四种可在游戏内使用的研钵,集成 CraftTweaker 和 JEI。
评论
登录后评论和评分