• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Soda Machine upgradeBlock to working soda machine?

TehAgent

Refugee
Ok, I havent modded this game in a very long time....but Im doing it again. Im having a weird issue where the block Im upgrading wont upgrade - it tells me that I dont have the item in my inventory....even though I do.

I started with a car battery. Did not work, so I put one car battery of every level in my inventory. Still didnt work. Changed the upgrade item to something with no levels (forged steel) and nope. Still didnt work despite me having the item in my inventory.

Heres what I did:

block name="cntVendingMachine2Broken"> <!-- SODA -->
<property name="CreativeMode" value="Player"/>
<property name="DescriptionKey" value="cntVendingMachineGroupDesc"/>
<property name="DisplayType" value="blockHardenedMulti"/>
<property name="Stacknumber" value="10"/>
<property name="Material" value="Mmetal_medium"/>
<property name="Shape" value="ModelEntity"/>
<property name="Model" value="@:Entities/Crafting/sodaVendingMachineBrokenPrefab.prefab"/>
<property name="ModelOffset" value="0,0,0"/>
<property name="MultiBlockDim" value="1,2,1"/>
<property name="ImposterExchange" value="imposterBlock" param1="143"/>
<property name="Place" value="TowardsPlacerInverted"/>
<property name="Path" value="solid"/>
<property name="IsTerrainDecoration" value="true"/>
<property name="StabilitySupport" value="false"/>
<property name="EconomicValue" value="2000"/>
<property name="Buff" value="buffShocked"/>
<property class="RepairItems">
<property name="resourceForgedSteel" value="10"/>
</property>
<drop event="Harvest" name="terrStone" count="0" tool_category="Disassemble"/>
<drop event="Harvest" name="resourceElectricParts" count="2,6" tag="salvageHarvest"/>
<drop event="Harvest" name="resourceMechanicalParts" count="2,4" tag="salvageHarvest"/>
<drop event="Harvest" name="resourceForgedIron" count="1,3" tag="salvageHarvest"/>
<drop event="Harvest" name="resourceForgedSteel" count="2,3" tag="salvageHarvest"/>
<drop event="Harvest" name="resourceScrapPolymers" count="2,5" tag="allHarvest,perkJunkMiner"/>
<drop event="Harvest" name="resourceSpring" count="1,3" tag="salvageHarvest"/>
<drop event="Destroy" name="resourceScrapIron" count="1,15"/>
<drop event="Fall" name="scrapMetalPile" count="1" prob="0.75" stick_chance="1"/>
<drop event="Destroy" count="0"/>
<property name="SortOrder1" value="B456"/>
<property name="SortOrder2" value="0002"/>
<property name="Group" value="Science"/>
<property name="FilterTags" value="MC_building,SC_electrical,SC_commercial"/>
<property name="Tags" value="challenge_elec_parts,challenge_mech_parts,challenge_steel"/>
<property name="IndexName" value="challenge_steel"/>
<property class="UpgradeBlock">
<property name="ToBlock" value="cntVendingMachine2"/>
<property name="Item" value="carBattery"/>
<property name="ItemCount" value="1"/>
<property name="UpgradeHitCount" value="4"/>
</property>

</block>

Do I need to add a downgradeBlock to the working soda machine its supposed to change in to? (Im going to try that now)

Why else would this not be working? I CAN repair it but it just wont upgrade.
 
Last edited:
If you use an odd item like a battery to do something like this, you have to add the battery to the repair tools like the stone axe as well. Look for the Allowed_upgrade_items property on those tools.
 
If you use an odd item like a battery to do something like this, you have to add the battery to the repair tools like the stone axe as well. Look for the Allowed_upgrade_items property on those tools.
OMG I actually remember that now...from the one and only Bdub too! :D

Thank you very much sir.
 
Back
Top