Наши сервисы

Всё для ваших проектов Minecraft.

MineAssistИИ-помощник для плагинов, серверов и модов Вы здесь
MineIDЕдиный аккаунт для наших сервисов MinePayМаркет для Minecraft

Scythe

Автопересадка собранных урожаев!

10 112 скачиваний

Общее число скачиваний по данным Modrinth.

Через MineAssist за доступный период: 0

Автор: Rhythmic

О плагине Scythe

Автопересадка собранных урожаев!

Автор
Rhythmic
Лицензия
MIT License
Первая публикация
Последнее обновление
Категории
Еда, Игровые механики, Утилиты

Возможности

  • Автоматически пересаживать культуры после сбора урожая
  • Сбор полностью выросших культур правой кнопкой мыши
  • Присядьте, чтобы ломать культуры, не отключая функцию
  • Параметры конфигурации для настройки работы плагина на вашем сервере

Команды

  • /scythe toggle: Переключает функцию автоматической пересадки и сбора урожая правой кнопкой мыши для игрока, выполнившего

команду. Для этого требуется разрешение scythe.toggle.

  • /scythe reload: Перезагружает конфигурацию плагина. Для этого требуется разрешение scythe.reload.

Разрешения

  • scythe.use : Базовое разрешение для доступа к функционалу Scythe.
  • scythe.use.harvest : Позволяет игроку собирать блоки с помощью функционала Scythe
  • scythe.use.replant : Позволяет игроку автоматически пересаживать культуры с помощью функционала Scythe
  • scythe.toggle : Позволяет игроку переключать функцию для себя с помощью команды /scythe toggle.
  • scythe.reload : Позволяет игроку перезагружать конфигурацию с помощью команды /scythe reload.

Конфигурация

Примечание: в сгенерированном конфиге не так много комментариев, это просто для README/описания

#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

HarvestEvent - можно отменить

МетодВозвращаетОписание
getPlayer()PlayerВозвращает игрока, инициировавшего сбор урожая.
getBlock()BlockВозвращает блок культуры, который собирается.
isCancelled()booleanПроверяет, отменено ли событие.
setPlayer(Player)voidОбновляет игрока, связанного с событием.
setBlock(Block)voidОбновляет блок, участвующий в событии.
setCancelled(boolean)voidОтменяет или отменяет отмену события.
getHandlers()HandlerListОбработчик событий, требуемый Bukkit.
getHandlerList()HandlerListСтатический обработчик событий, требуемый Bukkit.

ReplantEvent - можно отменить

МетодВозвращаетОписание
getPlayer()PlayerВозвращает игрока, инициировавшего пересадку.
getBlock()BlockВозвращает блок, который пересаживается.
getBlockData()BlockDataВозвращает BlockData, применяемый к пересаженному блоку.
isCancelled()booleanПроверяет, отменено ли событие.
setPlayer(Player)voidОбновляет игрока, связанного с событием.
setBlock(Block)voidОбновляет блок, участвующий в событии.
setBlockData(BlockData)voidОбновляет BlockData для пересаженного блока.
setCancelled(boolean)voidОтменяет или отменяет отмену события.
getHandlers()HandlerListОбработчик событий, требуемый Bukkit.
getHandlerList()HandlerListСтатический обработчик событий, требуемый Bukkit.

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'
}

Поддержка

Если вам нужна помощь с плагином Scythe, пожалуйста, создайте issue в репозитории GitHub или присоединяйтесь к нашему серверу Discord для получения поддержки.

Совместимость Scythe

Ядра и прокси Minecraft

Поддерживаемые версии Minecraft

Нажмите на версию, чтобы посмотреть плагины для неё. Для этого плагина подберите сборку по версии Minecraft и ядру.

Теги плагина

Скачать Scythe
Установить с ИИ-агентом
Скачать вручную

Загружаем доступные релизы…