Genflower

Genflower

World gen & loot utils library for datapacks and mods.

by
1.9K Downloads
fabricforgeneoforgequiltlibraryutilityworldgen
Rent Server with this Mod

About this Mod

A small worldgen and loot utility library for mods and datapacks

What does it add?

Genflower adds two new structure processors and a loot function to help speed up the development of datapacks,
allowing one to do things that weren't possible, were difficult or tedious before with vanilla's processors.

Loot Functions

Set Random Potion genflower:set_random_potion

A potion randomiser function for potions found in brewing stands and chests.

  • potions: A potion->weight map expressed in one of two ways:
    • Map of ID to Weight: {"minecraft:luck": 1}
    • Object-in-List: [{"data":"minecraft:luck","weight":1}]

The weight field is optional and defaults to 1 when using the object-in-list notation.

Example JSON file
// data/useyourname/loot_tables/chests/your_loot.json -> /pools[]
{
	"entries": [
		{
			"type": "minecraft:item",
			"functions": [
				{
					"function": "genflower:set_random_potion",
					"potions": {
						"minecraft:long_invisibility": 1,
						"minecraft:invisibility": 5
					}
				}
			],
			"name": "minecraft:potion"
		},
		{
			"type": "minecraft:item",
			"functions": [
				{
					"function": "genflower:set_random_potion",
					"potions": [
						{
							"data": "minecraft:long_invisibility",
							"weight": 1
						},
						{
							"data": "minecraft:invisibility",
							"weight": 5
						}
					]
				}
			],
			"name": "minecraft:splash_potion"
		}
	]
}

Structure Processors

Block Map genflower:block_map

A block to blocks mapping to reduce the verbosity of structure processors.

  • block_map: A block to list of blocks map used for replacing blocks.
  • probability: The likelihood of a block being replaced with a new one.
    • Scale of 0-1, defaults to 1.
Example JSON file
// data/useyourname/worldgen/processor_list/your_processor.json
{
	"processors": [
		{
			"processor_type": "genflower:block_map",
			"block_map": {
				"minecraft:cobweb": ["minecraft:air"],
				"supplementaries:ash": ["minecraft:air"]
			}
		},
		{
			"processor_type": "genflower:block_map",
			"block_map": {
				"minecraft:deepslate_bricks": [
					"minecraft:cobbled_deepslate",
					"minecraft:deepslate_brick_stairs",
					"minecraft:deepslate_brick_slab"
				],
				"minecraft:lantern": ["wilderwild:display_lantern"],
				"minecraft:deepslate_brick_stairs": [
					"minecraft:deepslate_brick_slab"
				],
				"minecraft:mangrove_stairs": [
					"minecraft:mangrove_slab",
					"minecraft:cobweb"
				],
				"minecraft:anvil": [
					"minecraft:chipped_anvil",
					"minecraft:damaged_anvil"
				]
			},
			"probability": 0.25
		}
	]
}

Loot genflower:loot

A worldgen-time loot applicator for blocks that have inventories but don't support the LootTable NBT tag.

  • loot_table: A loot table to apply to given blocks
  • blocks: An allowed list of blocks to inject loot into.
  • slots: How many slots the block normally supports.
  • probability: The likelihood of a block having the loot table applied.
    • Scale of 0-1, defaults to 1.
Example JSON file
// data/useyourname/worldgen/processor_list/your_processor.json
{
	"processors": [
		{
			"processor_type": "genflower:loot",
			"loot_table": "useyourname:chests/library_bookshelves",
			"blocks": ["minecraft:chiseled_bookshelf"],
			"slots": 6,
			"probability": 0.8
		},
		{
			"processor_type": "genflower:loot",
			"loot_table": "useyourname:chests/library_brewing_stands",
			"blocks": ["minecraft:brewing_stand"],
			"slots": 3
		}
	]
}

Available Versions

0.1.0 - Forge 1.20.1release
MC 1.20, 1.20.1forge, neoforge
January 17, 2024
0.1.0 - Fabric 1.20.1release
MC 1.20, 1.20.1fabric, quilt
January 17, 2024

How to Install Genflower on Your Server

1

Order Server

Order a Minecraft Java server with at least 4 GB RAM (6 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.1).

3

Install Mod

Open the mod browser in the dashboard and search for "Genflower". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricforgeneoforgequilt

Minecraft Versions

1.20.1, 1.20

Server-side

Required

Recommended RAM

6 GB(min. 4 GB)

Frequently Asked Questions

Genflower server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 4 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.

Is Genflower compatible with fabric and forge and neoforge and quilt?

Genflower officially supports fabric, forge, neoforge, quilt for Minecraft 1.20.1, 1.20. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Genflower – how to optimize performance?

Recommended RAM: 6 GB (per 5 players). Use /spark profiler to check if Genflower consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Genflower with just one click on your server.

Recommended RAM
6 GBab €12/mo
Min. 4 GB | +1 GB pro 5 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
Apache License 2.0
Server-side
Required

Supported Versions

1.20.11.20