跳到正文

Bonemeal sugarcane

作者:VoidEcho45

just a simple datapack that lets you bonemeal sugarcane.

收藏

截图

介绍

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

Bone Meal Sugar Cane

Right-click sugar cane with bone meal and it grows. Vanilla ignores bone meal on cane, so this pack adds the missing behavior.

Features

  • Bone meal adds one block of height to the sugar cane you’re looking at
  • Follows vanilla growth rules: needs air above, and stacks stop at 3 blocks tall
  • Uses one bone meal per successful use (none in creative)
  • Green sparkle particles on growth
  • Works in multiplayer, with each player’s click handled separately

Installation

  1. Download the zip
  2. Put it in your world’s datapacks folder (or drag it into the world’s data pack screen when creating a world)
  3. Run /reload or restart the world

Minecraft version: 1.21.11 26.1x 26.2 26.3

How it works

Vanilla gives no way for a data pack to detect a bone meal click on cane, so while you hold bone meal, the pack places an invisible interaction entity on the cane you’re looking at. Right-clicking it triggers the growth.

Known limitations

  • Bone meal must be in your main hand (offhand won’t work)
  • While holding bone meal and aiming at cane, left-click hits the invisible target instead of breaking the cane. Switch items to break it.

常见问题

Bonemeal sugarcane 支持哪些 Minecraft 版本?

Bonemeal sugarcane 支持 Minecraft Java 版 1.21.11–26.3,共 6 个版本。下载时注意选择和你游戏版本一致的文件。

Bonemeal sugarcane 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

VoidEcho45 的其他作品

查看全部 →