Loading...
Beta Modpages Unclaimed

Omgen

Modpackers util that allows for data-driven customizable cobblegen-like generators.

0 Likes
1272 Downloads
Created by omgaxd

Description

Omgen is a mod, that uses JSON to create "Generation entries". Those entries consist of a condition (for example, what fluids must interact, where should they be in relation to each other etc.), and the generation itself - all the possible blocks/block tags that could generate with a certain weight.
This mod is intended for use of Forge modpackers. It's not perfectly tested yet - but that will be done in the future.
It supports JEI too - every single generation entry you create will be displayed in JEI:

(Image will be added soon)

I'm a modpacker. How do I add a generation entry?

Just like you would do in a datapack with data/minecraft/recipes/myrecipe.json, put your json file into this directory: data/omgen/gens/myentry.json
Your JSON file should follow this format:

Go to the image link to grab code.

{

"primary": "minecraft:flowing_lava",

"secondary": "#minecraft:water",

"secondary_pos":"Neighbour",

"gens": [

[100, "minecraft:cobblestone"],

[2, "minecraft:deepslate"]

],

"priority": 100

}

 

Available keywords are (< > is must, [ ] is may):
<primary> : Fluid ID or Tag that represents the main fluid .
[secondary]: The second fluid ID or Tag, that represents the other fluid (may not use, which means no second fluid needed for interaction).
[secondary_pos]: Represents the way liquids must interact in order for conversion to happen:
- "Neighbour", "N", "n" or 1: Newly placed liquid block must be neighbouring with the secondary fluid.
- "Replace", "R", "r" or 2: Newly placed liquid block must attempt to override the secondary fluid block (for example, drop onto it from above).
- "Doesntmatter", "D", "d" or 3: Both variants listed above work.
Defaults to "Doesntmatter".
[above]: Block ID or Tag that represents block ABOVE the interaction point.
[below]: Block ID or Tag that represents block BELOW the interaction point.
[around]: List of block IDs or Tags that represent blocks that may be AROUND the interaction point. Order doesn't matter. Count here must not be bigger than 4. Repetitions are allowed if you want multiple blocks of same kind.
[priority]: Positive integer that represents priority of targeted gen over others in case of conflict. Larger number represents larger priority. Defaults to 100.
[min_height]: Sets the minimal height at which interaction must happen for the generation to occur. Defaults to current world's minimal build height limit if not specified.
[max_height]: Sets the maximal height at which interaction must happen for the generation to occur. Defaults to current world's maximal build height limit if not specified.
<gens>: List of lists, where first element is a weight (how often this block/block tag should appear in relation to others), and second element is Block ID or Tag itself.

If you want to use Tag anywhere, you MUST put # in beginning: "minecraft:oak_log" is a block, "#minecraft:logs_that_burn" is a tag.

If priorities of two or more conflicting gens are equal, only one of these gens occur randomly with equal chances.

A short showcase video that shows how some possible entries work: https://youtu.be/vV8fa0XR4Wc


AD Become Premium to remove Ads!

What means Verified?

  • Compatibility: The mod should be compatible with the latest version of Minecraft and be clearly labeled with its supported versions.
  • Functionality: The mod should work as advertised and not cause any game-breaking bugs or crashes.
  • Security: The mod should not contain any malicious code or attempts to steal personal information.
  • Performance: The mod should not cause a significant decrease in the game's performance, such as by causing lag or reducing frame rates.
  • Originality: The mod should be original and not a copy of someone else's work.
  • Up-to-date: The mod should be regularly updated to fix bugs, improve performance, and maintain compatibility with the latest version of Minecraft.
  • Support: The mod should have an active developer who provides support and troubleshooting assistance to users.
  • License: The mod should be released under a clear and open source license that allows others to use, modify, and redistribute the code.
  • Documentation: The mod should come with clear and detailed documentation on how to install and use it.

AD Become Premium to remove Ads!

How to Install

1

Download Forge & Java

Download Forge from the offical Site or here. If you dont have Java installed then install it now from here. After Downloading Forge you can run the file with Java.

2

Prepare

Lounch Minecraft and select your Forge istallation as Version this will create a Folder called Mods.

3

Add Mods

Type Win+R and type %appdata% and open the .minecraft Folder. There will you find your Folder called Mods. Place all Mods you want to play in this Folder

4

Enjoy

You are now Ready. Re-start your Game and start Playing.

More Mods like this

Controlling

Adds a search bar to the Key-Bindings menu

Crafting Tweaks

Allows you to rotate, balance or clear the crafting matrix by the press of a button, in any (supported) crafting window.

Client Tweaks

There, I fixed Minecraft for you. Various optional tweaks to improve Minecraft Quality of Life.

TrashSlot

Adds a trash slot to the inventory screen that allows deletion of unwanted items.

TipTheScales

Allows for more options when adjusting the GUIScale option as well as making it a slider.

Configured

Automatic in-game configuration menus for every mod!

Charm

A vanilla+ mod inspired by Quark, adding lots of small things to the game.