-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathluagenmt.sh
36 lines (31 loc) · 806 Bytes
/
luagenmt.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
for FILE in *; do
# do something with $FILE
echo "minetest.register_node(\"roadsigns:$FILE\", {
description = \"$FILE\",
drawtype = \"signlike\",
tiles = { \"$FILE\" },
paramtype = \"light\",
paramtype2 = \"wallmounted\",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = \"wallmounted\",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})"
#echo "File: $FILE"
done
for FILE in *; do
echo "minetest.register_craft({
output = \"$FILE\",
recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
{'', 'default:steel_ingot', ''},
}
}) "
done