ThunderSn1per Posted November 14 Share Posted November 14 (edited) Hello all, I've been poking around the XML files and am trying to add a block that requires electricity. I've opted to just borrow the Forge template so essentially trying to add electricity to the Forge however, whenever the block is placed down everything in the world becomes impossible to interact with. I can't open the battery bank that I have next to the new Forge or anything else, can't open the Forge itself either. I can't wire them together I assume this has something to do with needing to place an electric contact point somewhere? Once I destroy the forge, everythign works fine again. Has anyone else managed this by any chance and if so, what am I doing wrong? (I have since come to find this may not be possible in just XML, what else needs doing for us to be able to do this?) Many thanks in advance! Current XML: <configs> <append xpath="/blocks"> <block name="forgeElectric"> <!-- Class --> <property name="HandleFace" value="Bottom"/> <property name="Class" value="Forge"/> <property name="Powered" value="true"/> <property class="Workstation"> <property name="CraftingAreaRecipes" value="forge"/> <property name="Modules" value="tools,output,fuel,material_input"/> <property name="InputMaterials" value="iron,brass,lead,glass,stone,clay"/> <property name="ToolNames" value="1,2,3"/> </property> <property name="RequiredPower" value="30"/> <property name="UnlockedBy" value="craftingWorkstations"/> <!-- UI_Info --> <property name="CustomIcon" value="forge"/> <property name="CreativeMode" value="Player"/> <property name="DescriptionKey" value="forgeDesc"/> <property name="WorkstationIcon" value="ui_game_symbol_forge"/> <property name="WorkstationJournalTip" value="forgeTip"/> <property name="Stacknumber" value="1"/> <!-- Visual --> <property name="Material" value="Mstone_scrap"/> <property name="Shape" value="ModelEntity"/> <property name="Model" value="Entities/Crafting/forgeWorkstationPrefab"/> <property name="MultiBlockDim" value="2,2,1"/> <property name="ImposterDontBlock" value="true"/> <property name="WaterFlow" value="permitted"/> <property name="ParticleName" value="forgeWorkstation"/> <property name="ParticleOffset" value="0,0.4,0.5"/> <!-- Placement --> <property name="Place" value="TowardsPlacerInverted"/> <property name="OnlySimpleRotations" value="true"/> <property name="Path" value="solid"/> <property name="IsTerrainDecoration" value="true"/> <property name="StabilitySupport" value="true"/> <!-- Value --> <property name="Weight" value="0"/> <property name="EconomicValue" value="1000"/> <property name="TraderStageTemplate" value="midTier0"/> <!-- Interaction --> <property name="MaxDamage" value="800"/> <property name="HeatMapStrength" value="6"/> <property name="HeatMapTime" value="5000"/> <property name="HeatMapFrequency" value="1000"/> <property name="BuffsWhenWalkedOn" value="buffBurningEnvironment"/> <property name="ActiveRadiusEffects" value="buffCampfireAOE(5)"/> <property name="OpenSound" value="forge_open"/> <property name="CloseSound" value="forge_close"/> <property name="CraftSound" value="forge_smelt_click"/> <property name="CraftCompleteSound" value="forge_item_complete"/> <property name="TakeDelay" value="15"/> <property class="RepairItems"> <property name="resourceForgedSteel" value="2"/> </property> <drop event="Harvest" name="resourceRockSmall" count="40" tag="allHarvest"/> <drop event="Harvest" name="resourceClayLump" count="20" tag="allHarvest"/> <drop event="Harvest" name="resourceLeather" count="5" tag="allHarvest"/> <drop event="Destroy" count="0"/> <drop event="Fall" name="terrDestroyedStone" count="1" prob="0.75" stick_chance="1"/> <!-- Sorting --> <property name="SortOrder1" value="B281"/> <property name="SortOrder2" value="0200"/> <property name="Group" value="Building,TCScience,advBuilding"/> <property name="Tags" value="workstationSkill"/> <property name="FilterTags" value="MC_playerBlocks,SC_electrical"/> </block> </append> </configs> Edited November 18 by ThunderSn1per (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now