欢迎来到 HiMCBBS 论坛~

想在这里休息会么?和我们共度美好时光吧~

加入QQ群:879016948 获得最新公告,并与群友们一起聊天吹水!

注册 登录
[1.18.2-1.21.10] Scythe —— 镰刀

转载 开源 免费 娱乐 [1.18.2-1.21.10] Scythe —— 镰刀 6.1.0

请注册登录并激活账号后下载
自动重新种植收获的农作物!
版权类型
转载
插件中文名称
镰刀
插件英文名称
Scythe
支持的核心
  1. Bukkit
  2. Spigot
  3. Paper
  4. Purpur
  5. 其他Spigot下游
  6. 其他Paper下游
版权链接
https://modrinth.com/plugin/scythe/changelog
资源语言
  1. 英语
  2. 其他
支持版本(Java)
  1. 1.18
  2. 1.19
  3. 1.20
  4. 1.21
开源许可证
保留所有权益/无许可证

Scythe - 自动重新种植,右键点击收获插件

Modrinth Downloads Discord

特征

  • 收获后自动重新种植农作物
  • 右键收获完全长成的农作物
  • 蹲下以打破庄稼,而无需关闭功能
  • 用于自定义插件在服务器上的工作方式的配置选项

命令

  • /scythe toggle:为执行 命令。这需要许可。scythe.toggle
  • /scythe reload:重新加载插件的配置。这需要许可。scythe.reload

权限

  • scythe.use:访问镰刀功能的基本权限。
  • scythe.use.harvest:允许玩家使用镰刀功能收获物块
  • scythe.use.replant:允许玩家使用镰刀功能自动重新种植农作物
  • scythe.toggle:允许玩家使用 /scythe 切换命令自行切换该功能。
  • scythe.reload:允许玩家使用 /scythe reload 命令重新加载配置。

配置

请注意,生成的配置没有这么多注释,哈哈,这只是用于自述文件/描述
代码:
扩展 折叠 复制
[COLOR=rgb(136, 136, 136)]#Scythe[/COLOR]
auto-replant:
  enabled: [COLOR=rgb(120, 169, 96)]true[/COLOR] [COLOR=rgb(136, 136, 136)]# Should crops automatically be replanted?[/COLOR]
  require-seeds: [COLOR=rgb(120, 169, 96)]false[/COLOR] [COLOR=rgb(136, 136, 136)]# Should the user be required to have seeds in their inventory? [B][COLOR=rgb(245, 131, 0)]Note:[/COLOR][/B] will consume seeds[/COLOR]
  require-tool: [COLOR=rgb(120, 169, 96)]false[/COLOR] [COLOR=rgb(136, 136, 136)]# Should the user be required to use a specific tool?[/COLOR]
  delay-ticks: [COLOR=rgb(0, 175, 92)]1[/COLOR] [COLOR=rgb(136, 136, 136)]# How long in ticks after breaking the block should it be replanted? (20 ticks per second, without lag)[/COLOR]
right-click-harvest:
  enabled: [COLOR=rgb(120, 169, 96)]true[/COLOR] [COLOR=rgb(136, 136, 136)]# Should users be able to right-click to harvest blocks?[/COLOR]
  require-tool: [COLOR=rgb(120, 169, 96)]false[/COLOR] [COLOR=rgb(136, 136, 136)]# Should users be required to use a specific tool?
