Jump to content

Needing help with a custom block


Wgbh1974

Recommended Posts

I'm trying to add a glass wedge tip and a glass half block but i've never done this before I have added recipes for things already in the game (ex) control panels and blue doors and I'm not new to changing codes but I'm not sure what to do with this any help in pointing me in the right direction will be greatly appreciated thanks in advance

Link to comment
Share on other sites

Hello Wgbh1974.

 

I'm new around here and to 7D2D mods.

 

Compile with SDX Launcher.

 

This worked for me.

 

<configs>

<config name="blocks">

<append xpath="/blocks">

<block id="" name="glassHalfBlock">

<property name="Material" value="glass" />

<property name="Shape" value="New" />

<property name="LightOpacity" value="1" />

<property name="Model" value="cube_half" />

<property name="CustomIcon" value="ui_game_symbol_pipe90" />

<property name="Mesh" value="transparent" />

<property name="Texture" value="285" />

<property name="DescriptionKey" value="glassGroupDesc" />

<drop event="Destroy" name="brokenGlass" count="1,4" />

</block>

</append>

</config>

</configs>

 

I copied Block 280 and changed <property name="Model" value="cube_glass" /> to <property name="Model" value="cube_half" /> also I added a custom Icon <property name="CustomIcon" value="glassHalfBlockIcon" />

As for the wedge tip, if there is a block like it in the game already, you can extend it and change it to glass.

 

If it is a custom shape, you will have to create it out side the game in a 3D package like Blender, Maya, etc.

 

Like I said, I'm new around here, I'm sure someone will have something better then this.

Link to comment
Share on other sites

Thanks

 

Hello Wgbh1974.

 

I'm new around here and to 7D2D mods.

 

Compile with SDX Launcher.

 

This worked for me.

 

<configs>

<config name="blocks">

<append xpath="/blocks">

<block id="" name="glassHalfBlock">

<property name="Material" value="glass" />

<property name="Shape" value="New" />

<property name="LightOpacity" value="1" />

<property name="Model" value="cube_half" />

<property name="CustomIcon" value="ui_game_symbol_pipe90" />

<property name="Mesh" value="transparent" />

<property name="Texture" value="285" />

<property name="DescriptionKey" value="glassGroupDesc" />

<drop event="Destroy" name="brokenGlass" count="1,4" />

</block>

</append>

</config>

</configs>

 

I copied Block 280 and changed <property name="Model" value="cube_glass" /> to <property name="Model" value="cube_half" /> also I added a custom Icon <property name="CustomIcon" value="glassHalfBlockIcon" />

As for the wedge tip, if there is a block like it in the game already, you can extend it and change it to glass.

 

If it is a custom shape, you will have to create it out side the game in a 3D package like Blender, Maya, etc.

 

Like I said, I'm new around here, I'm sure someone will have something better then this.

 

Thanks I'll need to create a few custom icons but it definitely worked like a charm

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...