The_Great_Sephiroth
Refugee
I am working on some electrical improvements for my server and things are going fairly well, but I have a few questions. Currently I am working on a better electric fence. It costs twice as much to make, has 50% more HP, less degredation from being used, and I want it to do more shock damage. I see where the buff of being shocked is applied, but how can I make this effect last longer? Could I apply the same buff twice? I can add my own shock effect if I need to and simply clone the original and add time, but I would prefer to mod as few files as possible.
Also, my electrical fuse box (acts like a relay) does not have wires going out of it and it works fine and has the correct icon both in-game when crafting and in the creative menu. My electric fence post does not. What am I doing wrong? I'll share the code I have.
That is the block, below is the localization for it. Sorry, I am American and only speak English. I do not travel.
Finally, the recipe.
So what am I missing for the electric fence-post icon in creative and workbench?
Also, my electrical fuse box (acts like a relay) does not have wires going out of it and it works fine and has the correct icon both in-game when crafting and in the creative menu. My electric fence post does not. What am I doing wrong? I'll share the code I have.
Code:
<block name="DHTA_Elec_Fence">
<property name="CreativeMode" value="Player"/>
<property name="DescriptionKey" value="DHTA_Elec_Fence_Desc"/>
<property name="Class" value="ElectricWire"/>
<property name="UnlockedBy" value="perkAdvancedEngineering,electricfencepostSchematic"/>
<property name="Material" value="Mmetal_weak"/>
<property name="StabilitySupport" value="false"/>
<property name="Shape" value="ModelEntity"/>
<property name="Mesh" value="models"/>
<property name="MaxDamage" value="300"/>
<property name="DamageReceived" value="0.25"/>
<property name="Model" value="Entities/Electrical/electric_fencePrefab"/> <property name="HandleFace" value="Bottom"/>
<property class="RepairItems"> <property name="resourceElectricParts" value="1"/> <property name="resourceScrapIron" value="1"/> </property>
<property name="DisplayType" value="blockElectricalMulti"/>
<property name="MultiBlockDim" value="1,2,1"/>
<property name="ImposterDontBlock" value="true"/>
<property name="Collide" value="movement,melee,bullet,arrow,rocket"/>
<property name="RequiredPower" value="5"/>
<property name="Buff" value="buffShocked"/>
<property name="BuffChance" value="1"/>
<property name="Group" value="Tools/Traps,Science"/>
<property class="RepairItems">
<property name="resourceForgedIron" value="8"/>
<property name="resourceElectricParts" value="2"/>
</property>
<drop event="Harvest" name="terrStone" count="0" tool_category="Disassemble"/>
<drop event="Harvest" name="resourceElectricParts" count="0,1" tag="salvageHarvest"/>
<drop event="Harvest" name="resourceScrapIron" count="5,40" tag="allHarvest"/>
<drop event="Destroy" count="0"/>
<drop event="Fall" name="scrapMetalPile" count="1" prob="0.75" stick_chance="1"/>
<property name="EconomicValue" value="62"/>
<property name="FilterTags" value="fdecor,felectrical,ftraps"/>
<property name="SortOrder1" value="70a0"/>
</block>
That is the block, below is the localization for it. Sorry, I am American and only speak English. I do not travel.
Code:
DHTA_Elec_Fence,blocks,Electricity,,,Electric Fence Post,,,,,,,,,
DHTA_Elec_FenceDesc,blocks,Electricity,,,Wire up two or more of these and shock your enemies.,,,,,,,,,
Finally, the recipe.
Code:
<recipe name="DHTA_Elec_Fence" count="1" craft_area="workbench" tags="perkAdvancedEngineering,learnable">
<ingredient name="resourceForgedIron" count="10"/>
<ingredient name="resourceElectricParts" count="4"/>
<effect_group>
<passive_effect name="CraftingIngredientCount" level="0,1,2,3,4" operation="perc_add" value=".5,.5,.5,.3,.15" tags="resourceForgedIron,resourceElectricParts"/>
</effect_group>
</recipe>
So what am I missing for the electric fence-post icon in creative and workbench?
Last edited by a moderator: