Please help me figure out how to get substitution to work....
GIVE ME AN EXAMPLE. Nothing is clear to me at this point.
Here's a full example of several types of distribution, including changing mountains from stone to dirt, deepening dirt to level 50, removing all water, and turning the ground in levels 60-80 to glass.
Each distribution has a different group of settings, so I hope this provides you the examples you need to make sense of the Substitution distribution.
Additionally, by "Sprocket," I was referring to a utility I wrote that takes a simple INI-style file, and generates a full, working XML file, so you don't have to do all the heavy lifting. You can find it here. Oh, and here's the INI file I used to generate the above Substitution Test file.
Oh, and if you use the water-removal config in the above test file, be prepared to wait a while; the world creation can take some time (It took me 10 minutes to generate a world using all Substitution tests enabled...the result produced a truly alien world.), because all air will be turned to water before it is turned back into air... All the way from level 0 to 255
<Substitute name = 'fig 10' block='stone' maxHeight='64'>
<Replaces block="dirt"/>
</Substitute>
</ConfigSection>
Figure explanation:
Figure 1: This replaces any block that isn't water into stone. This is so that I can generate caves within stone blocks without having interference with other blocks.
Figure 2: This replaces any block below y 50 that is air into stone. (To avoid replacing air with stone above ground.)
Figure 3: This replaces any gravel into dirt (So that when the cave veins are generated, they don't cut through into the ocean, making a water opening).
Figure 4: This replaces water with stone below y 30. I still find water underground and I don't know why. But it's very rare.
-
Figure 5:
This is a cave vein which is a motherlode that spawns around 45y give or take a few blocks. The size of branches are around 137 blocks long, with a slight angle and pitch variance. I'm not sure if their pitch or angle even matters, or inclination. They affect the branching FROM the point of the motherlode origin rather than the curvature of the vein.
-
Chance per chunk is 3-4%. This is because the length of branches can cross 3-7 chunks. 3-4% is between 1/20 and 1/30 chance to spawn. If you take the cross potential as a radius, that's a 14x14 area a motherlode can cover max. 14x14, with a branch's maximum reach of 7 chunks is 1/28 chance in 14x14 chunks.
Take that, and add another 1/28 per amount of branches, and every chunk you come across will have a 10% chance of containing a vein (At it's average height). 3-4% chance to spawn could be toned down slightly, but odds of vein crisscross are very very low below 10% chance.
-
.008% of blocks are clay instead of air. This is supposed to let me know which vein is which.
Segment Radius is 1.7. This is a comfortable size for caves. Although the walls, ceiling, and ground contain distortion/noise meaning that the ragged edges stick out. (Stone gets in the way and is an obstacle, or Air pokes down oddly and you fall into a 1x1x1 gap, and is an obstacle. :P)
Figure 6:
The position of this cave branching is around y36 with a range of 13. I like this to have a potential placement near the figure 5 setup so that I have bulky cave nodes that collide with the skinnier ones, leading up away from the lower veins.
Segment Radius is 2.2 with a range of 0.2. I want these noticeable bulkier than the skinnier veins.
8% chance dirt is placed instead of air for being able to spot this vein. These will obviously be removed later on.
Chance to spawn: 3.2%. This vein has a smaller branch length, meaning it would be around 5% chance per chunk to contain it's branches. I want this simply because of the slight difference in vein size, and I don't want it to create too much empty space making spotting of ore distribution types so obvious, you could mine through walls of caves into the next cave wall and so on.
Figure 7:
This is another skinny cave branch distribution. The spawn height is 43 with a range of 7. So it's as low as 36 up to 50. Height limit could be changed. If it's kept to 30, and a motherlode is spawned at 50, that's a potential for a branch to reach into stone blocks that exist above 65y (Hills).
7% spawn chance. More frequent than Fig 5's chance, however this is across the 36-50y spawn gap, so it can collide with fig 5's often enough to make diverse cave intersections and cool nodes to mine inside as a player.
UNIFORM type.
Figure 8:
About the same as Figure 7, with NORMAL type.
Figure 9:
These are generated around y13. Height limited to 15 per branch deviation. So at most, a branch can reach up into 30y.
Spawn chance 5%. Low height spawns. Yay.
The reason I have 4 or 5 different vein distributions like this instead of just one with a totaled chance from these veins, is because I want to segregate motherlode position and branching angle/pitch/length characteristics. For instance, Crisscross between different vein types, and then have those particular vein distributions contain child veins that can occur as a result.
Figure 10:
This turns all the dirt that was gravel into stone so that after caves have been generated, they are encapsulated by what was gravel before under the ocean. (I changed this before I corrected the dirt spawn in figure 6.
I found kind of a hacky way to get something to generate 'near' a specific block.
What I've noticed so far, is that if you generate a distribution, or at least try, if it contains a child, it MUST have removed at least one block before the child can be generated, or else the generation is skipped. That is what I'm assuming.
If you want to generate near the surface of dirt at any level where the dirt touches sunlight, you can try:
<DistributionType block='grass'>
<Replaces block='grass'/> <- There is the key!
<ChildDistribution block='target block near grass'>
//The height of this distribution may matter, because if height is ignored, you could replace stone near bedrock instead of near the grass block.
//This is why I make multiple of the same sort of thing, but require the parent type to define it's specific height's too.
</ChildDistribution>
</DistributionType>
Easy enough I guess. You could use something like this to spawn near certain ores just by making the parent type remove and replace that specific ore. It's frequency of generation for the ore could be 1 per chunk, however if there is more than one of that ore in the chunk, find a way to encapsulate the parent to avoid making the frequency higher than your cpu can handle, but the child distribution can certainly be specified.
Oh also, nothin quite like spiky ellipsoid quartz deposits
(In regard to a mod that gives realistic animal genetics):
Would you really rather have bees that make diamonds and oil with magical genetic blocks?
... did I really ask that?
Here's a full example of several types of distribution, including changing mountains from stone to dirt, deepening dirt to level 50, removing all water, and turning the ground in levels 60-80 to glass.
Each distribution has a different group of settings, so I hope this provides you the examples you need to make sense of the Substitution distribution.
Additionally, by "Sprocket," I was referring to a utility I wrote that takes a simple INI-style file, and generates a full, working XML file, so you don't have to do all the heavy lifting. You can find it here. Oh, and here's the INI file I used to generate the above Substitution Test file.
Oh, and if you use the water-removal config in the above test file, be prepared to wait a while; the world creation can take some time (It took me 10 minutes to generate a world using all Substitution tests enabled...the result produced a truly alien world.), because all air will be turned to water before it is turned back into air... All the way from level 0 to 255
I hope this helps!
ty ty ty ^^
Now my mind is no longer mush typing random stuff in
Okay, so I've been enjoying messing around with this mod.
The config for veins is great for making caves (Replacing blocks with Air).
This is the config I've been using to make caves...
<ConfigSection>
<Substitute name = 'fig 1' block='stone' maxHeight='60' minHeight='1'>
<Replaces block="dirt"/>
<Replaces block='bedrock'/>
<Replaces block="flowing_lava"/>
<Replaces block='lava'/>
<Replaces block='lava_source'/>
<Replaces block="dirt"/>
<Replaces block="ProjRed|Esploration:projectred.exploration.stone"/>
<Replaces block='water' weight='-1'/>
</Substitute>
<Substitute name='fig 2' block='stone' maxHeight ='50'>
<Replaces block='air'/>
</Substitute>
<Substitute name='fig 3' block='dirt'>
<Replaces block='gravel'/>
</Substitute>
<Substitute name='fig 4' block='stone' maxHeight='30'>
<Replaces block='water'/>
<Replaces block='flowing_water'/>
<Replaces block='water_source'/>
</Substitute>
<Veins name='fig 5' inherits='PresetLayeredVeins' branchType='Bezier'>
<OreBlock block='air' weight='0.992'/>
<OreBlock block='clay' weight='0.008'/>
<Setting name='MotherlodeFrequency' avg=':= 0.038'/>
<Setting name='MotherlodeRangeLimit' avg='64' range='32' type='inverse'/>
<Setting name='MotherlodeHeight' avg='40' range='3' type='normal'/>
<Setting name='BranchFrequency' avg='3' range='1'/>
<Setting name='MotherlodeSize' avg=':= 1' range=':= 0'/>
<Setting name='BranchLength' avg='137' range='60'/>
<Setting name='SegmentLength' avg='7' range='3'/>
<Setting name='SegmentForkFrequency' avg='0'/> 4
<Setting name='SegmentRadius' avg=':=1.70' range=':= 0'/>
<Setting name='BranchHeightLimit' avg='30'/>
<Setting name='BranchInclination' avg='0.0' range='0.4'/>
<Setting name='SegmentAngle' avg='0.0' range='0.3' />
<Setting name='SegmentPitch' avg='0.0' range='0.3'/>
<Setting name='OreDensity' avg='1' range='0'/>
<Replaces block='stone'/>
<Replaces block='ProjRed|Esploration:projectred.exploration.stone'/>
<Replaces block='monster_egg'/>
<Replaces block='flowing_water'/>
<Replaces block='flowing_lava'/>
<Replaces block='water' weight='-1'/>
<Replaces block='lava'/>
<Replaces block='lava_source'/>
</Veins>
<Veins name='fig 6' inherits='PresetLayeredVeins' branchType='Bezier'>
<OreBlock block='air' weight='0.92'/>
<OreBlock block='dirt' weight='0.08'/>
<Setting name='MotherlodeFrequency' avg=':= 0.032'/>
<Setting name='MotherlodeHeight' avg='36' range='13' type='inverseAbs'/>
<Setting name='BranchFrequency' avg='3' range='1'/>
<Setting name='MotherlodeSize' avg=':= 1' range=':= 0'/>
<Setting name='BranchLength' avg='67' range='20'/>
<Setting name='SegmentLength' avg='7' range='3'/>
<Setting name='SegmentForkFrequency' avg='0'/>
<Setting name='SegmentRadius' avg=':=2.2' range=':= 0.2'/>
<Setting name='BranchHeightLimit' avg='30'/>
<Setting name='BranchInclination' avg='0.0' range='0.4'/>
<Setting name='SegmentAngle' avg='0.0' range='0.3' />
<Setting name='SegmentPitch' avg='0.0' range='0.3'/>
<Setting name='OreDensity' avg='1' range='0'/>
<Replaces block='stone'/>
<Replaces block='ProjRed|Esploration:projectred.exploration.stone'/>
<Replaces block='monster_egg'/>
<Replaces block='flowing_water'/>
<Replaces block='flowing_lava'/>
<Replaces block='water' weight='-1'/>
<Replaces block='lava'/>
<Replaces block='lava_source'/>
</Veins>
<Veins name='fig 7' inherits='PresetLayeredVeins' branchType='Bezier'>
<OreBlock block='air' weight='0.992'/>
<OreBlock block='clay' weight='0.008'/>
<Setting name='MotherlodeFrequency' avg=':= 0.06'/>
<Setting name='MotherlodeRangeLimit' avg='64' range='32' type='uniform'/>
<Setting name='MotherlodeHeight' avg='43' range='4' type='normal'/>
<Setting name='BranchFrequency' avg='3' range='1'/>
<Setting name='MotherlodeSize' avg=':= 1' range=':= 0'/>
<Setting name='BranchLength' avg='137' range='60'/>
<Setting name='SegmentLength' avg='7' range='3'/>
<Setting name='SegmentForkFrequency' avg='0'/>
<Setting name='SegmentRadius' avg=':=1.80' range=':= 0'/>
<Setting name='BranchHeightLimit' avg='30'/>
<Setting name='BranchInclination' avg='0.0' range='0.4'/>
<Setting name='SegmentAngle' avg='0.0' range='0.3' />
<Setting name='SegmentPitch' avg='0.0' range='0.3'/>
<Setting name='OreDensity' avg='1' range='0'/>
<Replaces block='stone'/>
<Replaces block='ProjRed|Esploration:projectred.exploration.stone'/>
<Replaces block='monster_egg'/>
<Replaces block='flowing_water'/>
<Replaces block='flowing_lava'/>
<Replaces block='water' weight='-1'/>
<Replaces block='lava'/>
<Replaces block='lava_source'/>
</Veins>
<Veins name='fig 8' inherits='PresetLayeredVeins' branchType='Bezier'>
<OreBlock block='air' weight='0.992'/>
<OreBlock block='clay' weight='0.008'/>
<Setting name='MotherlodeFrequency' avg=':= 0.07'/>
<Setting name='MotherlodeRangeLimit' avg='64' range='32' type='normal'/>
<Setting name='MotherlodeHeight' avg='43' range='7' type='normal'/>
<Setting name='BranchFrequency' avg='3' range='1'/>
<Setting name='MotherlodeSize' avg=':= 1' range=':= 0'/>
<Setting name='BranchLength' avg='137' range='60'/>
<Setting name='SegmentLength' avg='7' range='3'/>
<Setting name='SegmentForkFrequency' avg='0'/>
<Setting name='SegmentRadius' avg=':=1.70' range=':= 0'/>
<Setting name='BranchHeightLimit' avg='20'/>
<Setting name='BranchInclination' avg='0.0' range='0.4'/>
<Setting name='SegmentAngle' avg='0.0' range='0.3' />
<Setting name='SegmentPitch' avg='0.0' range='0.3'/>
<Setting name='OreDensity' avg='1' range='0'/>
<Replaces block='stone'/>
<Replaces block='ProjRed|Esploration:projectred.exploration.stone'/>
<Replaces block='monster_egg'/>
<Replaces block='flowing_water'/>
<Replaces block='flowing_lava'/>
<Replaces block='water' weight='-1'/>
<Replaces block='lava'/>
<Replaces block='lava_source'/>
</Veins>
<Veins name='fig 9' inherits='PresetLayeredVeins' branchType='Bezier'>
<OreBlock block='air' weight='0.992'/>
<OreBlock block='sand' weight='0.008'/>
<Setting name='MotherlodeFrequency' avg=':= 0.05'/>
<Setting name='MotherlodeRangeLimit' avg='64' range='32' type='normal'/>
<Setting name='MotherlodeHeight' avg='13' range='2' type='normal'/>
<Setting name='BranchFrequency' avg='3' range='1'/>
<Setting name='MotherlodeSize' avg=':= 1' range=':= 0'/>
<Setting name='BranchLength' avg='137' range='60'/>
<Setting name='SegmentLength' avg='7' range='3'/>
<Setting name='SegmentForkFrequency' avg='0'/>
<Setting name='SegmentRadius' avg=':=1.70' range=':= 0'/>
<Setting name='BranchHeightLimit' avg='15'/>
<Setting name='BranchInclination' avg='0.07' range='0.4'/>
<Setting name='SegmentAngle' avg='0.0' range='0.3' />
<Setting name='SegmentPitch' avg='0.0' range='0.3'/>
<Setting name='OreDensity' avg='1' range='0'/>
<Replaces block='stone'/>
<Replaces block='ProjRed|Esploration:projectred.exploration.stone'/>
<Replaces block='monster_egg'/>
<Replaces block='flowing_water'/>
<Replaces block='flowing_lava'/>
<Replaces block='water' weight='-1'/>
<Replaces block='lava'/>
<Replaces block='lava_source'/>
</Veins>
<Substitute name = 'fig 10' block='stone' maxHeight='64'>
<Replaces block="dirt"/>
</Substitute>
</ConfigSection>
Figure explanation:
Figure 1: This replaces any block that isn't water into stone. This is so that I can generate caves within stone blocks without having interference with other blocks.
Figure 2: This replaces any block below y 50 that is air into stone. (To avoid replacing air with stone above ground.)
Figure 3: This replaces any gravel into dirt (So that when the cave veins are generated, they don't cut through into the ocean, making a water opening).
Figure 4: This replaces water with stone below y 30. I still find water underground and I don't know why. But it's very rare.
-
Figure 5:
This is a cave vein which is a motherlode that spawns around 45y give or take a few blocks. The size of branches are around 137 blocks long, with a slight angle and pitch variance. I'm not sure if their pitch or angle even matters, or inclination. They affect the branching FROM the point of the motherlode origin rather than the curvature of the vein.
-
Chance per chunk is 3-4%. This is because the length of branches can cross 3-7 chunks. 3-4% is between 1/20 and 1/30 chance to spawn. If you take the cross potential as a radius, that's a 14x14 area a motherlode can cover max. 14x14, with a branch's maximum reach of 7 chunks is 1/28 chance in 14x14 chunks.
Take that, and add another 1/28 per amount of branches, and every chunk you come across will have a 10% chance of containing a vein (At it's average height). 3-4% chance to spawn could be toned down slightly, but odds of vein crisscross are very very low below 10% chance.
-
.008% of blocks are clay instead of air. This is supposed to let me know which vein is which.
Segment Radius is 1.7. This is a comfortable size for caves. Although the walls, ceiling, and ground contain distortion/noise meaning that the ragged edges stick out. (Stone gets in the way and is an obstacle, or Air pokes down oddly and you fall into a 1x1x1 gap, and is an obstacle. :P)
Figure 6:
The position of this cave branching is around y36 with a range of 13. I like this to have a potential placement near the figure 5 setup so that I have bulky cave nodes that collide with the skinnier ones, leading up away from the lower veins.
Segment Radius is 2.2 with a range of 0.2. I want these noticeable bulkier than the skinnier veins.
8% chance dirt is placed instead of air for being able to spot this vein. These will obviously be removed later on.
Chance to spawn: 3.2%. This vein has a smaller branch length, meaning it would be around 5% chance per chunk to contain it's branches. I want this simply because of the slight difference in vein size, and I don't want it to create too much empty space making spotting of ore distribution types so obvious, you could mine through walls of caves into the next cave wall and so on.
Figure 7:
This is another skinny cave branch distribution. The spawn height is 43 with a range of 7. So it's as low as 36 up to 50. Height limit could be changed. If it's kept to 30, and a motherlode is spawned at 50, that's a potential for a branch to reach into stone blocks that exist above 65y (Hills).
7% spawn chance. More frequent than Fig 5's chance, however this is across the 36-50y spawn gap, so it can collide with fig 5's often enough to make diverse cave intersections and cool nodes to mine inside as a player.
UNIFORM type.
Figure 8:
About the same as Figure 7, with NORMAL type.
Figure 9:
These are generated around y13. Height limited to 15 per branch deviation. So at most, a branch can reach up into 30y.
Spawn chance 5%. Low height spawns. Yay.
The reason I have 4 or 5 different vein distributions like this instead of just one with a totaled chance from these veins, is because I want to segregate motherlode position and branching angle/pitch/length characteristics. For instance, Crisscross between different vein types, and then have those particular vein distributions contain child veins that can occur as a result.
Figure 10:
This turns all the dirt that was gravel into stone so that after caves have been generated, they are encapsulated by what was gravel before under the ocean. (I changed this before I corrected the dirt spawn in figure 6.
That's about it so far.
I found kind of a hacky way to get something to generate 'near' a specific block.
What I've noticed so far, is that if you generate a distribution, or at least try, if it contains a child, it MUST have removed at least one block before the child can be generated, or else the generation is skipped. That is what I'm assuming.
If you want to generate near the surface of dirt at any level where the dirt touches sunlight, you can try:
<DistributionType block='grass'>
<Replaces block='grass'/> <- There is the key!
<ChildDistribution block='target block near grass'>
//The height of this distribution may matter, because if height is ignored, you could replace stone near bedrock instead of near the grass block.
//This is why I make multiple of the same sort of thing, but require the parent type to define it's specific height's too.
</ChildDistribution>
</DistributionType>
Easy enough I guess. You could use something like this to spawn near certain ores just by making the parent type remove and replace that specific ore. It's frequency of generation for the ore could be 1 per chunk, however if there is more than one of that ore in the chunk, find a way to encapsulate the parent to avoid making the frequency higher than your cpu can handle, but the child distribution can certainly be specified.
Oh also, nothin quite like spiky ellipsoid quartz deposits
I've found out that you cannot tweak Mettalurgy 3 ores in any way. You just don't see them in the menu, nor as the mod. Any kind of fix available?
Thanks.
The default configs support only Metallurgy 4. But perhaps you could use Sprocket to generate your own set of configs for Metallurgy 3.
Well I am using Meattalurgy 4, and I still don't see the config...
I mean, I see the Meattalurgy.xml file, but I can't configure anything in the "Custom ore Generation" tab when creating a new world.
That usually means that Metallurgy was not detected. This can mean one of two things:
If you're using Metallurgy 4, you might want to check the configuration made with Sprocket. You can find it here.
I do have Metallurgy 4 installed, and I do see it in game, it works. I don't know what might be the problem?
Are you getting any sort of exception in your log?
well,I don't have any quartz generated in nether,how could I do?
[quote=noogenesis;../../../members/noogenesis;1291128-custom-ore-generation-first-revival?comment=1646]
Are you getting any sort of exception in your log?
Nope, everything seems fine in the log. I'll try once more.
? I thought COG's default configs ignored the nether. Have you changed anything?
* Promoting this week: Captive Minecraft 4, Winter Realm. Aka: Vertical Vanilla Viewing. Clicky!
* My channel with Mystcraft, and general Minecraft Let's Plays: http://www.youtube.com/user/Keybounce.
* See all my video series: http://www.minecraftforum.net/forums/minecraft-editions/minecraft-editions-show-your/2865421-keybounces-list-of-creation-threads
(In regard to a mod that gives realistic animal genetics):
Would you really rather have bees that make diamonds and oil with magical genetic blocks?
... did I really ask that?
em..I have not changed anything,But I can only found 1/10 the amount of nether quartz.Is any mod that changed its generation?
I have COG,COFHcore,thaumcraft,ic2,pr,bc6,rc9.6,tic installed
If you remove just COG from your configuration, does generation return to normal? Can't think of any reason why COG would be affecting this.
It's COFHcore, you need to disable the option of changing the vanilla ore generation in the config.
How does this work with Gregtech 5? Does it generate gregtech ores?
Yes, it does. In more realistic patterns.
So would tin still only generate above y = 80 or would it generate more freely?