Skip to content

Instantly share code, notes, and snippets.

@calebhsu
Last active August 30, 2015 15:19
Show Gist options
  • Save calebhsu/01dd61977ccbd31e6783 to your computer and use it in GitHub Desktop.
Save calebhsu/01dd61977ccbd31e6783 to your computer and use it in GitHub Desktop.
Simple box using CraftML tags
<craft name="box">
<param name="width" type="int" default="30"/>
<param name="length" type="int" default="30"/>
<param name="height" type="int" default="30"/>
<g>
<stack>
<content></content>
<cube size="{{length}} {{width}} 3" t="translate(3,0,0)"/>
</stack>
<row spacing="{{length}}">
<repeat n="2">
<cube size="3 {{width}} {{height}}"/>
</repeat>
</row>
<col spacing="{{width}}" t="translate(0,-3,0)">
<repeat n="2">
<cube size="{{length + 6}} 3 {{height}}"/>
</repeat>
</col>
</g>
</craft>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment