mirror of
https://repo.or.cz/minetest_pedology.git
synced 2024-12-29 11:20:17 +01:00
Add snowball item and snowball node drops
This commit is contained in:
parent
26d553fb2c
commit
cc0d5fff03
10
init.lua
10
init.lua
@ -453,6 +453,11 @@ pedology.register_sucky_group("gravel_coarse", "coarse gravel", "big stone",
|
|||||||
2, 0, 1, 1, {500, 750, 1000}, 1, sound_gravel_coarse, { crumbly = 1, sun_dry = 1 })
|
2, 0, 1, 1, {500, 750, 1000}, 1, sound_gravel_coarse, { crumbly = 1, sun_dry = 1 })
|
||||||
|
|
||||||
--[[ snow and ice ]]
|
--[[ snow and ice ]]
|
||||||
|
minetest.register_craftitem("pedology:lump_snow", {
|
||||||
|
description = "snow ball",
|
||||||
|
wield_image = "pedology_lump_snow.png",
|
||||||
|
inventory_image = "pedology_lump_snow.png",
|
||||||
|
})
|
||||||
|
|
||||||
-- TODO: slushy snow is very instable snow; it should be destroyed when touched
|
-- TODO: slushy snow is very instable snow; it should be destroyed when touched
|
||||||
minetest.register_node("pedology:snow_slush", {
|
minetest.register_node("pedology:snow_slush", {
|
||||||
@ -461,6 +466,7 @@ minetest.register_node("pedology:snow_slush", {
|
|||||||
sounds = { footstep = { name = "pedology_snow_soft_footstep", gain = 1 } },
|
sounds = { footstep = { name = "pedology_snow_soft_footstep", gain = 1 } },
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = { crumbly = 1, level = 1, melts = 1, falling_node = 1},
|
groups = { crumbly = 1, level = 1, melts = 1, falling_node = 1},
|
||||||
|
drop = "",
|
||||||
freezemelt = "pedology:water_fresh_source",
|
freezemelt = "pedology:water_fresh_source",
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -470,6 +476,7 @@ minetest.register_node("pedology:snow_soft", {
|
|||||||
sounds = { footstep = { name = "pedology_snow_soft_footstep", gain = 1 } },
|
sounds = { footstep = { name = "pedology_snow_soft_footstep", gain = 1 } },
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = { crumbly = 2, level = 2, melts = 1, falling_node = 1 },
|
groups = { crumbly = 2, level = 2, melts = 1, falling_node = 1 },
|
||||||
|
drop = "pedology:lump_snow 1",
|
||||||
freezemelt = "pedology:water_fresh_source",
|
freezemelt = "pedology:water_fresh_source",
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -479,6 +486,7 @@ minetest.register_node("pedology:snow", {
|
|||||||
sounds = { footstep = { name = "pedology_snow_footstep", gain = 0.9 } },
|
sounds = { footstep = { name = "pedology_snow_footstep", gain = 0.9 } },
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = { crumbly = 3, level = 3, melts = 1, falling_node = 1 },
|
groups = { crumbly = 3, level = 3, melts = 1, falling_node = 1 },
|
||||||
|
drop = "pedology:lump_snow 2",
|
||||||
freezemelt = "pedology:water_fresh_source",
|
freezemelt = "pedology:water_fresh_source",
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -488,6 +496,7 @@ minetest.register_node("pedology:snow_packing", {
|
|||||||
sounds = { footstep = { name = "pedology_snow_footstep", gain = 1 } },
|
sounds = { footstep = { name = "pedology_snow_footstep", gain = 1 } },
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = { crumbly = 3, level = 3, melts = 1 },
|
groups = { crumbly = 3, level = 3, melts = 1 },
|
||||||
|
drop = "pedology:lump_snow 3",
|
||||||
freezemelt = "pedology:water_fresh_source",
|
freezemelt = "pedology:water_fresh_source",
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -497,6 +506,7 @@ minetest.register_node("pedology:snow_firn", {
|
|||||||
sounds = { footstep = { name = "pedology_ice_white_footstep", gain = 0.7 } },
|
sounds = { footstep = { name = "pedology_ice_white_footstep", gain = 0.7 } },
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = { crumbly = 2, cracky = 2, level = 4, melts = 1 },
|
groups = { crumbly = 2, cracky = 2, level = 4, melts = 1 },
|
||||||
|
drop = "pedology:lump_snow 4",
|
||||||
freezemelt = "pedology:water_fresh_source",
|
freezemelt = "pedology:water_fresh_source",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
BIN
textures/pedology_lump_snow.png
Normal file
BIN
textures/pedology_lump_snow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 405 B |
Loading…
Reference in New Issue
Block a user