Guppycur Posted January 7, 2018 Share Posted January 7, 2018 So I was making a dirt trap (like the loose floorboards in Higashi) and wanted to share the xml's. blocks.xml <block id="17" name="grasstrap"> <property name="Class" value="TrapDoor"/> <property name="Material" value="dirt_weak"/> <property name="Shape" value="Terrain"/> <property name="Mesh" value="terrain"/> <property name="Texture" value="0,570,570,570,570,570"/> <property name="ImposterExchange" value="imposterBlock" param1="78"/> <property name="DropScale" value="1"/> <property name="LPHardnessScale" value="1"/> <property name="Map.Color" value="50,120,55"/> <property name="CanMobsSpawnOn" value="false"/> </block> materials.xml <material id="dirt_weak"> <property name="damage_category" value="earth" /> <property name="surface_category" value="earth" /> <property name="forge_category" value="earth" /> <property name="Hardness" type="float" value="1" /> <property name="stepsound" value="dirt" /> <property name="stability_glue" value="1" /> <property name="Mass" type="int" value="1" /> <property name="MaxDamage" value="1" /> <property name="Experience" value="0"/> </material> ...simply add this to your appropriate xml's and voila, walk on dirt that crumbles into a hole. I had /hoped/ to add an intemediary, so that the grass trap would downgrade into dirt, but unfortunately the downgrade happens so fast that the dirt appears before I begin falling, so I'm still on top of what is now REAL dirt. I had even tried to have it downgrade to a new air2dirt block, that would over time, upgraderated to dirt, but there is no way to make the speed upgrade fast enough to make it worth while, so it stays dirt for waaaaay too long. Stupid xml's. Anyway, if you want, have fun. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.