跳到正文

no-offhand-rocket-use

作者:Shikaru0

A minimal Fabric minecraft mod that disables the use of firework rockets when their in your offhand.

收藏

介绍

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

no-offhand-rocket-use

A minimal Fabric minecraft mod that disables the use of firework rockets
when their in your offhand.

How does it work?

It checks if the current hand is OFF_HAND, and if the offHandStack is a type of FireworkRocketItem,
if so it returns ActionResult.FAIL which cancels the use of the rocket.
If the mod is disabled, it simply returns ActionResult.PASS

UseBlockCallback.EVENT.register(((player, world, hand, hitResult) -> {
	if (!NoOffhandRocketUseConfig.get().enabled) return ActionResult.PASS;
		return hand == Hand.OFF_HAND && player.getOffHandStack().getItem() instanceof FireworkRocketItem ? ActionResult.FAIL : ActionResult.PASS;
	}))

Configuration

The mod uses a nooffhandrocketuse.json in the fabric config directory as configuration file.

Enabling / Disabling

You can toggle the mod, using:

/nooffhandrocketuse toggle

This also saves the content to the config file.

常见问题

no-offhand-rocket-use 支持哪些 Minecraft 版本?

no-offhand-rocket-use 支持 Minecraft Java 版 1.21.11,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

no-offhand-rocket-use 怎么安装?

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

评论

登录后评论和评分

Shikaru0 的其他作品

查看全部 →