Skip to content

Instantly share code, notes, and snippets.

@ryosuzuki
Created September 2, 2015 23:08
Show Gist options
  • Select an option

  • Save ryosuzuki/1655d501080de6e314b4 to your computer and use it in GitHub Desktop.

Select an option

Save ryosuzuki/1655d501080de6e314b4 to your computer and use it in GitHub Desktop.
craftml
<craft name="table">
<param name="length" type="int" default="50"/>
<param name="width" type="int" default="60"/>
<param name="legHeight" type="int" default="20"/>
<stack color="blue">
<!-- Top -->
<!--<sphere size="{{length}} {{width}} 5"></sphere> -->
<cylinder radius="{{length}}" height="3"/>
<!-- 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