Перейти к содержимому
Mineforgian

Effortless Harvest

Right-click crops to harvest & replant them!

Загрузки
4K
Подписчики
9
Обновлён
25 августа 2024 г.
Лицензия
GPL-3.0-only

Опубликован 26 февраля 2024 г.

Effortless Harvest

A small datapack to harvest plants without breaking them

Features

Right-click fully grown crops – excluding pepos – with a Diamond or Netherite Hoe to harvest them

  • Crop is replanted
  • One seed is removed for compensation
  • Respects Fortune enchantment of the hoe

⚠︎ Due to limitations of the interaction entity, harvesting can happen at a max rate of 5 crops/s if you hold right-click. To harvest faster, you'll need to spam.

Core Principles

Ray Cast

  • Creates and moves a 'ray' from each player holding a hoe to find a suitable crop
  • Creates an interaction entity at the crop's location

Interaction

  • The interaction entity checks if the UUID of its creator and the person who clicked it match
  • If they do, the crop will be harvested

Комментарии

Загружаем…