Skip to content

Instantly share code, notes, and snippets.

@calebhsu
Last active August 30, 2015 15:19
Show Gist options
  • Save calebhsu/de8e43592aa3bc276a9c to your computer and use it in GitHub Desktop.
Save calebhsu/de8e43592aa3bc276a9c to your computer and use it in GitHub Desktop.
Rectangular table using CraftML tags
<craft name="table">
<param name="length" type="int" default="60"/>
<param name="width" type="int" default="40"/>
<param name="legHeight" type="int" default="20"/>
<stack color="brown">
<!-- Top -->
<cube size="{{length}} {{width}} 5"></cube>
<!-- Legs -->
<row spacing="{{length - 10}}">
<repeat n="2">
<col spacing="{{width - 10}}">
<repeat n="2">
<cube size="5 5 {{legHeight}}"></cube>
</repeat>
</col>
</repeat>
</row>
</stack>
</craft>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment