COWMODSКаталог модов

Scythe

Auto-replant harvested crops!

Автор: Peashooter10110 тыс.65обновлён 19 мая 2025 г.
ЕдаМеханики игрыУтилиты

Описание

Scythe - Auto-Replant, Right-Click-Harvest plugin

Modrinth Downloads Discord

Features

  • Automatically replant crops after they are harvested
  • Right-click to harvest fully grown crops
  • Crouch in order to break crops without having to toggle the functionality off
  • Configuration options to customize how you'd like the plugin to work on your server

Commands

  • /scythe toggle: Toggles the automatic replanting and right-click harvesting feature for the player who executed the command. This requires the scythe.toggle permission.
  • /scythe reload: Reloads the configuration for the plugin. This requires the scythe.reload permission.

Permissions

  • scythe.use : Base permission for access to Scythe functionality.
  • scythe.use.harvest : Allows a player to harvest blocks using scythe functionality
  • scythe.use.replant : Allows a player to auto-replant crops using scythe functionality
  • scythe.toggle : Allows the player to toggle the feature for themselves using the /scythe toggle command.
  • scythe.reload : Allows the player to reload the configuration using the /scythe reload command.

Config

Note, generated config does not have this many comments lol, this is just for the README/description

#Scythe
auto-replant:
  enabled: true # Should crops automatically be replanted?
  require-seeds: false # Should the user be required to have seeds in their inventory? Note: will consume seeds
  require-tool: false # Should the user be required to use a specific tool?
  delay-ticks: 1 # How long in ticks after breaking the block should it be replanted? (20 ticks per second, without lag)
right-click-harvest:
  enabled: true # Should users be able to right-click to harvest blocks?
  require-tool: false # Should users be required to use a specific tool?
#Only applies if "require-tool" is true in any of the above categories
tools:
  enabled-tools: # If users are required to use a specific tool, which tools are valid?
    - "minecraft:wooden_hoe"
    - "minecraft:stone_hoe"
    - "minecraft:iron_hoe"
    - "minecraft:golden_hoe"
    - "minecraft:diamond_hoe"
    - "minecraft:netherite_hoe"
  # Item models should be declared like "namespace:id"
  required-item-models: [ ] # Do you have any specific item models you're using on tools that make them look different? If so, declare them here
  # Note: In vanilla, harvesting normally crops does NOT use durability.
  # This will cause the tool to lose durability on right-click harvest ONLY
  durability:
    harvest-uses-durability: false # Should right-click-harvest make tool durability go down?
    replant-uses-durability: false # Should auto-replant make tool durability go down?
    prevent-tool-break: true # 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?
    minimum-durability: 10 # 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
sounds:
  enabled: true # Should sounds be played when a user breaks or auto-replants a crop?
  break-sound: BLOCK_CROP_BREAK # Which sound should be played when a crop is broken?
  plant-sound: ITEM_CROP_PLANT # Which sound should be played when a crop is replanted?
  # between 0 and 2
  volume: 1.0 # How loud should it be?
  # between 0 and 2
  pitch: 1.0 # How high-pitched should it be?
# Please choose a particle from this list: https://jd.papermc.io/paper/1.20/org/bukkit/Particle.html
particles:
  harvest:
    enabled: true # Should particles show when a user right-click-harvests a block?
    particle: BLOCK # Which particle should show?
    count: 40 # How many particles should spawn? This will wildly depend on the selected particle
    # how far from the center particles should go, in blocks
    spread: 0.5
  replant:
    enabled: true  # Should particles show when a block is auto-replanted?
    particle: HAPPY_VILLAGER # Which particle should show?
    count: 2 # How many particles should spawn? This will wildly depend on the selected particle
    spread: 0.5 # 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.
allowed-crops:
  - BEETROOTS
  - CARROTS
  - COCOA
  - NETHER_WART
  - POTATOES
  - WHEAT
  # - PUMPKIN_STEM
  # - MELON_STEM

API

HarvestEvent - Cancellable

MethodReturnsDescription
getPlayer()PlayerReturns the player who triggered the harvest.
getBlock()BlockReturns the crop block being harvested.
isCancelled()booleanChecks if the event is cancelled.
setPlayer(Player)voidUpdates the player associated with the event.
setBlock(Block)voidUpdates the block involved in the event.
setCancelled(boolean)voidCancels or un-cancels the event.
getHandlers()HandlerListBukkit-required handler method.
getHandlerList()HandlerListBukkit-required static handler method.

ReplantEvent - Cancellable

