Compare commits

...

5 Commits

Author SHA1 Message Date
Lars Müller 824714d23d
Delete test.lua 2017-12-21 22:31:28 +01:00
Lars Müller c6442c8636
Add files via upload 2017-12-21 22:31:03 +01:00
Lars Müller 9e82397ec2
Update init.lua 2017-12-21 22:30:12 +01:00
Lars Müller 84d4e17cf6
Rename baubles_xmas_ball.obj to baubles_bauble.obj 2017-12-21 22:24:15 +01:00
Lars Müller 3ae635ca44
Delete test.obj 2017-12-21 22:09:18 +01:00
16 changed files with 9 additions and 11 deletions

View File

@ -284,19 +284,19 @@ function register_all_items(r_steps, g_steps, b_steps, a, extreme, itemname, ite
end
end
THEMES={star={"Star","xmas_balls_theme_star.png"},heart={"Heart","xmas_balls_theme_heart.png"},snowflake={"Snowflake","xmas_balls_theme_ice.png"},christmas_tree={"Christmas Tree","xmas_balls_theme_xmas_tree.png"}, snow={"Snow", "xmas_balls_theme_snow.png"}, candle={"Candle", "xmas_balls_theme_candle.png"}, present={"Present", "xmas_balls_theme_present.png"}}
SIZES={large={"Large", 0.03, "xmas_balls_size_large.png"}, medium={"Medium", 0.02, "xmas_balls_size_medium.png"}, small={"Small", 0.01, "xmas_balls_size_small.png"}}
THEMES={star={"Star","baubles_theme_star.png"},heart={"Heart","baubles_theme_heart.png"},snowflake={"Snowflake","baubles_theme_ice.png"},christmas_tree={"Christmas Tree","baubles_theme_xmas_tree.png"}, snow={"Snow", "baubles_theme_snow.png"}, candle={"Candle", "baubles_theme_candle.png"}, present={"Present", "baubles_theme_present.png"}}
SIZES={large={"Large", 0.03, "baubles_size_large.png"}, medium={"Medium", 0.02, "baubles_size_medium.png"}, small={"Small", 0.01, "baubles_size_small.png"}}
MAXIMUM_SIZE=0.03
for name1, texpath in pairs(THEMES) do
for name2, a in pairs(SIZES) do
b=a[2]/2*32
register_all_nodes(2,2,2, 100, true, "xmas_balls:xmas_ball_"..name1.."_"..name2 , {
description = "Xmas Ball, "..texpath[1]..", "..a[1],
register_all_nodes(2,2,2, 100, true, "baubles:bauble_"..name1.."_"..name2 , {
description = "Bauble, "..texpath[1]..", "..a[1],
paramtype2="facedir",
tiles = {"xmas_balls_ball.png#color^xmas_balls_circle.png^"..texpath[2]},
inventory_image = "xmas_balls_ball.png#color^xmas_balls_circle.png^"..texpath[2].."^"..a[3],
wield_image = "xmas_balls_ball.png#color^xmas_balls_circle.png^"..texpath[2],
tiles = {"baubles_ball.png#color^baubles_circle.png^"..texpath[2]},
inventory_image = "baubles_ball.png#color^baubles_circle.png^"..texpath[2].."^"..a[3],
wield_image = "baubles_ball.png#color^baubles_circle.png^"..texpath[2],
light_source=8,
visual_scale=a[2],
wield_scale={x=a[2]/MAXIMUM_SIZE,y=a[2]/MAXIMUM_SIZE,z=a[2]/MAXIMUM_SIZE},
@ -319,9 +319,9 @@ for name1, texpath in pairs(THEMES) do
},
},
drawtype="mesh",
mesh="xmas_balls_xmas_ball.obj",
mesh="baubles_bauble.obj",
groups = {oddly_breakable_by_hand=1},
drop = "xmas_balls:xmas_ball_"..name1.."_"..name2
drop = "baubles:bauble_"..name1.."_"..name2
}, true, true)
end
end

View File

@ -1 +0,0 @@

BIN
textures/baubles_ball.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

BIN
textures/baubles_circle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

View File

@ -1 +0,0 @@