Open kashgummaraju opened 4 months ago
This issue is not really needed. The card on the projects board includes this description.
This issue is not really needed. The card on the projects board includes this description.
Yeah it is the same card, I moved it from the Archived rewrite repo
Introduction:
Below is intended to explain how fossil ore generation should work and how the fossils received by these ores should behave.
The team has further plans for fossils than what is written in this issue, but for all intents and purposes this is the minimum requirements for fossils to do their job in a Beta version of the mod
Fossil Ore & Fossils:
Pieces:
Types of pieces include: skull (generally unique to each dinosaur), neck_long, neck_short, ribcage, foot, arm, leg_quadruped, leg_biped, tail, spine, wing, leaf, trunk
There are also some unique creatures sprites, ex: Spinosaurus neural spines, stegosaurus plates, and the skull of each creatures
Piece sets: Piece sets define a pool of pieces that can belong to one fossil type, for example t-rex is a biped, so it would contain the biped piece set below:
Periods:
Periods are what defines the depth and overall rarity of a fossil, the older the time period the deeper and more rare the fossil.
Rarity:
The rarity of a fossil can be calculated pretty easily, it is the typical rarity of MC ores, since this is relative let's assign 1 to that. Then you multiply that by the rarity of the fossils belonging to it's period, then you take it's weight compared to other fossils in that period as a percentage decimal and multiply that, then finally the weight of that specific piece in the set, finally multiply that by the weight of the quality of the fossil. Ex: MC ore rarity: 1 Period Rarity: .5 Weight of type: 2 of 12 = .166 (2/12) Weight of piece: 1 of 8 = .125 weight of quality: 5 of 10 = .5 Total rarity = 1 .5 .166 .125 .5 = 0.51% chance of an ore in this chunk generating as this specific
[quality] [species] [piece] [type]
, se summary for naming of fossils in the inventory.Summary:
This will in turn generate many variations of fossil blocks, and fossils:
Common Tyrannosaurus Skull Fossil
Perfect Velociraptor Claw Fossil
With silk touch:Perfect Deepslate Velociraptor Claw Fossil
Perfect Amber Piece
Perfect Footprint Trace Fossil
Configurability:
It is important that these values be configurable so that modpack creators can customize the rarities of these creatures, and so that we can balance the mod if someone on the team does not understand code.
These configuration files can be combined into one file if that's preferred, but I split them up for the sake of this example. Also note that these files are incomplete and will need to be populated with every dinosaur, plant, etc. in the mod.
_orequalities.toml:
periods.toml:
_fossilsets.toml:
fossils.toml:
_amberrarities.toml
_tracefossils.toml