new-subgame/mods/ground/nodes.lua

113 lines
2.7 KiB
Lua

minetest.register_node('ground:stone', {
description = 'Stone',
tiles = {'ground_stone.png'},
groups = {cracky=3, stone=1},
drop = 'ground:cobble',
})
minetest.register_node('ground:cobble', {
description = 'Cobblestone',
tiles = {'ground_cobble.png'},
groups = {cracky=3, stone=1},
})
minetest.register_node('ground:dirt', {
description = 'Dirt',
tiles = {'ground_dirt.png'},
groups = {crumbly = 3},
})
minetest.register_node('ground:dirt_with_grass', {
description = 'Dirt with Grass',
tiles = {'ground_grass.png', 'ground_dirt.png',
{name = 'ground_dirt.png^ground_grass_overlay.png',
tileable_vertical = false}},
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
drop = 'ground:dirt',
})
minetest.register_node('ground:sand', {
description = 'Sand',
tiles = {'ground_sand.png'},
groups = {crumbly = 3, falling_node = 1},
})
minetest.register_node('ground:water_source', {
description = 'Water Source',
drawtype = 'liquid',
tiles = {
{
name = 'ground_water_source_animated.png',
animation = {
type = 'vertical_frames',
aspect_w = 32,
aspect_h = 32,
length = 2.0,
},
},
},
alpha = 160,
paramtype = 'light',
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = '',
drowning = 1,
liquidtype = 'source',
liquid_alternative_flowing = 'ground:water_flowing',
liquid_alternative_source = 'ground:water_source',
liquid_viscosity = 1,
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1},
})
minetest.register_node('ground:water_flowing', {
description = 'Flowing Water',
drawtype = 'flowingliquid',
tiles = {'ground_water.png'},
special_tiles = {
{
name = 'ground_water_source_animated.png',
backface_culling = false,
animation = {
type = 'vertical_frames',
aspect_w = 32,
aspect_h = 32,
length = 0.8,
},
},
{
name = 'ground_water_source_animated.png',
backface_culling = true,
animation = {
type = 'vertical_frames',
aspect_w = 32,
aspect_h = 32,
length = 0.8,
},
},
},
alpha = 160,
paramtype = 'light',
paramtype2 = 'flowingliquid',
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = '',
drowning = 1,
liquidtype = 'flowing',
liquid_alternative_flowing = 'ground:water_flowing',
liquid_alternative_source = 'ground:water_source',
liquid_viscosity = 1,
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1,
not_in_creative_inventory = 1, cools_lava = 1},
-- sounds = default.node_sound_water_defaults(),
})