Community listing page, reviews may not be monitored by the author.
Greg Crops
No reviews yet
GregTech addon that allows growing materials using crops
Community voices
Reviews
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
GregCrops
GregCrops adds farmable crops for GregTech materials. Designed mainly for modpack makers.
Features:
- Works with any material - any material can be easily registered for a crop
- Fully configurable drops - you can add any item drop to a crop
- Java and KubeJS API - new crops can be added through either an addon mod or kubejs with just a single line of code
How it works
Plant a material's seed on farmland like any vanilla crop. It grows through 6 stages. At the end you can harvest it to get the crop's drop and seed.
Crops don't allow bone-mealing.
Adding Crops to Materials
Java
@SubscribeEvent
public static void materialModification(PostMaterialEvent event) {
// Default: drops raw ore of the crop's own material when mature if it exists, if not then it finds another drop (dust, ingot, etc)
GTMaterials.Copper.setProperty(GregCropPropertyKeys.SEEDS, new SeedsProperty());
// Choose a specific drop tag prefix (dust in this case)
GTMaterials.Iron.setProperty(GregCropPropertyKeys.SEEDS, new SeedsProperty(TagPrefix.dust));
// You can also use any other material as a drop
GTMaterials.Aluminium.setProperty(GregCropPropertyKeys.SEEDS,
new SeedsProperty(TagPrefix.rawOre, GTMaterials.Bauxite));
// You can also just use any other item using its id
GTMaterials.Tin.setProperty(GregCropPropertyKeys.SEEDS,
new SeedsProperty('minecraft:gunpowder'));
}
KubeJS
const $TagPrefix = Java.loadClass('com.gregtechceu.gtceu.api.data.tag.TagPrefix');
GTCEuStartupEvents.materialModification(event => {
// GregCrops exposes SeedsProperty and GregCropPropertyKeys as globals
GTMaterials.Copper.setProperty(GregCropPropertyKeys.SEEDS, new SeedsProperty());
GTMaterials.Iron.setProperty(GregCropPropertyKeys.SEEDS, new SeedsProperty($TagPrefix.dust));
GTMaterials.Aluminium.setProperty(GregCropPropertyKeys.SEEDS,
new SeedsProperty($TagPrefix.rawOre, GTMaterials.Bauxite));
GTMaterials.Tin.setProperty(GregCropPropertyKeys.SEEDS,
new SeedsProperty('minecraft:gunpowder'));
});
Overriding an Existing Crop
There is a mod config to remove all properties if you want to start from scratch.
If you don't want to start from scratch, you have to remove the property before setting a new one, same as any other GTCEu material property:
GTMaterials.Copper.removeProperty(GregCropPropertyKeys.SEEDS);
GTMaterials.Copper.setProperty(GregCropPropertyKeys.SEEDS, new SeedsProperty(TagPrefix.ingot));
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
(opens in a new tab)
Get it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources