Crops-Take-Durability 图标

Crops-Take-Durability

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/crops-take-durability
资源信息

Minecraft 版本: 1.17 1.17.1 1.18 1.18.1 1.18.2 1.19 1.19.1 1.19.2 1.19.3 1.19.4 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10

平台: paper purpur spigot

标签: game-mechanics technology utility

资源介绍

CropsTakeDurability

is a simple Spigot/Paper plugin that makes tools lose durability when harvesting certain crops. The list of affected crops is configurable.

Requirements

  • Java 16 or newer
  • Spigot or Paper 1.17+

Configuration

The main setting is a list of block types that should cause hoes to lose durability when broken.

config.yml example:

crop-materials:
  - "WHEAT"
  - "CARROTS"
  - "POTATOES"
  - "BEETROOTS"
  - "NETHER_WART"
  - "SWEET_BERRY_BUSH"
  - "CAVE_VINES"
  - "CAVE_VINES_PLANT"
  - "BROWN_MUSHROOM"
  - "RED_MUSHROOM"
  - "COCOA"
  - "TORCHFLOWER"
  - "PITCHER_PLANT"
  - "CRIMSON_FUNGUS"
  - "WARPED_FUNGUS"

Notes:

  • Values must match Bukkit Material names. They are treated case-insensitively.
  • Any invalid material names will be logged as warnings and ignored.
  • If no valid materials are configured, the plugin will log a warning and will not affect any blocks.

Behavior

  • When a player breaks a block listed in crop-materials, the plugin checks the player's main hand and off hand.
  • If the item is a hoe, it will lose 1 durability when harvesting a configured crop.
  • The Unbreaking enchantment is respected. The chance to avoid damage is 1 / (level + 1).
  • If a hoe reaches its maximum damage, it breaks and is removed from the player's hand, and the item break sound is played.

Commands and permissions

Commands:

  • /cropsdurability reload - Reloads the plugin configuration.

Permissions:

  • cropstakedurability.reload - Allows reloading the configuration. Default: op.
  • cropstakedurability.bypass - Prevents hoes from taking durability when harvesting configured crops. Default: false.

License

This project is licensed under the MIT License. See the LICENSE file for details.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
mark it!

价格:0 墨喵币
下载量:0

查看详情
BND Mine Wingores

价格:0 墨喵币
下载量:0

查看详情
Simple Water Gravity

价格:0 墨喵币
下载量:0

查看详情
MastacBreeze

价格:0 墨喵币
下载量:0

查看详情