Last active
August 30, 2015 15:19
-
-
Save calebhsu/de8e43592aa3bc276a9c to your computer and use it in GitHub Desktop.
Rectangular table using CraftML tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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