ITExpy's Felling Axes Datapack

数据包

· 作者 ITExpy

四把伐木斧:击倒一根原木,整棵树都会倒下。树越大,砍伐速度越慢,耐久度消耗也越高。

0 本站下载 0 关注 更新于 1 个月前

最新 1.21-1.21.1-1.0.0 · 1.21.1 · 数据包

一键开服(送7天)

描述/Описание:

Русский

ITExpy 的伐木斧

数据包添加了四种斧头——铁斧、金斧、钻石斧和下界合金斧。只需击碎一根原木,整棵树都会随之倒下。树木越大,砍伐速度越慢,斧头的磨损也越快。

游戏版本: Minecraft Java Edition 26.3 纹理已分离至单独的资源包(链接见下方)。没有它斧头也能正常工作,但会显示为“错误纹理”。

功能

  • 砍倒整棵树。 击碎树干底部的原木,斧头会将上方和侧方的一切(包括对角线方向的树枝)全部砍倒。
  • 根据树木大小减速。 倒下的原木越多,你的砍伐速度就越慢(每多10根原木增加10%减速效果,最高90%)。仅在你手持斧头并注视原木时生效。
  • 额外磨损。 除了正常的方块破坏损耗外,每砍倒10根原木,斧头会额外损失1点耐久度。
  • 支持单人游戏与服务器。 性能消耗仅来自手持斧头的玩家。

斧头

斧头 耐久度
铁斧 50
金斧 20
钻石斧 100
下界合金斧 512

所有斧头均可在合成台中合成,配方可在合成书查看。

通过命令获取斧头:

/function itexpy_felling_axes:give/iron
/function itexpy_felling_axes:give/gold
/function itexpy_felling_axes:give/diamond
/function itexpy_felling_axes:give/netherite

工作原理

  1. 手持斧头并注视树木底部的原木。
  2. 如果树木包含大量原木,你会注意到挖掘速度变慢。
  3. 击碎该原木,相连的整棵树将在上方和侧方倒下。
  4. 每次挥斧最多砍倒96根原木。

安装

  1. 下载数据包文件(.zip)。
  2. 将其放入 saves/<世界名>/datapacks/(服务器端:world/datapacks/)。
  3. 执行 /reload 或重启世界/服务器。
  4. 如需纹理,请安装资源包:[资源包链接]。

兼容性与限制

  • 仅限 Java Edition 26.3。
  • 适用于生存模式。创造模式下无法触发砍伐。
  • 仅识别原版生成的树木。
  • 砍伐方向为向上和向两侧。被击碎原木下方的原木不受影响。树叶不会被移除,会自行腐烂消失。
  • 斧头会破坏任何与树相连的原木,包括附近建筑中的原木。此数据包不识别领地保护插件,请在服务器上注意这一点。

卸载

在移除数据包之前,请先运行:

/function itexpy_felling_axes:uninstall
/datapack disable "file/<数据包名称>"

这将移除所有在线玩家的减速效果并重置计数器。如果玩家离线,可通过以下命令移除其减速效果:

/attribute <玩家ID> minecraft:block_break_speed modifier remove itexpy_felling_axes:slow

开发者信息

  • 命名空间:itexpy_felling_axes。
  • 计分板对象:itexpy.* 以及 itx_m01–itx_m44。
  • 此数据包不替换原版标签,仅扩展 #minecraft:axes。
  • 原木数量上限设定于 chop/spread.mcfunction 和 slow/visit.mcfunction。减速值和磨损值作为常量定义在 load.mcfunction 中。

链接

English

ITExpy's Felling Axes

A data pack that adds four felling axes (iron, golden, diamond and netherite). Break one log and the whole tree comes down. The bigger the tree, the slower the chopping and the faster the axe wears out.

Game version: Minecraft Java Edition 26.3 Textures are in a separate resource pack (link below). The axes work without it, but look like a "missing texture" error.

Features

  • Fells the whole tree. Break the bottom log of a trunk and the axe takes down everything above and beside it, including diagonal branches.
  • Slowdown based on tree size. The more logs will fall, the slower you chop (+10% slowdown per extra ten logs, capped at 90%). The slowdown only applies while you hold the axe and look at a log.
  • Extra wear. On top of normal per-block damage, the axe loses 1 durability for every 10 logs felled.
  • Works in singleplayer and on servers. Only players holding an axe cost any performance.

Axes

Axe Durability
Iron 50
Golden 20
Diamond 100
Netherite 512

All axes are craftable, recipes appear in the recipe book.

To give yourself one by command:

/function itexpy_felling_axes:give/iron
/function itexpy_felling_axes:give/gold
/function itexpy_felling_axes:give/diamond
/function itexpy_felling_axes:give/netherite

How it works

  1. Hold an axe and look at the bottom log of a tree.
  2. If the tree has many logs, you will notice you break the block slower.
  3. Break the log and the connected tree falls, above and beside it.
  4. At most 96 logs are felled per swing.

Installation

  1. Download the data pack (.zip).
  2. Put it in saves/<world>/datapacks/ (on a server: world/datapacks/).
  3. Run /reload or restart the world or server.
  4. For textures, install the resource pack: [resource pack link].

Compatibility and limitations

  • Java Edition 26.3 only.
  • Works in survival mode. Chopping does not trigger in creative.
  • Only vanilla trees are recognized.
  • Felling goes upward and sideways. Logs below the broken one are not affected. Leaves are not removed and decay on their own.
  • The axe breaks any logs connected to the tree, including logs in nearby builds. The data pack knows nothing about land-claim or protection plugins, so keep this in mind on servers.

Uninstalling

Before removing the data pack, run:

/function itexpy_felling_axes:uninstall
/datapack disable "file/<data pack name>"

这会移除所有在线玩家的速度减缓效果,并清理记分板。对于离线玩家,请使用以下命令移除速度减缓效果:

/attribute <player> minecraft:block_break_speed modifier remove itexpy_felling_axes:slow

面向开发者

  • 命名空间:itexpy_felling_axes
  • 记分板:itexpy.* 以及 itx_m01–itx_m44
  • 该资源包不会替换原版标签,仅向 #minecraft:axes 中添加内容
  • 砍伐次数限制在 chop/spread.mcfunction 和 slow/visit.mcfunction 中设置。速度减缓效果和磨损值在 load.mcfunction 中被定义为常量

链接

  • 含纹理的资源包:[link]
  • 源代码:[link]
  • 报告错误:点击
  • 许可证:[MIT]

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源