new snow texture
@ -3,3 +3,4 @@ epic weather block
|
|||||||
# License
|
# License
|
||||||
|
|
||||||
* **textures/epic_weather_rain.png** CC BY-SA (3.0) by paramat https://github.com/paramat/snowdrift
|
* **textures/epic_weather_rain.png** CC BY-SA (3.0) by paramat https://github.com/paramat/snowdrift
|
||||||
|
* **textures/epic_weather_snowflake*.png** CC BY-SA (3.0) by paramat https://github.com/paramat/snowdrift
|
||||||
|
16
snow.lua
@ -9,21 +9,21 @@ local function do_snow(player)
|
|||||||
minetest.add_particlespawner({
|
minetest.add_particlespawner({
|
||||||
amount = 500,
|
amount = 500,
|
||||||
time = 5,
|
time = 5,
|
||||||
minpos = vector.add(ppos, {x=-20, y=5, z=-20}),
|
minpos = vector.add(ppos, {x=-20, y=10, z=-20}),
|
||||||
maxpos = vector.add(ppos, {x=20, y=10, z=20}),
|
maxpos = vector.add(ppos, {x=20, y=10, z=20}),
|
||||||
minvel = {x=0.5, y=-1, z=0},
|
minvel = {x=0, y=-1.5, z=0},
|
||||||
maxvel = {x=1, y=-3, z=0},
|
maxvel = {x=0, y=-2, z=0},
|
||||||
minacc = {x=0, y=0, z=0},
|
minacc = {x=0, y=0, z=0},
|
||||||
maxacc = {x=0, y=0, z=0},
|
maxacc = {x=0, y=0, z=0},
|
||||||
minexptime = 1,
|
minexptime = 6,
|
||||||
maxexptime = 5,
|
maxexptime = 6,
|
||||||
minsize = 20,
|
minsize = 1,
|
||||||
maxsize = 30.7,
|
maxsize = 1.4,
|
||||||
collisiondetection = true,
|
collisiondetection = true,
|
||||||
collision_removal = true,
|
collision_removal = true,
|
||||||
object_collision = true,
|
object_collision = true,
|
||||||
vertical = true,
|
vertical = true,
|
||||||
texture = "epic_weather_snow.png",
|
texture = "epic_weather_snowflake" .. math.random(1, 12) .. ".png",
|
||||||
playername = player_name
|
playername = player_name
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
Before Width: | Height: | Size: 787 B |
BIN
textures/epic_weather_snowflake1.png
Normal file
After Width: | Height: | Size: 104 B |
BIN
textures/epic_weather_snowflake10.png
Normal file
After Width: | Height: | Size: 105 B |
BIN
textures/epic_weather_snowflake11.png
Normal file
After Width: | Height: | Size: 105 B |
BIN
textures/epic_weather_snowflake12.png
Normal file
After Width: | Height: | Size: 105 B |
BIN
textures/epic_weather_snowflake2.png
Normal file
After Width: | Height: | Size: 104 B |
BIN
textures/epic_weather_snowflake3.png
Normal file
After Width: | Height: | Size: 102 B |
BIN
textures/epic_weather_snowflake4.png
Normal file
After Width: | Height: | Size: 104 B |
BIN
textures/epic_weather_snowflake5.png
Normal file
After Width: | Height: | Size: 105 B |
BIN
textures/epic_weather_snowflake6.png
Normal file
After Width: | Height: | Size: 105 B |
BIN
textures/epic_weather_snowflake7.png
Normal file
After Width: | Height: | Size: 104 B |
BIN
textures/epic_weather_snowflake8.png
Normal file
After Width: | Height: | Size: 105 B |
BIN
textures/epic_weather_snowflake9.png
Normal file
After Width: | Height: | Size: 105 B |