Ore Stone Variants

Adds stone type-specific, normal, and dense variants for all vanilla ores; configurable.
Back to Files

Ore Stone Variants - 5.0 Beta 1

File nameore_stone_variants-5.0-b1.jar
Uploader
personthecatpersonthecat
Uploaded
Oct 26, 2019
Downloads
9.0K
Size
237.3 KB
Mod Loaders
Forge
File ID
2816537
Type
B
Beta
Supported game versions
  • 1.14.4
  • 1.14.3

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:ore-stone-variants-287538:2816537")

Learn more about Curse Maven

What's new

Ore Stone Variants 5.0

  • Ore Stone Variants was 100% rewritten from scratch for 1.14. Virtually no code was reused from the original mod.
  • The new version includes 90% of the features from the original mod, with support for a few still in progress.

Internal / Technical

  • The mod was rewritten with a stronger focus on null-safety and immutability.
    • Hopefully, this will lead to fewer issues and improve the code's overall maintainability.
  • The mod's namespace was changed from ore_stone_variants to just osv.
    • Seing as this mod has such long registry names, this should make reading and writing them a bit easier.

Hjson

  • Much like Cave Generator, OSV now embraces Hjson as its go-to format for handling presets and other miscellaneous configurations. 
    • For those who don't know, Hjson is a superset of standard JSON format which aims to be easier to read. Because it aims to be backward compatible with JSON files, it is a bit more complicated in terms of how much it can do, but it's overall far less picky and, again, can be substituted with regular JSON for those who are more comfortable with that.
  • In addition to presets now using the Hjson file format, the standard mod config file(s) now also use it. 
    • This is because Forge now uses the TOML file format as the default configuration format. While this format is great, certain things such as string arrays are much more verbose. For people who just want to quickly add new entries to the block registry in the config file, Hjson will be your best friend. There's no need to escape strings with double quotes or use commas or other delimiters when entries are separated by lines.

Configuration

  • The config file's categories have been flattened. The new layout should be much easier to take in.
  • To be consistent with the new Forge conventions, there are now two separate config files, one for client-specific configurations, and another for everything else.
  • The config file's new implementation in-code should enable GUI / in-game support as soon as this gets added by Forge.
  • There is no longer an option to generate new ore presets in the config file. The next update will add this in the form of a command, instead.
  • Stone generation variables have been removed from the config file. You can now create presets inside of ./config/osv/stone/ to control generation of any stone / ore clusters. See below for more information.

Presets

  • The preset format has been majorly overhauled.
  • Preset names are no longer important. No more string hacks.
  • Presets have been relocated to ./config/osv/ores/.
  • Presets now exist by default. You no longer need to create new presets to modify the properties of existing ores. Just modify the ones that are already there and delete them if you want to start over.
  • No more separate configurations for ore features, drop features, and world generation features. These have been flattened into a single file per ore.
  • There are a ton of new properties. You essentially get full control over Block.Properties, which is used in-code for handling basic blocks that don't need their own advanced implementations.
  • See /ores/TUTORIAL.hjson for more information on writing presets.

Stone Properties

  • You can create new new stone presets inside of ./config/osv/stone/ to control how stone clusters spawn in the world or even add new stone clusters.
  • Stone presets are a modified version of standard ore presets. They simply lack all of the features related to block properties, loot tables, recipes, etc. and only include the block's registry name and world generation variables.
  • See /stone/TUTORIAL.hjson for more information on writing stone presets.

Block Registry

  • The block registry is almost identical to that of previous versions.
  • .* can no longer be used to retrieve all states of a block.
    • This is because of the blockstate flattening that ocurred in 1.13. Just add multiple states to a new block group, if you need to reuse them.
  • Multiple variants are no longer registered to individual blocks. This is to allow each ore to have multiple states, e.g. lit vs. unlit or dense vs. not.

Block Models

  • OSV features a much more advanced dynamic model system than before.
  • Block models are now a composite of multiple separate block models, each of which may render in a separate layer. Only the overlay renders in the transparent block render layer.

Texture Generation

  • The texture extraction algorithm was tweaked a little bit. It seems to produce nicer shaded textures and works a bit more consistently than before. 

To-do

  • Automatic ore preset generation using a new command syntax.
  • Dynamic ore properties. You have to create presets again, for now.
  • Large cluster mode. Just override vein sizes manually.
  • Help me find bugs! You can report them on GitHub and help me squash them as quickly as possible before the next release.

This mod has no additional files