#Only applies if "require-tool" is true in any of the above categories[/COLOR]
tools:
  enabled-tools: [COLOR=rgb(136, 136, 136)]# If users are required to use a specific tool, which tools are valid?[/COLOR]
    [COLOR=rgb(245, 131, 0)]-[/COLOR] [COLOR=rgb(0, 175, 92)]"minecraft:wooden_hoe"[/COLOR]
    [COLOR=rgb(245, 131, 0)]-[/COLOR] [COLOR=rgb(0, 175, 92)]"minecraft:stone_hoe"[/COLOR]
    [COLOR=rgb(245, 131, 0)]-[/COLOR] [COLOR=rgb(0, 175, 92)]"minecraft:iron_hoe"[/COLOR]
    [COLOR=rgb(245, 131, 0)]-[/COLOR] [COLOR=rgb(0, 175, 92)]"minecraft:golden_hoe"[/COLOR]
    [COLOR=rgb(245, 131, 0)]-[/COLOR] [COLOR=rgb(0, 175, 92)]"minecraft:diamond_hoe"[/COLOR]
    [COLOR=rgb(245, 131, 0)]-[/COLOR] [COLOR=rgb(0, 175, 92)]"minecraft:netherite_hoe"[/COLOR]
  [COLOR=rgb(136, 136, 136)]# Item models should be declared like "namespace:id"[/COLOR]
  required-item-models: [ ] [COLOR=rgb(136, 136, 136)]# Do you have any specific item models you're using on tools that make them look different? If so, declare them here[/COLOR]
  [COLOR=rgb(136, 136, 136)]# [B][COLOR=rgb(245, 131, 0)]Note:[/COLOR][/B] In vanilla, harvesting normally crops does NOT use durability.[/COLOR]
  [COLOR=rgb(136, 136, 136)]# This will cause the tool to lose durability on right-click harvest ONLY[/COLOR]
  durability:
    harvest-uses-durability: [COLOR=rgb(120, 169, 96)]false[/COLOR] [COLOR=rgb(136, 136, 136)]# Should right-click-harvest make tool durability go down?[/COLOR]
    replant-uses-durability: [COLOR=rgb(120, 169, 96)]false[/COLOR] [COLOR=rgb(136, 136, 136)]# Should auto-replant make tool durability go down?[/COLOR]
    prevent-tool-break: [COLOR=rgb(120, 169, 96)]true[/COLOR] [COLOR=rgb(136, 136, 136)]# If either of the two above are set to 'true', do you want to prevent the plugin from working if a tool is low on durability, to prevent users from accidentally breaking their tools?[/COLOR]
    minimum-durability: [COLOR=rgb(0, 175, 92)]10[/COLOR] [COLOR=rgb(136, 136, 136)]# If the above is set to true, how low should durability be when the plugin stops working?
# Please choose a sound from this list: https://jd.papermc.io/paper/1.21.4/org/bukkit/Sound.html[/COLOR]
sounds:
  enabled: [COLOR=rgb(120, 169, 96)]true[/COLOR] [COLOR=rgb(136, 136, 136)]# Should sounds be played when a user breaks or auto-replants a crop?[/COLOR]
  break-sound: [COLOR=rgb(0, 175, 92)]BLOCK_CROP_BREAK[/COLOR] [COLOR=rgb(136, 136, 136)]# Which sound should be played when a crop is broken?[/COLOR]
  plant-sound: [COLOR=rgb(0, 175, 92)]ITEM_CROP_PLANT[/COLOR] [COLOR=rgb(136, 136, 136)]# Which sound should be played when a crop is replanted?[/COLOR]
  [COLOR=rgb(136, 136, 136)]# between 0 and 2[/COLOR]
  volume: [COLOR=rgb(0, 175, 92)]1.0[/COLOR] [COLOR=rgb(136, 136, 136)]# How loud should it be?[/COLOR]
  [COLOR=rgb(136, 136, 136)]# between 0 and 2[/COLOR]
  pitch: [COLOR=rgb(0, 175, 92)]1.0[/COLOR] [COLOR=rgb(136, 136, 136)]# How high-pitched should it be?
# Please choose a particle from this list: https://jd.papermc.io/paper/1.20/org/bukkit/Particle.html[/COLOR]
particles:
  harvest:
    enabled: [COLOR=rgb(120, 169, 96)]true[/COLOR] [COLOR=rgb(136, 136, 136)]# Should particles show when a user right-click-harvests a block?[/COLOR]
    particle: [COLOR=rgb(0, 175, 92)]BLOCK[/COLOR] [COLOR=rgb(136, 136, 136)]# Which particle should show?[/COLOR]
    count: [COLOR=rgb(0, 175, 92)]40[/COLOR] [COLOR=rgb(136, 136, 136)]# How many particles should spawn? This will wildly depend on the selected particle[/COLOR]
    [COLOR=rgb(136, 136, 136)]# how far from the center particles should go, in blocks[/COLOR]
    spread: [COLOR=rgb(0, 175, 92)]0.5[/COLOR]
  replant:
    enabled: [COLOR=rgb(120, 169, 96)]true[/COLOR]  [COLOR=rgb(136, 136, 136)]# Should particles show when a block is auto-replanted?[/COLOR]
    particle: [COLOR=rgb(0, 175, 92)]HAPPY_VILLAGER[/COLOR] [COLOR=rgb(136, 136, 136)]# Which particle should show?[/COLOR]
    count: [COLOR=rgb(0, 175, 92)]2[/COLOR] [COLOR=rgb(136, 136, 136)]# How many particles should spawn? This will wildly depend on the selected particle[/COLOR]
    spread: [COLOR=rgb(0, 175, 92)]0.5[/COLOR] [COLOR=rgb(136, 136, 136)]# how far from the center should particles go, in blocks
