From 366a22908f8e3a805cfd8524737d72fcb0c7d078 Mon Sep 17 00:00:00 2001 From: ScriptedPiky <41557212+ScriptedPiky@users.noreply.github.com> Date: Wed, 30 Mar 2022 13:11:45 -0700 Subject: [PATCH] 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" --- .../common/summoning/meteor/MeteorParadigm.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/summoning/meteor/MeteorParadigm.java b/src/main/java/WayofTime/alchemicalWizardry/common/summoning/meteor/MeteorParadigm.java index 0312ad96..3d26812a 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/summoning/meteor/MeteorParadigm.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/summoning/meteor/MeteorParadigm.java @@ -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)