52 lines
1.3 KiB
Lua
Raw Normal View History

2019-02-19 19:02:21 -05:00
-- LUALOCALS < ---------------------------------------------------------
2019-03-14 19:31:56 -04:00
local minetest, nodecore
= minetest, nodecore
2019-02-19 19:02:21 -05:00
-- LUALOCALS > ---------------------------------------------------------
local modname = minetest.get_current_modname()
minetest.register_node(modname .. ":sponge", {
description = "Sponge",
drawtype = "allfaces_optional",
tiles = {modname ..".png"},
paramtype = "light",
groups = {
crumbly = 2,
flammable = 3,
fire_fuel = 3,
sponge = 1
2019-03-14 19:31:56 -04:00
},
sounds = nodecore.sounds("nc_terrain_swishy")
2019-02-19 19:02:21 -05:00
})
minetest.register_node(modname .. ":sponge_wet", {
description = "Wet Sponge",
drawtype = "allfaces_optional",
tiles = {modname ..".png^(nc_terrain_water.png^[opacity:96)"},
paramtype = "light",
groups = {
crumbly = 2,
coolant = 1,
falling_node = 1,
moist = 1,
sponge = 1
2019-03-14 19:31:56 -04:00
},
sounds = nodecore.sounds("nc_terrain_swishy")
2019-02-19 19:02:21 -05:00
})
minetest.register_node(modname .. ":sponge_living", {
description = "Living Sponge",
drawtype = "allfaces_optional",
tiles = {modname ..".png^(nc_terrain_water.png^[opacity:96)"},
paramtype = "light",
groups = {
crumbly = 2,
coolant = 1,
falling_node = 1,
moist = 1,
sponge = 1
2019-02-19 19:02:21 -05:00
},
2019-03-14 19:31:56 -04:00
drop = modname .. ":sponge_wet",
sounds = nodecore.sounds("nc_terrain_swishy")
2019-02-19 19:02:21 -05:00
})