# Crops the plugin should work on, list of materials is here: https://jd.papermc.io/paper/1.21.4/org/bukkit/Material.html
# Note, the material must have the BlockData of 'Ageable' - note, most other ageable blocks in the list don't work as intended.[/COLOR]
allowed-crops:
  [COLOR=rgb(245, 131, 0)]-[/COLOR] [COLOR=rgb(0, 175, 92)]BEETROOTS[/COLOR]
  [COLOR=rgb(245, 131, 0)]-[/COLOR] [COLOR=rgb(0, 175, 92)]CARROTS[/COLOR]
  [COLOR=rgb(245, 131, 0)]-[/COLOR] [COLOR=rgb(0, 175, 92)]COCOA[/COLOR]
  [COLOR=rgb(245, 131, 0)]-[/COLOR] [COLOR=rgb(0, 175, 92)]NETHER_WART[/COLOR]
  [COLOR=rgb(245, 131, 0)]-[/COLOR] [COLOR=rgb(0, 175, 92)]POTATOES[/COLOR]
  [COLOR=rgb(245, 131, 0)]-[/COLOR] [COLOR=rgb(0, 175, 92)]WHEAT[/COLOR]
  [COLOR=rgb(136, 136, 136)]# - PUMPKIN_STEM[/COLOR]
  [COLOR=rgb(136, 136, 136)]# - MELON_STEM[/COLOR]

应用程序接口

HarvestEvent - 可取消

方法返回描述
getPlayer()Player返回触发收割的玩家。
getBlock()Block返回正在收获的作物块。
isCancelled()boolean检查事件是否已取消。
setPlayer(Player)void更新与事件关联的玩家。
setBlock(Block)void更新事件中涉及的块。
setCancelled(boolean)void取消或取消事件。
getHandlers()HandlerListBukkit 所需的处理程序方法。
getHandlerList()HandlerListBukkit 需要的静态处理程序方法。

ReplantEvent - 可取消

方法返回描述
getPlayer()Player返回触发重新种植的玩家。
getBlock()Block返回正在重新种植的块。
getBlockData()BlockData返回应用于重新种植的块的 BlockData。
isCancelled()boolean检查事件是否已取消。
setPlayer(Player)void更新与事件关联的玩家。
setBlock(Block)void更新事件中涉及的块。
setBlockData(BlockData)void更新重新种植的块的块数据。
setCancelled(boolean)void取消或取消事件。
getHandlers()HandlerListBukkit 所需的处理程序方法。
getHandlerList()HandlerListBukkit 需要的静态处理程序方法。

专家

代码:
扩展 折叠 复制
<[B][COLOR=rgb(245, 131, 0)]repository[/COLOR][/B]>
    <[B][COLOR=rgb(245, 131, 0)]id[/COLOR][/B]>modrinth-repo</[B][COLOR=rgb(245, 131, 0)]id[/COLOR][/B]>
    <[B][COLOR=rgb(245, 131, 0)]url[/COLOR][/B]>https://api.modrinth.com/maven/</[B][COLOR=rgb(245, 131, 0)]url[/COLOR][/B]>
</[B][COLOR=rgb(245, 131, 0)]repository[/COLOR][/B]>

<[B][COLOR=rgb(245, 131, 0)]dependency[/COLOR][/B]>
<[B][COLOR=rgb(245, 131, 0)]groupId[/COLOR][/B]>maven.modrinth</[B][COLOR=rgb(245, 131, 0)]groupId[/COLOR][/B]>
<[B][COLOR=rgb(245, 131, 0)]artifactId[/COLOR][/B]>scythe</[B][COLOR=rgb(245, 131, 0)]artifactId[/COLOR][/B]>
<[B][COLOR=rgb(245, 131, 0)]version[/COLOR][/B]>4.0</[B][COLOR=rgb(245, 131, 0)]version[/COLOR][/B]>
<[B][COLOR=rgb(245, 131, 0)]scope[/COLOR][/B]>provided</[B][COLOR=rgb(245, 131, 0)]scope[/COLOR][/B]>
</[B][COLOR=rgb(245, 131, 0)]dependency[/COLOR][/B]>

Gradle编译

代码:
扩展 折叠 复制
exclusiveContent {
    forRepository { maven { url = [COLOR=rgb(0, 175, 92)]"https://api.modrinth.com/maven"[/COLOR] } }
    filter { includeGroup [COLOR=rgb(0, 175, 92)]"maven.modrinth"[/COLOR] }
}

[COLOR=rgb(245, 131, 0)]dependencies[/COLOR] {
    compileOnly [COLOR=rgb(0, 175, 92)]'maven.modrinth:scythe:4.0'[/COLOR]
}

支持

如果您需要有关 Scythe 插件的任何帮助,请在 GitHub 存储库上提出问题或加入我们的 Discord 服务器寻求支持。
作者
Kimonomc
下载
0
查看
28
首次发布
最后更新

评论

0.00 星 0 星

来自Kimonomc的更多资源

分享资源

后退
顶部