MethodReturnsDescription
getPlayer()PlayerReturns the player who triggered the replanting.
getBlock()BlockReturns the block being replanted.
getBlockData()BlockDataReturns the BlockData being applied to the replanted block.
isCancelled()booleanChecks if the event is cancelled.
setPlayer(Player)voidUpdates the player associated with the event.
setBlock(Block)voidUpdates the block involved in the event.
setBlockData(BlockData)voidUpdates the BlockData for the replanted block.
setCancelled(boolean)voidCancels or un-cancels the event.
getHandlers()HandlerListBukkit-required handler method.
getHandlerList()HandlerListBukkit-required static handler method.

Maven


<repository>
    <id>modrinth-repo</id>
    <url>https://api.modrinth.com/maven/</url>
</repository>

<dependency>
<groupId>maven.modrinth</groupId>
<artifactId>scythe</artifactId>
<version>4.0</version>
<scope>provided</scope>
</dependency>

Gradle

exclusiveContent {
    forRepository { maven { url = "https://api.modrinth.com/maven" } }
    filter { includeGroup "maven.modrinth" }
}

dependencies {
    compileOnly 'maven.modrinth:scythe:4.0'
}

Support

If you need any help with the Scythe plugin, please open an issue on the GitHub repository or join our Discord server for support.

Последние версии

Все версии →
release

Scythe 6.1.0

6.1.0
19 мая 2025 г.5,6 тыс.Minecraft: 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3paper, purpur
Скачать
Что нового
- Added the ability to create/require a custom 'scythe' item, note that if this option is enabled, it will override the other tool options. - Added command `/scythe-item` for this, with permissions `scythe.item` and `scythe.item.others` for if someone should be able to send the item to another player - Config has a command cooldown, can be bypassed by having the `scythe.bypass.cooldown` permission Please note that if you use the Custom Scythe item, old versions will continue to be valid even after you have updated the config. Checks are done on a tag on the item so the item cannot be faked, and old versions will remain valid. Currently the way around this for things like crates and stuff would be to use the `/scythe-item <player>` as a console command, but I will be trying to figure out a better solution for those things
release

Scythe 6.0.0 - New options and config overhaul

6.0.0
3 мар. 2025 г.856Minecraft: 1.21.4, 1.21.5paper, purpur
Скачать
Что нового
# Changelog - 6.0.0 ## ⚠ Important, Config Overhaul ⚠ This update introduces a complete rewrite of the config file. The new config is meant to be clearer, more flexible, and easier to maintain and add new features to. ## ⚠ Breaking Changes ⚠ - Old values will **NOT** automatically migrate. - While the plugin will add the new options to your old config, the new comments will not carry over and everything will be put at the top, which will make the file look confusing - It is strongly recommended to delete or move your existing config to allow the plugin to generate a new one ### Changes - __Removed__ `left-click` and `right-click` categories in favor of `auto-replant` and `right-click-harvest` categories - Auto-replant configurations will now be applied regardless of which way the block was broken. Dividing into left and right click added a level of complexity that became exponentially difficult to manage as more features were added. - **New options** - `require-seeds` - whether auto-replanting requires the player to have seeds in their inventory. Will consume seeds. - `delay-ticks` - how long to delay replanting, default 1 tick. - _Moved and renamed_ all tool configurations to new `tools` section - `replant-tools` and `replant-tools-item-models` are now in this section and renamed to `enabled-tools` and `required-item-models` - Added the ability to take away tool durability on harvest and replant - **ℹ** Please note, this does not affect blocks harvested in the vanilla way, as vanilla harvesting does not remove tool durability. **ℹ** - **New options** are - `harvest-uses-durability` - right-click-harvest will use tool durability - `replant-uses-durability` - automatic replanting will use tool durability - `prevent-tool-break` - whether the plugin will prevent harvest or auto-replant if a tool is below a certain durability threshold - `minimum-durability` - the minimum durability for the previous option - _Moved and renamed_ all sound configurations to new `sounds` section - `play-sounds` has been renamed to `enabled` under the `sounds` section - `sound` has been renamed to `break-sound` - `sound-volume` has been renamed to `volume` - `sound-pitch` has been renamed to `pitch` - **New option** has been added: `plant-sound` - _Moved and renamed_ all particle configurations to new `particles` section - `break-particles` has been renamed to `enabled` under `harvest` in the `particles` section - `particle-count` has been renamed to `count` under `harvest` in the `particles` section - `particle` has been moved under `harvest` in the `particles` section - **New options**: - `harvest` section: - `spread` - how far from the center particles should go - `replant` section: - `enabled` - whether replant particles are enabled - `particle` - what particle to use for replant particles - `count` - how many particles to spawn - `spread` - how far from the center particles should go
release

