optimize pngs, add is_ground_content to everything

This commit is contained in:
FaceDeer
2019-11-10 21:47:10 -07:00
parent cacddcd347
commit 13c75410aa
53 changed files with 123 additions and 37 deletions

View File

@ -8,7 +8,7 @@ minetest.register_node("df_trees:black_cap_stem", {
_doc_items_longdesc = df_trees.doc.black_cap_desc,
_doc_items_usagehelp = df_trees.doc.black_cap_usage,
tiles = {"dfcaverns_black_cap_top.png","dfcaverns_black_cap_top.png","dfcaverns_black_cap_side.png",},
is_ground_content = true,
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
})
@ -19,7 +19,7 @@ minetest.register_node("df_trees:black_cap", {
_doc_items_longdesc = df_trees.doc.black_cap_desc,
_doc_items_usagehelp = df_trees.doc.black_cap_usage,
tiles = {"dfcaverns_black_cap_top.png","dfcaverns_black_cap_top.png","dfcaverns_black_cap_side.png^[transformR90",},
is_ground_content = true,
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
})
@ -30,7 +30,7 @@ minetest.register_node("df_trees:black_cap_gills", {
_doc_items_longdesc = df_trees.doc.black_cap_desc,
_doc_items_usagehelp = df_trees.doc.black_cap_usage,
tiles = {"dfcaverns_black_cap_gills.png"},
is_ground_content = true,
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
sounds = default.node_sound_leaves_defaults(),
drawtype = "plantlike",
@ -143,6 +143,7 @@ minetest.register_node("df_trees:black_cap_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
is_ground_content = false,
floodable = true,
selection_box = {
type = "fixed",

View File

@ -39,6 +39,7 @@ minetest.register_node("df_trees:blood_thorn", {
groups = {choppy = 3, tree = 1, flammable = 2, light_sensitive_fungus = 11},
_dfcaverns_dead_node = "df_trees:blood_thorn_dead",
sounds = default.node_sound_wood_defaults(),
is_ground_content = false,
on_place = minetest.rotate_node,
after_dig_node = blood_thorn_after_dig,
})
@ -53,6 +54,7 @@ minetest.register_node("df_trees:blood_thorn_dead", {
paramtype = "light",
groups = {choppy = 3, tree = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
is_ground_content = false,
on_place = minetest.rotate_node,
after_dig_node = blood_thorn_after_dig,
})
@ -74,6 +76,7 @@ minetest.register_node("df_trees:blood_thorn_spike", {
sounds = default.node_sound_wood_defaults(),
drawtype = "nodebox",
climbable = true,
is_ground_content = false,
damage_per_second = 1,
paramtype = "light",
paramtype2 = "facedir",
@ -103,6 +106,7 @@ minetest.register_node("df_trees:blood_thorn_spike_dead", {
sounds = default.node_sound_wood_defaults(),
drawtype = "nodebox",
climbable = true,
is_ground_content = false,
paramtype = "light",
paramtype2 = "facedir",
node_box = {

View File

@ -115,6 +115,7 @@ minetest.register_node("df_trees:fungiwood_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
is_ground_content = false,
floodable = true,
selection_box = {
type = "fixed",

View File

@ -8,7 +8,7 @@ minetest.register_node("df_trees:goblin_cap_stem", {
_doc_items_longdesc = df_trees.doc.goblin_cap_desc,
_doc_items_usagehelp = df_trees.doc.goblin_cap_usage,
tiles = {"dfcaverns_goblin_cap_stem.png"},
is_ground_content = true,
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, goblin_cap = 1},
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
})
@ -19,7 +19,7 @@ minetest.register_node("df_trees:goblin_cap", {
_doc_items_longdesc = df_trees.doc.goblin_cap_desc,
_doc_items_usagehelp = df_trees.doc.goblin_cap_usage,
tiles = {"dfcaverns_goblin_cap.png"},
is_ground_content = true,
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, goblin_cap = 1},
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
})
@ -30,7 +30,7 @@ minetest.register_node("df_trees:goblin_cap_gills", {
_doc_items_longdesc = df_trees.doc.goblin_cap_desc,
_doc_items_usagehelp = df_trees.doc.goblin_cap_usage,
tiles = {"dfcaverns_goblin_cap_gills.png"},
is_ground_content = true,
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1, goblin_cap = 1},
sounds = default.node_sound_leaves_defaults(),
drawtype = "plantlike",
@ -143,6 +143,7 @@ minetest.register_node("df_trees:goblin_cap_sapling", {
wield_image = "dfcaverns_goblin_cap_sapling.png",
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
walkable = false,
floodable = true,
selection_box = {

View File

@ -8,7 +8,7 @@ minetest.register_node("df_trees:nether_cap_stem", {
_doc_items_longdesc = df_trees.doc.nether_cap_desc,
_doc_items_usagehelp = df_trees.doc.nether_cap_usage,
tiles = {"dfcaverns_nether_cap_stem.png"},
is_ground_content = true,
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, puts_out_fire = 1, cools_lava = 1, freezes_water = 1},
sounds = default.node_sound_wood_defaults(),
})
@ -19,7 +19,7 @@ minetest.register_node("df_trees:nether_cap", {
_doc_items_longdesc = df_trees.doc.nether_cap_desc,
_doc_items_usagehelp = df_trees.doc.nether_cap_usage,
tiles = {"dfcaverns_nether_cap.png"},
is_ground_content = true,
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, puts_out_fire = 1, cools_lava = 1, freezes_water = 1 },
sounds = default.node_sound_wood_defaults({
footstep = {name = "default_snow_footstep", gain = 0.2},
@ -32,7 +32,7 @@ minetest.register_node("df_trees:nether_cap_gills", {
_doc_items_longdesc = df_trees.doc.nether_cap_desc,
_doc_items_usagehelp = df_trees.doc.nether_cap_usage,
tiles = {"dfcaverns_nether_cap_gills.png"},
is_ground_content = true,
is_ground_content = false,
light_source = 6,
groups = {snappy = 3, leafdecay = 3, leaves = 1, puts_out_fire = 1, cools_lava = 1, freezes_water = 1},
sounds = default.node_sound_leaves_defaults(),
@ -103,6 +103,7 @@ minetest.register_node("df_trees:nether_cap_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
is_ground_content = false,
floodable = true, -- nether cap spawn aren't tough enough to freeze water yet
selection_box = {
type = "fixed",

View File

@ -64,7 +64,7 @@ minetest.register_node("df_trees:spindlestem_stem", {
description = S("Spindlestem"),
_doc_items_longdesc = df_trees.doc.spindlestem_desc,
_doc_items_usagehelp = df_trees.doc.spindlestem_usage,
is_ground_content = true,
is_ground_content = false,
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, spindlestem = 1},
sounds = default.node_sound_wood_defaults(),
tiles = {
@ -95,7 +95,7 @@ local register_spindlestem_type = function(item_suffix, colour_name, colour_code
minetest.register_node(cap_item, {
description = S("@1 Spindlestem Cap", colour_name),
is_ground_content = true,
is_ground_content = false,
_doc_items_longdesc = df_trees.doc["spindlestem_cap_"..item_suffix.."_desc"],
_doc_items_usagehelp = df_trees.doc["spindlestem_cap_"..item_suffix.."_usage"],
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, spindlestem = 1},
@ -241,6 +241,7 @@ minetest.register_node("df_trees:spindlestem_seedling", {
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
walkable = false,
floodable = true,
node_box = {

View File

@ -157,6 +157,7 @@ minetest.register_node("df_trees:spore_tree_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
is_ground_content = false,
floodable = true,
selection_box = {
type = "fixed",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 327 B

After

Width:  |  Height:  |  Size: 106 B

View File

@ -63,7 +63,7 @@ minetest.register_node("df_trees:torchspine_1", {
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
is_ground_content = false,
drops = "default:torch",
node_box = {
type = "fixed",
@ -82,7 +82,7 @@ minetest.register_node("df_trees:torchspine_1_lit", {
paramtype = "light",
paramtype2 = "facedir",
light_source = 6,
is_ground_content = true,
is_ground_content = false,
drops = "default:torch 2",
node_box = {
type = "fixed",
@ -100,7 +100,7 @@ minetest.register_node("df_trees:torchspine_2", {
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
is_ground_content = false,
node_box = {
type = "fixed",
fixed = stal_box_2,
@ -126,7 +126,7 @@ minetest.register_node("df_trees:torchspine_3", {
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
is_ground_content = false,
node_box = {
type = "fixed",
fixed = stal_box_3,
@ -156,7 +156,7 @@ minetest.register_node("df_trees:torchspine_4", {
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
is_ground_content = false,
node_box = {
type = "fixed",
fixed = stal_box_4,
@ -187,6 +187,7 @@ minetest.register_node("df_trees:torchspine_ember", {
light_source = 2,
paramtype2 = "facedir",
walkable = false,
is_ground_content = false,
floodable = true,
node_box = {
type = "fixed",

View File

@ -8,7 +8,7 @@ minetest.register_node("df_trees:tower_cap_stem", {
_doc_items_longdesc = df_trees.doc.tower_cap_desc,
_doc_items_usagehelp = df_trees.doc.tower_cap_usage,
tiles = {"dfcaverns_tower_cap.png"},
is_ground_content = true,
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, tower_cap = 1},
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
})
@ -19,7 +19,7 @@ minetest.register_node("df_trees:tower_cap", {
_doc_items_longdesc = df_trees.doc.tower_cap_desc,
_doc_items_usagehelp = df_trees.doc.tower_cap_usage,
tiles = {"dfcaverns_tower_cap.png"},
is_ground_content = true,
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, tower_cap = 1},
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
})
@ -30,7 +30,7 @@ minetest.register_node("df_trees:tower_cap_gills", {
_doc_items_longdesc = df_trees.doc.tower_cap_desc,
_doc_items_usagehelp = df_trees.doc.tower_cap_usage,
tiles = {"dfcaverns_tower_cap_gills.png"},
is_ground_content = true,
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1, tower_cap = 1},
sounds = default.node_sound_leaves_defaults(),
drawtype = "plantlike",
@ -125,6 +125,7 @@ minetest.register_node("df_trees:tower_cap_sapling", {
wield_image = "dfcaverns_tower_cap_sapling.png",
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
walkable = false,
floodable = true,
selection_box = {

View File

@ -17,6 +17,7 @@ minetest.register_node("df_trees:tunnel_tube", {
tiles = {"dfcaverns_tunnel_tube.png"},
paramtype2 = "facedir",
drawtype = "nodebox",
is_ground_content = false,
paramtype = "light",
groups = {choppy = 3, tree = 1, oddly_breakable_by_hand=1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
@ -40,6 +41,7 @@ minetest.register_node("df_trees:tunnel_tube_slant_bottom", {
tiles = {"dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png"},
paramtype2 = "facedir",
drawtype = "mesh",
is_ground_content = false,
mesh = "tunnel_tube_slant.obj",
paramtype = "light",
drop = "df_trees:tunnel_tube",
@ -70,6 +72,7 @@ minetest.register_node("df_trees:tunnel_tube_slant_top", {
tiles = {"dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png"},
paramtype2 = "facedir",
drawtype = "mesh",
is_ground_content = false,
mesh = "tunnel_tube_slant_2.obj",
paramtype = "light",
drop = "df_trees:tunnel_tube",
@ -99,6 +102,7 @@ minetest.register_node("df_trees:tunnel_tube_slant_full", {
tiles = {"dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png", "dfcaverns_tunnel_tube.png"},
paramtype2 = "facedir",
drawtype = "mesh",
is_ground_content = false,
mesh = "tunnel_tube_slant_full.obj",
paramtype = "light",
drop = "df_trees:tunnel_tube",
@ -172,6 +176,7 @@ if df_trees.config.enable_tnt then
_doc_items_usagehelp = df_trees.doc.tunnel_tube_usage,
tiles = {"dfcaverns_tunnel_tube.png^[multiply:#b09090"},
paramtype2 = "facedir",
is_ground_content = false,
groups = {choppy = 3, oddly_breakable_by_hand=1, flammable = 2, tnt = 1,},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node,
@ -227,6 +232,7 @@ if df_trees.config.enable_tnt then
_doc_items_longdesc = df_trees.doc.tunnel_tube_desc,
_doc_items_usagehelp = df_trees.doc.tunnel_tube_usage,
tiles = {"dfcaverns_tunnel_tube.png^[multiply:#b09090"},
is_ground_content = false,
groups = {not_in_creative_inventory = 1,},
light_source = 5,
drop = "",
@ -248,6 +254,7 @@ else
_doc_items_usagehelp = df_trees.doc.tunnel_tube_usage,
tiles = {"dfcaverns_tunnel_tube.png^[multiply:#b09090"},
paramtype2 = "facedir",
is_ground_content = false,
groups = {choppy = 3, oddly_breakable_by_hand=1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node,
@ -285,6 +292,7 @@ minetest.register_node("df_trees:tunnel_tube_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
is_ground_content = false,
floodable = true,
selection_box = {
type = "fixed",