跳到正文

Ori’s Hand Library

作者:ori_sky

A library to permit or forbid harvesting blocks without the correct tool.

收藏

介绍

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

What is this mod?

lib-hand is an extremely lightweight mod that provides a way of modifying the default behaviour when harvesting blocks without the correct tool.

In practice, you can do stuff like:

  • Allow stone to be harvested by hand.
  • Prevent logs from being harvested without an axe.

How do I use it?

To allow harvesting without the correct tool, add your block to the block tag hand:permitted. This will override the default behaviour of the block.

To require the correct tool when harvesting a block, add your block to the block tag hand:forbidden. This will override the default behaviour of the block, and will also override hand:permitted if set.

Example Minecraft data pack

Here’s an example resource file. It allows stone to be harvested without the use of a pickaxe.

data/hand/tags/blocks/permitted.json

1: {
2:   “replace”: false,
3:  
“values”: [
4:    
“minecraft:stone”
5:  
]
6: }

Example CraftTweaker script

Here’s some example ZenScript code. It prevents logs and planks from being harvested without the use of an axe.

prevent_crafting_bench_progression.zs

1: <tag:blocks:hand:forbidden>.add(<tag:blocks:minecraft:logs>);
2: <tag:blocks:hand:forbidden>.add(<tag:blocks:minecraft:planks>);

常见问题

Ori’s Hand Library 支持哪些 Minecraft 版本?

Ori’s Hand Library 支持 Minecraft Java 版 1.18.2,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Ori’s Hand Library 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

ori_sky 的其他作品

查看全部 →