Scythe 5.2.1

5.2.1
17 нояб. 2024 г.383Minecraft: 1.21.3paper, purpur
Скачать
Что нового
- Fix broken permission check for `/scythe toggle` causing the command to not work at all - Tested on 1.21.3
release

Scythe 5.2.0

5.2.0
11 нояб. 2024 г.138Minecraft: 1.21.3paper, purpur
Скачать
Что нового
- Adds MCMMO compatibility from [PR 5](https://github.com/Simplexity-Development/Scythe/pull/5) - Updated to 1.21.3
release

Scythe 5.1.1 - Fix Mappings

5.1.1
29 июн. 2024 г.881Minecraft: 1.20.5, 1.20.6, 1.21paper, purpur
Скачать
Что нового
- Fixes the mappings so that paper will not remap it. - No other changes
release

Scythe 5.1

5.1
25 июн. 2024 г.159Minecraft: 1.20.5, 1.20.6, 1.21paper, purpur
Скачать
Что нового
- Adds `left-click-replant` option, defaults to true - [Merges #4](https://github.com/Simplexity-Development/Scythe/pull/4)
release

Scythe 5.0

5.0
29 апр. 2024 г.253Minecraft: 1.20.5, 1.20.6paper, purpur
Скачать
Что нового
- Update to work on 1.20.5 - Adds a locale file - Any messages that have been altered will need to be changed in the new file `locale.yml` - `BLOCK_DUST` no longer exists, a new particle will need to be chosen if that is the one being used - Small internal changes
release

Scythe 4.0

4.0
28 мая 2023 г.658Minecraft: 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4paper, purpur
Скачать
Что нового
# Major version bump Now version 4.0 - you will need to delete and reload your config, or get the config values from [here](https://github.com/Simplexity-Development/Scythe/blob/master/src/main/resources/config.yml) > ⚠️ <b>Functionality previously provided by `scythe.use` has now been divided into `scythe.use.harvest` and `scythe.use.replant` - if you want someone to have access to both harvesting and replanting, they must now have both permissions ## What's changed: * Changes API dependency version to 1.19 * Adds event for harvesting * Adds permission for harvesting * Adds event for replanting * Adds permission for replanting * Adds event for toggle * Adds configuration for sound * Adds configuration for sound's pitch * Adds configuration for sound's volume * Adds configuration for particle * Adds configuration for particle quantity * Adds configuration for tool requirement for interact-harvest * Adds configuration for tool requirement for auto-replant * Adds configuration for tool list * Refactors new brand name * Fixes sub-commands tab-completion not respecting permissions * Adjusts sub-command logic Adds API, currently importable through modrinth ## [Javadocs](https://simplexity-development.github.io/Scythe/index.html) ### Maven ```xml <repository> <id>modrinth-repo</id> <url>https://api.modrinth.com/maven/</url> </repository> <dependency> <groupId>maven.modrinth</groupId> <artifactId>scythe</artifactId> <version>4.0</version> <scope>provided</scope> </dependency> ``` ### Gradle ```gradle exclusiveContent { forRepository { maven { url = "https://api.modrinth.com/maven" } } filter { includeGroup "maven.modrinth" } } dependencies { compileOnly 'maven.modrinth:scythe:4.0' } ```
release

Fixes issues with right click

3.1
5 янв. 2023 г.378Minecraft: 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3paper, purpur
Скачать
Что нового
Previous releases would not allow players to use right click on crops for normal tasks like placing blocks or bonemealing when `right-click-harvest` was enabled- this release fixes that **Full Changelog**: https://github.com/ADHDMC/Scythe/compare/v3.0...v3.1
release

3.0

3.0
17 дек. 2022 г.180Minecraft: 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3paper, purpur
Скачать
Что нового
There was some weird stuff with the last version, mainly that the permissions weren't documented properly and there was some hardcoded stuff I didn't notice. This release should solve those issues There is also now options for particles and sounds when crops are broken with right click **Important** Mechanics have been changed slightly. If you are able to harvest things, you won't be able to break crops that haven't fully grown. This is to fix an issue between server and client, where client would send too many break packets, and it'd break the newly placed crop. - If you want to be able to break young crops, you can use the toggle command `/scythe toggle` to turn the scythe mechanics off. - You can also restrict the mechanics to only be when someone uses a hoe, so it's less intrusive