Experimental Additions

Based on what BigFluf (211200168656240642) on Discord stated:
"If this works you should be able to change the weights in the configs to any number you like, and it'll just use those as relative chances and never add any 'filler' blocks like the stone
So for example if you have a meteor with just Black Granite with weight 1 and Iron Ore with weight 1, both would have 50% chance
Or you could put both at 1 million and it'd still be the same
Just make sure the new meteor GUI is changed in the same way if possible, otherwise the ore chances will be inaccurate"
This commit is contained in:
ScriptedPiky authored and GitHub committed 2022-03-30 13:11:45 -07:00
1 parent c72e20a7ef
commit 366a22908f
1 file changed
+3 -1
@@ -76,6 +76,8 @@ public class MeteorParadigm
float totalChance = iceChance + soulChance + obsidChance;
int randNum = world.rand.nextInt(totalMeteorWeight);
for (int i = -newRadius; i <= newRadius; i++)
{
for (int j = -newRadius; j <= newRadius; j++)
@@ -92,7 +94,7 @@ public class MeteorParadigm
continue;
}
int randNum = world.rand.nextInt(chance);
int randNum = world.rand.nextInt(totalMeteorWeight);
boolean hasPlacedBlock = false;
for (MeteorParadigmComponent mpc : componentList)