Generating craft example images
Most modders preffer sharing the work they did on the forum. Showing players how to craft stuff is part of that. We often see things like:
s = stick
x = stone
e = empty
Craft
e s e
e x e
e e e
It is nicer to see images as symbols. Imagemagick allows the appending of images.
I wrote a simple bash script to get this project started. It uses imagemagick (sudo apt-get install imagemagick). Here it is:
An example of a result is:

Another would be

I'm looking forward on developing this further so it would automagically generate crafts with the input of an init.lua. Any suggestions on the best way to do this?
s = stick
x = stone
e = empty
Craft
e s e
e x e
e e e
It is nicer to see images as symbols. Imagemagick allows the appending of images.
I wrote a simple bash script to get this project started. It uses imagemagick (sudo apt-get install imagemagick). Here it is:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
convert \( $1 $2 $3 +append \) \
\( $4 $5 $6 +append \) \
\( $7 $8 $9 +append \) \
-background none -append "craft_$10.png"
An example of a result is:

Another would be

I'm looking forward on developing this further so it would automagically generate crafts with the input of an init.lua. Any suggestions on the best way to do this?