Refactor hades_core nodes
This commit is contained in:
parent
e8c1410c9b
commit
30c70ba328
@ -3,6 +3,7 @@ hades_core = {}
|
|||||||
-- Load files
|
-- Load files
|
||||||
dofile(minetest.get_modpath("hades_core").."/functions.lua")
|
dofile(minetest.get_modpath("hades_core").."/functions.lua")
|
||||||
dofile(minetest.get_modpath("hades_core").."/simple_nodes.lua")
|
dofile(minetest.get_modpath("hades_core").."/simple_nodes.lua")
|
||||||
|
dofile(minetest.get_modpath("hades_core").."/liquids.lua")
|
||||||
dofile(minetest.get_modpath("hades_core").."/tools.lua")
|
dofile(minetest.get_modpath("hades_core").."/tools.lua")
|
||||||
dofile(minetest.get_modpath("hades_core").."/plants.lua")
|
dofile(minetest.get_modpath("hades_core").."/plants.lua")
|
||||||
dofile(minetest.get_modpath("hades_core").."/ladders.lua")
|
dofile(minetest.get_modpath("hades_core").."/ladders.lua")
|
||||||
|
151
mods/hades_core/liquids.lua
Normal file
151
mods/hades_core/liquids.lua
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
local S = minetest.get_translator("hades_core")
|
||||||
|
|
||||||
|
local WATER_VISC = 1
|
||||||
|
local LAVA_VISC = 7
|
||||||
|
local LIGHT_MAX = minetest.LIGHT_MAX - 1
|
||||||
|
|
||||||
|
-- Liquids
|
||||||
|
|
||||||
|
minetest.register_node("hades_core:water_flowing", {
|
||||||
|
description = S("Flowing Water"),
|
||||||
|
drawtype = "flowingliquid",
|
||||||
|
tiles = {"default_water.png"},
|
||||||
|
special_tiles = {
|
||||||
|
{
|
||||||
|
image="default_water_flowing_animated.png",
|
||||||
|
backface_culling=false,
|
||||||
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.8}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image="default_water_flowing_animated.png",
|
||||||
|
backface_culling=true,
|
||||||
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.8}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
use_texture_alpha = "blend",
|
||||||
|
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 = "hades_core:water_flowing",
|
||||||
|
liquid_alternative_source = "hades_core:water_source",
|
||||||
|
liquid_viscosity = WATER_VISC,
|
||||||
|
post_effect_color = {a=64, r=100, g=100, b=200},
|
||||||
|
groups = {water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1},
|
||||||
|
sounds = hades_sounds.node_sound_water_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_node("hades_core:water_source", {
|
||||||
|
description = S("Water Source"),
|
||||||
|
drawtype = "liquid",
|
||||||
|
tiles = {
|
||||||
|
{
|
||||||
|
name = "default_water_source_animated.png",
|
||||||
|
backface_culling = false,
|
||||||
|
animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "default_water_source_animated.png",
|
||||||
|
backface_culling = true,
|
||||||
|
animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
use_texture_alpha = "blend",
|
||||||
|
paramtype = "light",
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
diggable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
is_ground_content = false,
|
||||||
|
drop = "",
|
||||||
|
drowning = 1,
|
||||||
|
liquidtype = "source",
|
||||||
|
liquid_alternative_flowing = "hades_core:water_flowing",
|
||||||
|
liquid_alternative_source = "hades_core:water_source",
|
||||||
|
liquid_viscosity = WATER_VISC,
|
||||||
|
post_effect_color = {a=64, r=100, g=100, b=200},
|
||||||
|
groups = {water=3, liquid=3, puts_out_fire=1},
|
||||||
|
sounds = hades_sounds.node_sound_water_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_node("hades_core:lava_flowing", {
|
||||||
|
description = S("Flowing Lava"),
|
||||||
|
drawtype = "flowingliquid",
|
||||||
|
tiles = {"default_lava.png"},
|
||||||
|
special_tiles = {
|
||||||
|
{
|
||||||
|
image="default_lava_flowing_animated.png",
|
||||||
|
backface_culling=false,
|
||||||
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.3}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image="default_lava_flowing_animated.png",
|
||||||
|
backface_culling=true,
|
||||||
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.3}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "flowingliquid",
|
||||||
|
light_source = minetest.LIGHT_MAX - 1,
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
diggable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
is_ground_content = false,
|
||||||
|
drop = "",
|
||||||
|
drowning = 1,
|
||||||
|
liquidtype = "flowing",
|
||||||
|
liquid_alternative_flowing = "hades_core:lava_flowing",
|
||||||
|
liquid_alternative_source = "hades_core:lava_source",
|
||||||
|
liquid_viscosity = LAVA_VISC,
|
||||||
|
liquid_renewable = true,
|
||||||
|
damage_per_second = 2*2,
|
||||||
|
post_effect_color = {a=192, r=255, g=64, b=0},
|
||||||
|
groups = {lava=3, liquid=2, igniter=1, not_in_creative_inventory=1},
|
||||||
|
sounds = hades_sounds.node_sound_lava_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_node("hades_core:lava_source", {
|
||||||
|
description = S("Lava Source"),
|
||||||
|
drawtype = "liquid",
|
||||||
|
tiles = {
|
||||||
|
{
|
||||||
|
name = "default_lava_source_animated.png",
|
||||||
|
backface_culling = false,
|
||||||
|
animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length=4.0},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "default_lava_source_animated.png",
|
||||||
|
backface_culling = true,
|
||||||
|
animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length=4.0},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
paramtype = "light",
|
||||||
|
light_source = minetest.LIGHT_MAX - 1,
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
diggable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
is_ground_content = false,
|
||||||
|
drop = "",
|
||||||
|
drowning = 1,
|
||||||
|
liquidtype = "source",
|
||||||
|
liquid_alternative_flowing = "hades_core:lava_flowing",
|
||||||
|
liquid_alternative_source = "hades_core:lava_source",
|
||||||
|
liquid_viscosity = LAVA_VISC,
|
||||||
|
liquid_renewable = true,
|
||||||
|
damage_per_second = 2*2,
|
||||||
|
post_effect_color = {a=192, r=255, g=64, b=0},
|
||||||
|
groups = {lava=3, liquid=2, igniter=1},
|
||||||
|
sounds = hades_sounds.node_sound_lava_defaults(),
|
||||||
|
})
|
||||||
|
|
@ -1,10 +1,8 @@
|
|||||||
local S = minetest.get_translator("hade_core")
|
local S = minetest.get_translator("hades_core")
|
||||||
|
|
||||||
-- mods/default/nodes.lua
|
-- Simple nodes (full solid cubes)
|
||||||
|
|
||||||
local WATER_VISC = 1
|
-- Basic rocks (and crafted variants)
|
||||||
local LAVA_VISC = 7
|
|
||||||
local LIGHT_MAX = minetest.LIGHT_MAX - 1
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:stone", {
|
minetest.register_node("hades_core:stone", {
|
||||||
description = S("Stone"),
|
description = S("Stone"),
|
||||||
@ -32,6 +30,37 @@ minetest.register_node("hades_core:mossystone", {
|
|||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("hades_core:stonebrick", {
|
||||||
|
description = S("Stone Brick"),
|
||||||
|
tiles = {"default_stone_brick.png"},
|
||||||
|
groups = {cracky=2, stone=1},
|
||||||
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("hades_core:stone_baked", {
|
||||||
|
description = S("Burned Stone"),
|
||||||
|
tiles = {"hades_core_stone_baked.png"},
|
||||||
|
is_ground_content = true,
|
||||||
|
groups = {cracky=3, stone=1, porous=1, burned_node=1},
|
||||||
|
drop = "hades_core:cobble_baked",
|
||||||
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("hades_core:stone_block_baked", {
|
||||||
|
description = S("Burned Stone Block"),
|
||||||
|
tiles = {"hades_core_stone_block_baked.png"},
|
||||||
|
is_ground_content = false,
|
||||||
|
groups = {cracky=3, burned_node=1},
|
||||||
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("hades_core:stonebrick_baked", {
|
||||||
|
description = S("Burned Stone Brick"),
|
||||||
|
tiles = {"hades_core_stone_brick_baked.png"},
|
||||||
|
groups = {cracky=2, stone=1, burned_node=1},
|
||||||
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_node("hades_core:chondrite", {
|
minetest.register_node("hades_core:chondrite", {
|
||||||
description = S("Chondrite"),
|
description = S("Chondrite"),
|
||||||
_tt_help = S("Becomes Marble when close to water and at Y=-500 or below"),
|
_tt_help = S("Becomes Marble when close to water and at Y=-500 or below"),
|
||||||
@ -163,21 +192,20 @@ minetest.register_node("hades_core:essexite_brick", {
|
|||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("hades_core:stone_baked", {
|
minetest.register_node("hades_core:obsidian", {
|
||||||
description = S("Burned Stone"),
|
description = S("Obsidian"),
|
||||||
tiles = {"hades_core_stone_baked.png"},
|
tiles = {"default_obsidian.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {cracky=3, stone=1, porous=1, burned_node=1},
|
|
||||||
drop = "hades_core:cobble_baked",
|
|
||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
|
groups = {cracky=1,level=2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("hades_core:stone_block_baked", {
|
minetest.register_node("hades_core:obsidian_block", {
|
||||||
description = S("Burned Stone Block"),
|
description = S("Obsidian Block"),
|
||||||
tiles = {"hades_core_stone_block_baked.png"},
|
tiles = {"default_obsidian_block.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {cracky=3, burned_node=1},
|
|
||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
|
groups = {cracky=2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("hades_core:obsidianbrick", {
|
minetest.register_node("hades_core:obsidianbrick", {
|
||||||
@ -187,6 +215,9 @@ minetest.register_node("hades_core:obsidianbrick", {
|
|||||||
groups = {cracky=1,level=2},
|
groups = {cracky=1,level=2},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
-- Decorative combination blocks
|
||||||
|
|
||||||
minetest.register_node("hades_core:floor_chondrite_stone", {
|
minetest.register_node("hades_core:floor_chondrite_stone", {
|
||||||
description = S("Chondrite/Stone Block"),
|
description = S("Chondrite/Stone Block"),
|
||||||
tiles = {"hades_core_floor_chondrite_stone.png"},
|
tiles = {"hades_core_floor_chondrite_stone.png"},
|
||||||
@ -231,7 +262,7 @@ minetest.register_node("hades_core:floor_essexite_gold", {
|
|||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
--minerals
|
-- Ores
|
||||||
|
|
||||||
minetest.register_node("hades_core:stone_with_coal", {
|
minetest.register_node("hades_core:stone_with_coal", {
|
||||||
description = S("Coal Ore"),
|
description = S("Coal Ore"),
|
||||||
@ -270,7 +301,6 @@ minetest.register_node("hades_core:stone_with_copper", {
|
|||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:stone_with_mese", {
|
minetest.register_node("hades_core:stone_with_mese", {
|
||||||
description = S("Mese Ore"),
|
description = S("Mese Ore"),
|
||||||
tiles = {"default_stone.png^default_mineral_mese.png"},
|
tiles = {"default_stone.png^default_mineral_mese.png"},
|
||||||
@ -280,7 +310,6 @@ minetest.register_node("hades_core:stone_with_mese", {
|
|||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:stone_with_gold", {
|
minetest.register_node("hades_core:stone_with_gold", {
|
||||||
description = S("Gold Ore"),
|
description = S("Gold Ore"),
|
||||||
tiles = {"default_stone.png^default_mineral_gold.png"},
|
tiles = {"default_stone.png^default_mineral_gold.png"},
|
||||||
@ -290,7 +319,6 @@ minetest.register_node("hades_core:stone_with_gold", {
|
|||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:stone_with_diamond", {
|
minetest.register_node("hades_core:stone_with_diamond", {
|
||||||
description = S("Diamond Ore"),
|
description = S("Diamond Ore"),
|
||||||
tiles = {"default_stone.png^default_mineral_diamond.png"},
|
tiles = {"default_stone.png^default_mineral_diamond.png"},
|
||||||
@ -300,22 +328,34 @@ minetest.register_node("hades_core:stone_with_diamond", {
|
|||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("hades_core:stone_with_emerald", {
|
||||||
minetest.register_node("hades_core:stonebrick", {
|
description = S("Emerald Ore"),
|
||||||
description = S("Stone Brick"),
|
tiles = {"default_stone.png^hades_core_mineral_emerald.png"},
|
||||||
tiles = {"default_stone_brick.png"},
|
is_ground_content = true,
|
||||||
groups = {cracky=2, stone=1},
|
groups = {cracky=2, porous=1, ore=1},
|
||||||
|
drop = "hades_core:emerald",
|
||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("hades_core:stone_with_sapphire", {
|
||||||
minetest.register_node("hades_core:stonebrick_baked", {
|
description = S("Sapphire Ore"),
|
||||||
description = S("Burned Stone Brick"),
|
tiles = {"default_stone.png^hades_core_mineral_sapphire.png"},
|
||||||
tiles = {"hades_core_stone_brick_baked.png"},
|
is_ground_content = true,
|
||||||
groups = {cracky=2, stone=1, burned_node=1},
|
groups = {cracky=2, porous=1, ore=1},
|
||||||
|
drop = "hades_core:sapphire",
|
||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("hades_core:stone_with_ruby", {
|
||||||
|
description = S("Ruby Ore"),
|
||||||
|
tiles = {"default_stone.png^hades_core_mineral_ruby.png"},
|
||||||
|
is_ground_content = true,
|
||||||
|
groups = {cracky=1, porous=1, ore=1},
|
||||||
|
drop = "hades_core:ruby",
|
||||||
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Soft blocks: dirt, ash, sand, gravel
|
||||||
|
|
||||||
minetest.register_node("hades_core:dirt_with_grass", {
|
minetest.register_node("hades_core:dirt_with_grass", {
|
||||||
description = S("Dirt with Grass"),
|
description = S("Dirt with Grass"),
|
||||||
@ -328,7 +368,6 @@ minetest.register_node("hades_core:dirt_with_grass", {
|
|||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:dirt", {
|
minetest.register_node("hades_core:dirt", {
|
||||||
description = S("Dirt"),
|
description = S("Dirt"),
|
||||||
_tt_help = S("Becomes grassy when exposed to light"),
|
_tt_help = S("Becomes grassy when exposed to light"),
|
||||||
@ -453,6 +492,7 @@ minetest.register_node("hades_core:clay", {
|
|||||||
sounds = hades_sounds.node_sound_dirt_defaults(),
|
sounds = hades_sounds.node_sound_dirt_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Brick Blocks
|
||||||
|
|
||||||
minetest.register_node("hades_core:brick", {
|
minetest.register_node("hades_core:brick", {
|
||||||
description = S("Uncolored Brick Block"),
|
description = S("Uncolored Brick Block"),
|
||||||
@ -462,8 +502,6 @@ minetest.register_node("hades_core:brick", {
|
|||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Colors are beautiful
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:brick_black", {
|
minetest.register_node("hades_core:brick_black", {
|
||||||
description = S("Black Brick Block"),
|
description = S("Black Brick Block"),
|
||||||
tiles = {"hades_core_brick_black.png"},
|
tiles = {"hades_core_brick_black.png"},
|
||||||
@ -584,16 +622,7 @@ minetest.register_node("hades_core:brick_yellow", {
|
|||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Glass
|
||||||
|
|
||||||
minetest.register_node("hades_core:bookshelf", {
|
|
||||||
description = S("Bookshelf"),
|
|
||||||
tiles = {"default_wood.png", "default_wood.png", "default_bookshelf.png"},
|
|
||||||
is_ground_content = false,
|
|
||||||
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3},
|
|
||||||
sounds = hades_sounds.node_sound_wood_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:glass", {
|
minetest.register_node("hades_core:glass", {
|
||||||
description = S("Glass"),
|
description = S("Glass"),
|
||||||
@ -606,150 +635,18 @@ minetest.register_node("hades_core:glass", {
|
|||||||
sounds = hades_sounds.node_sound_glass_defaults(),
|
sounds = hades_sounds.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
--- Liquids
|
minetest.register_node("hades_core:obsidian_glass", {
|
||||||
|
description = S("Obsidian Glass"),
|
||||||
minetest.register_node("hades_core:water_flowing", {
|
drawtype = "glasslike_framed_optional",
|
||||||
description = S("Flowing Water"),
|
tiles = {"default_obsidian_glass.png", "default_obsidian_glass_detail.png"},
|
||||||
drawtype = "flowingliquid",
|
|
||||||
tiles = {"default_water.png"},
|
|
||||||
special_tiles = {
|
|
||||||
{
|
|
||||||
image="default_water_flowing_animated.png",
|
|
||||||
backface_culling=false,
|
|
||||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.8}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
image="default_water_flowing_animated.png",
|
|
||||||
backface_culling=true,
|
|
||||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.8}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
use_texture_alpha = "blend",
|
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "flowingliquid",
|
|
||||||
walkable = false,
|
|
||||||
pointable = false,
|
|
||||||
diggable = false,
|
|
||||||
buildable_to = true,
|
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
drop = "",
|
sunlight_propagates = true,
|
||||||
drowning = 1,
|
sounds = hades_sounds.node_sound_glass_defaults(),
|
||||||
liquidtype = "flowing",
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||||
liquid_alternative_flowing = "hades_core:water_flowing",
|
|
||||||
liquid_alternative_source = "hades_core:water_source",
|
|
||||||
liquid_viscosity = WATER_VISC,
|
|
||||||
post_effect_color = {a=64, r=100, g=100, b=200},
|
|
||||||
groups = {water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1},
|
|
||||||
sounds = hades_sounds.node_sound_water_defaults(),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Cobblestone
|
||||||
minetest.register_node("hades_core:water_source", {
|
|
||||||
description = S("Water Source"),
|
|
||||||
drawtype = "liquid",
|
|
||||||
tiles = {
|
|
||||||
{
|
|
||||||
name = "default_water_source_animated.png",
|
|
||||||
backface_culling = false,
|
|
||||||
animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name = "default_water_source_animated.png",
|
|
||||||
backface_culling = true,
|
|
||||||
animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
use_texture_alpha = "blend",
|
|
||||||
paramtype = "light",
|
|
||||||
walkable = false,
|
|
||||||
pointable = false,
|
|
||||||
diggable = false,
|
|
||||||
buildable_to = true,
|
|
||||||
is_ground_content = false,
|
|
||||||
drop = "",
|
|
||||||
drowning = 1,
|
|
||||||
liquidtype = "source",
|
|
||||||
liquid_alternative_flowing = "hades_core:water_flowing",
|
|
||||||
liquid_alternative_source = "hades_core:water_source",
|
|
||||||
liquid_viscosity = WATER_VISC,
|
|
||||||
post_effect_color = {a=64, r=100, g=100, b=200},
|
|
||||||
groups = {water=3, liquid=3, puts_out_fire=1},
|
|
||||||
sounds = hades_sounds.node_sound_water_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:lava_flowing", {
|
|
||||||
description = S("Flowing Lava"),
|
|
||||||
drawtype = "flowingliquid",
|
|
||||||
tiles = {"default_lava.png"},
|
|
||||||
special_tiles = {
|
|
||||||
{
|
|
||||||
image="default_lava_flowing_animated.png",
|
|
||||||
backface_culling=false,
|
|
||||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.3}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
image="default_lava_flowing_animated.png",
|
|
||||||
backface_culling=true,
|
|
||||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.3}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
paramtype = "light",
|
|
||||||
paramtype2 = "flowingliquid",
|
|
||||||
light_source = minetest.LIGHT_MAX - 1,
|
|
||||||
walkable = false,
|
|
||||||
pointable = false,
|
|
||||||
diggable = false,
|
|
||||||
buildable_to = true,
|
|
||||||
is_ground_content = false,
|
|
||||||
drop = "",
|
|
||||||
drowning = 1,
|
|
||||||
liquidtype = "flowing",
|
|
||||||
liquid_alternative_flowing = "hades_core:lava_flowing",
|
|
||||||
liquid_alternative_source = "hades_core:lava_source",
|
|
||||||
liquid_viscosity = LAVA_VISC,
|
|
||||||
liquid_renewable = true,
|
|
||||||
damage_per_second = 2*2,
|
|
||||||
post_effect_color = {a=192, r=255, g=64, b=0},
|
|
||||||
groups = {lava=3, liquid=2, igniter=1, not_in_creative_inventory=1},
|
|
||||||
sounds = hades_sounds.node_sound_lava_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:lava_source", {
|
|
||||||
description = S("Lava Source"),
|
|
||||||
drawtype = "liquid",
|
|
||||||
tiles = {
|
|
||||||
{
|
|
||||||
name = "default_lava_source_animated.png",
|
|
||||||
backface_culling = false,
|
|
||||||
animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length=4.0},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name = "default_lava_source_animated.png",
|
|
||||||
backface_culling = true,
|
|
||||||
animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length=4.0},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
paramtype = "light",
|
|
||||||
light_source = minetest.LIGHT_MAX - 1,
|
|
||||||
walkable = false,
|
|
||||||
pointable = false,
|
|
||||||
diggable = false,
|
|
||||||
buildable_to = true,
|
|
||||||
is_ground_content = false,
|
|
||||||
drop = "",
|
|
||||||
drowning = 1,
|
|
||||||
liquidtype = "source",
|
|
||||||
liquid_alternative_flowing = "hades_core:lava_flowing",
|
|
||||||
liquid_alternative_source = "hades_core:lava_source",
|
|
||||||
liquid_viscosity = LAVA_VISC,
|
|
||||||
liquid_renewable = true,
|
|
||||||
damage_per_second = 2*2,
|
|
||||||
post_effect_color = {a=192, r=255, g=64, b=0},
|
|
||||||
groups = {lava=3, liquid=2, igniter=1},
|
|
||||||
sounds = hades_sounds.node_sound_lava_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:cobble", {
|
minetest.register_node("hades_core:cobble", {
|
||||||
description = S("Cobblestone"),
|
description = S("Cobblestone"),
|
||||||
@ -791,6 +688,8 @@ minetest.register_node("hades_core:mossycobble", {
|
|||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Mineral blocks
|
||||||
|
|
||||||
minetest.register_node("hades_core:coalblock", {
|
minetest.register_node("hades_core:coalblock", {
|
||||||
description = S("Coal Block"),
|
description = S("Coal Block"),
|
||||||
tiles = {"default_coal_block.png"},
|
tiles = {"default_coal_block.png"},
|
||||||
@ -823,7 +722,6 @@ minetest.register_node("hades_core:copperblock", {
|
|||||||
sounds = hades_sounds.node_sound_heavy_metal_defaults(),
|
sounds = hades_sounds.node_sound_heavy_metal_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:bronzeblock", {
|
minetest.register_node("hades_core:bronzeblock", {
|
||||||
description = S("Bronze Block"),
|
description = S("Bronze Block"),
|
||||||
tiles = {"default_bronze_block.png"},
|
tiles = {"default_bronze_block.png"},
|
||||||
@ -832,7 +730,6 @@ minetest.register_node("hades_core:bronzeblock", {
|
|||||||
sounds = hades_sounds.node_sound_heavy_metal_defaults(),
|
sounds = hades_sounds.node_sound_heavy_metal_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:mese", {
|
minetest.register_node("hades_core:mese", {
|
||||||
description = S("Mese Block"),
|
description = S("Mese Block"),
|
||||||
tiles = {"default_mese_block.png"},
|
tiles = {"default_mese_block.png"},
|
||||||
@ -841,7 +738,6 @@ minetest.register_node("hades_core:mese", {
|
|||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:goldblock", {
|
minetest.register_node("hades_core:goldblock", {
|
||||||
description = S("Gold Block"),
|
description = S("Gold Block"),
|
||||||
tiles = {"default_gold_block.png"},
|
tiles = {"default_gold_block.png"},
|
||||||
@ -882,62 +778,13 @@ minetest.register_node("hades_core:diamondblock", {
|
|||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
sounds = hades_sounds.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Bookshelf
|
||||||
|
|
||||||
minetest.register_node("hades_core:obsidian_glass", {
|
minetest.register_node("hades_core:bookshelf", {
|
||||||
description = S("Obsidian Glass"),
|
description = S("Bookshelf"),
|
||||||
drawtype = "glasslike_framed_optional",
|
tiles = {"default_wood.png", "default_wood.png", "default_bookshelf.png"},
|
||||||
tiles = {"default_obsidian_glass.png", "default_obsidian_glass_detail.png"},
|
|
||||||
paramtype = "light",
|
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
sunlight_propagates = true,
|
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3},
|
||||||
sounds = hades_sounds.node_sound_glass_defaults(),
|
sounds = hades_sounds.node_sound_wood_defaults(),
|
||||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:obsidian", {
|
|
||||||
description = S("Obsidian"),
|
|
||||||
tiles = {"default_obsidian.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
|
||||||
groups = {cracky=1,level=2},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:obsidian_block", {
|
|
||||||
description = S("Obsidian Block"),
|
|
||||||
tiles = {"default_obsidian_block.png"},
|
|
||||||
is_ground_content = false,
|
|
||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
|
||||||
groups = {cracky=2},
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:stone_with_emerald", {
|
|
||||||
description = S("Emerald Ore"),
|
|
||||||
tiles = {"default_stone.png^hades_core_mineral_emerald.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {cracky=2, porous=1, ore=1},
|
|
||||||
drop = "hades_core:emerald",
|
|
||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:stone_with_sapphire", {
|
|
||||||
description = S("Sapphire Ore"),
|
|
||||||
tiles = {"default_stone.png^hades_core_mineral_sapphire.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {cracky=2, porous=1, ore=1},
|
|
||||||
drop = "hades_core:sapphire",
|
|
||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("hades_core:stone_with_ruby", {
|
|
||||||
description = S("Ruby Ore"),
|
|
||||||
tiles = {"default_stone.png^hades_core_mineral_ruby.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {cracky=1, porous=1, ore=1},
|
|
||||||
drop = "hades_core:ruby",
|
|
||||||
sounds = hades_sounds.node_sound_stone_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
local S = minetest.get_translator("hade_core")
|
local S = minetest.get_translator("hades_core")
|
||||||
|
|
||||||
-- mods/default/tools.lua
|
-- mods/default/tools.lua
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user