Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

[Tools] Customizing ore returns on voxel destruction.

Discussion in 'Modding' started by Northboundfox, Feb 14, 2017.

  1. Northboundfox

    Joined:
    Feb 14, 2017
    Messages:
    1
    Trophy Points:
    1
    How do I reduce ore returns on voxels? I'm trying to change a pick I'm designing to destroy a voxel with every swing, but i can't change the amount of stone it gives back, only whether it gives me stone/iron/something else. The tradeoff with this pic is that it'll destroy most of the material it hits in favor of mining speed overall.

    Code:
    <Mining>
        <MinedOre>Stone</MinedOre>
        <HitCount>1</HitCount> 
        <PhysicalItemId Type="Component" Subtype="LargeStone" /> 
        <RemovedRadius>.75</RemovedRadius>
        <OnlyApplyMaterial>false</OnlyApplyMaterial> 
    </Mining>
    
    Ideally I want a return of 1 large stone per complete <HitCount>, but only with this tool I'm working on. Changing radius and hitcount does nothing, I still get 6 components (large stone) every swing. Adding another PhysicalItemId just doubles it, as one would expect. Although I could just remove all item collection on this pick I'll also need to know this later for some other tools I'm planning.

    Is this feature currently configurable? I understand I'm pretty much asking the game to vaporize materials, but I'd still like to try.
     
  2. Sir_Moodz

    Joined:
    Dec 19, 2013
    Messages:
    132
    Trophy Points:
    97
    Find the Voxelmaterials file and change <MinedOreRatio>6</MinedOreRatio>

    This will change it for all tools, if you want only your tool, it will take some more work.
    You will have to put every voxel material to ratio 1, then for each tool add the stones or iron ore
    like they did for iron ore:
    Code:
    <Mining>
              <MinedOre>IronPoor</MinedOre>
              <HitCount>10</HitCount>
              <PhysicalItemId Type="Component" Subtype="LargeStone" />
              <PhysicalItemId Type="Component" Subtype="LargeStone" />
              <PhysicalItemId Type="Component" Subtype="LargeStone" />
              <PhysicalItemId Type="Component" Subtype="LargeStone" />
              <PhysicalItemId Type="Component" Subtype="LargeStone" />
              <PhysicalItemId Type="Component" Subtype="IronOre" />
              <RemovedRadius>0.25</RemovedRadius>
              <OnlyApplyMaterial>false</OnlyApplyMaterial>
            </Mining>
     
  3. Coggernaut

    Joined:
    Sep 7, 2015
    Messages:
    57
    Trophy Points:
    37
    I think their is also something in VoxelMaterials.sbc, but I could be wrong