Not Sure as to why this is not working. the item downgrades and places the item but for some reason the Alt item dose not get places dose this function not work when downgrading?
Adding this to a Core Block Item This works it is Spawning the "spawner"....
This is not when the spawner is placed by the Downgraded item the "PlaceAltBlockValue" dose not work... But in Dev mode if i place this block by hand it works??? Is there any why i can get this same function to work from the "DowngradeBlock" action?
Adding this to a Core Block Item This works it is Spawning the "spawner"....
Code:
<append xpath="/blocks/block[@name='BLOCKITEMTOEDIT']">
<property name="DowngradeBlock" value="spawner" />
</append>
Code:
<append xpath="/blocks">
<block name="spawner">
<property name="CustomIcon" value="ICON" />
<property name="IsDeveloper" value="true" />
<property name="Material" value="airEnhanced" />
<property name="Shape" value="Invisible" />
<property name="Texture" value="250" />
<property name="CanMobsSpawnOn" value="false" />
<property name="IsTerrainDecoration" value="true" />
<property name="PlaceAltBlockValue" value="spawner_v1,spawner_v2" />
</block>
<block name="spawner_v1">
<property name="CustomIcon" value="ICON" />
<property name="IsDeveloper" value="false" />
<property name="Class" value="PlantGrowing" />
<property name="Material" value="airEnhanced" />
<property name="Shape" value="Invisible" />
<property name="Texture" value="250" />
<property name="CanMobsSpawnOn" value="false" />
<drop event="Destroy" count="0" />
<property name="IsTerrainDecoration" value="true" />
<property name="PlantGrowing.Next" value="ITEMTOGROW" />
<property name="PlantGrowing.GrowthRate" value="5" />
<property name="PlantGrowing.FertileLevel" value="0" />
<property name="PlantGrowing.IsRandom" value="false" />
</block>
<block name="spawner_v2">
<property name="CustomIcon" value="ICON" />
<property name="IsDeveloper" value="false" />
<property name="Class" value="PlantGrowing" />
<property name="Material" value="airEnhanced" />
<property name="Shape" value="Invisible" />
<property name="Texture" value="250" />
<property name="CanMobsSpawnOn" value="false" />
<drop event="Destroy" count="0" />
<property name="IsTerrainDecoration" value="true" />
<property name="PlantGrowing.Next" value="ITEMTOGROW" />
<property name="PlantGrowing.GrowthRate" value="5" />
<property name="PlantGrowing.FertileLevel" value="0" />
<property name="PlantGrowing.IsRandom" value="false" />
</block>
</append>
Last edited by a moderator: