// FarmCraft | [1.21] | [Fully Custom Crops] \\ icon

// FarmCraft | [1.21] | [Fully Custom Crops] \\ -----

Plant & Harvest Fully Custom Crops! Customizable Growing Process!



Requested By: ItsGamingSoni

FarmCraft
Purpose : Have you ever wanted to create custom crops which can visually be seen progressing with time? With FarmCraft, now you can! If used in conjunction with FoodLol or UltimateFoods, you can create farmable, edible custom foods! FarmCraft seeds require tilled dirt aka soil aka farmland just like normal seeds.

Requirements :

Features
Customizable seed item : This can range anywhere from changing an vanilla seed's information to match what you want, to using a fully custom textured item to truly appear as a real custom seed.
⟿ Required light, water, and xp levels : Customize the required light, water, and xp levels needed to plant a seed.
⟿ Required grow time : Each crop can have a customized grow time.
⟿ Custom growing stages : You can customize at indicated percentages of the overall growing process

  • the crop's textured head to visually changes to indicate growth change
  • the crop's drops if broken at that point of growth
Hologram information : Right click the crop to get a hologram of who planted it, growth percent, and potential drops of broken at current stage.
⟿ Custom crop base : Customize the base of each crop for visual diversity!
⟿ Cross-plugin compatibility : Specify items which are clones of other plugins' items such as UltimateFoods, creating fully edible custom crops.
[​IMG]
⟿ [1.3]
- Fixed misaligned crop head. It is now centered.
- Fixed leaves being troublesome and disappearing.
- Added right click support. Now either a configurable chat message will be sent or a configurable holographic display will be shown depending on what you have configured.
[​IMG]
- Added a reload command. I've heard your cries. Have it my children.
- Command help formatting is now fixed.
⟿ [1.4]
- Added seed drops configurable & found in config.yml
⟿ [1.5]
- Added custom skull textures for fully custom textured items without a custom resource pack
⟿ [1.20.1.a.1]
- Simply updated to work for MC 1.20 after like 3 years, sorry
⟿ [1.20.4.a.3]
- Added text color gradient support in RGB and LCH color spaces
(if you don't know what this means, just use the RGB version or try both and see which you think looks better). To use gradients...
-
1. To mark the START of the gradient: "&>LCH#000000" where 000000 represents the hex code of the left color.
2. Add your text. No spaces are necessary, simply start adding your text right after the left marker.
3. To mark the END of the gradient: "&<LCH#000000" where 000000 represents the hex code of the right color.
-
An example of a gradient is:
"&>LCH#ff0000Testing Message&<LCH#0000ff"
This should appear as a gradient from red to blue. If you wish for RGB, simply replace the two "LCH" with "RGB".
⟿ [1.21.0.b.1]
- Added customizable base block. Leaves are no longer forced.
- Added creeper explosion auto-support.
⟿ [1.21.0.b.1]
- Added support for custom persistent data via yml item creation, allowing for a large majority of other plugins creating custom edible food or drinks to be compatible with FarmCraft.
⟿ [1.21.0.d.1]
- Added messages.yml allowing servers to customize plugin messages.
⟿ [1.21.0.d.2]
- Made it so crop base block does not get un-tilled back into dirt each plant. Now they stay tilled if they were tilled before planting.


Commands
/farmcraft seedfix - No Permission - Because seeds were intended to be custom textured tools, you can only by default have stacks of one. This will combine all seeds in the inventory into a single stack. This is now outdated as custom textures no longer require tools.

/farmcraft list - "farmcraft.admin" - List all currently loaded crops.

/farmcraft reload - "farmcraft.admin" - I refuse to explain this.


/farmcraft give <crop> (player) (amount) - "farmcraft.admin" - Give crop(s).

/farmcraft purge <crop> - "farmcraft.admin" - Remove all of a crop.

Explanation
Basics :
Each crop starts with:
Code (Text):

Grow_Time:
Seed:
Harvests:
You can optionally add if you wish to use them:
Code (Text):
Required_Light:
Require_Water_Radius:
Required_XP:
Leaf_Block_Material:
Grow_Time - The time in seconds the crop will take to grow
Seed - The item which the crop is planted with. Item configurations are explained below.
Harvests - Configuration for harvest stages. Explained below.
Required_Light - Number from 0-15 indicating how strong the light source is on the location which you are growing your crop
Require_Water_Radius - Farthest search will go for a water source block
Required_XP - The amount of XP the player must have
Leaf_Block_Material - The material the base block will have. Purely aesthetic. Recommended to be something easily broken for more realistic "crop" behavior.

Item Configuration :
Bold = REQUIRED Not Bold = OPTIONAL​
id: DIRT OPTIONS
amount: 1
name: "Dirt"
lore:
- "Lore Line 1"
- "Lore Line 2"
enchantments:
- UPDATED ENCHANTMENT LIST FOUND @ https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html
- "aquaaffinity:1"
- "baneofarthropods:1"
- "blastprotection:1"
- "channeling:1"
- "cleaving:1"
- "curseofbinding:1"
- "curseofvanishing:1"
- "depthstrider:1"
- "efficiency:1"
- "featherfalling:1"
- "fireaspect:1"
- "fireprotection:1"
- "flame:1"
- "fortune:1"
- "frostwalker:1"
- "impaling:1"
- "infinity:1"
- "knockback:1"
- "looting:1"
- "loyalty:1"
- "luckofthesea:1"
- "lure:1"
- "mending:1"
- "multishot:1"
- "piercing:1"
- "power:1"
- "projectileprotection:1"
- "protection:1"
- "punch:1"
- "quickcharge:1"
- "respiration:1"
- "riptide:1"
- "sharpness:1"
- "silktouch:1"
- "smite:1"
- "soulspeed:1"
- "sweepingedge:1"
- "swiftsneak:1"
- "thorns:1"
- "unbreaking:1"
- "windburst:1"
tags:
- "textureskull:SKINVALUE"
- "playerskull:\PLAYERNAME"
- "vanilladurability:256"
- "unbreakable:true"
- "custommodeldata:1234567"
- "enchantglow:true"
flags:
- "HIDE_ATTRIBUTES"
- "HIDE_DESTROYS"
- "HIDE_ENCHANTS"
- "HIDE_PLACED_ON"
- "HIDE_POTION_EFFECTS"
- "HIDE_UNBREAKABLE"
attributes:
- "ATTRIBUTE:VALUE:OPERATION"
- "ATTRIBUTE:VALUE:OPERATION:SLOT"
- ATTRIBUTE NAMES FOUND @ https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.html
- ATTRIBUTE OPERATIONS FOUND @ https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/AttributeModifier.Operation.html
- ATTRIBUTE SLOTS FOUND @ https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/EquipmentSlot.html
custompersistentdata:
- "namespace:key:value"

Harvests :
Harvests represent stages in the crop's growth cycle. They begin with a random identifier. Let's start with '1'.
Code (Text):
Harvests:
 1:
Each harvest stage requires
Code (Text):
percent:
headtexture:
IT IS REQUIRED THAT YOU INCLUDE A 0% AND 100% HARVEST CONFIGURATION. Optionally you can add as many items as you wish. Items are configured the same as described above.
percent - The number from 1-100 representing the percentage at which the crop enters this stage of growth

Harvest "headtexture"
For THIS configuration location specifically, refer here: https://minecraft-heads.com. [​IMG]

Texture W/ Resource Pack Explanation:
  1. Understand https://www.planetminecraft.com/for...ring/new-1-14-custom-item-models-tuto-578834/ and how it works.
  2. Incorporate that into the configuration.

Donations
I'm just a college student trying to eat. This is just a hobby. You have no need to give me money. However, if you honestly enjoy/use my work and/or wish to help pay for my overpriced books and classes, that would be extremely appreciated.
-_- https://paypal.me/AaronSkeels -_-
Resource Information
Author:
----------
Total Downloads: 14,023
First Release: Nov 26, 2017
Last Update: Oct 25, 2024
Category: ---------------
All-Time Rating:
27 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings