diff --git a/README.md b/README.md index c44279e..dc6c3ba 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,10 @@ CC BY 3.0 * scifi_nodes_access_granted https://freesound.org/people/TheBuilder15/sounds/415762/ * scifi_nodes_access_refused https://freesound.org/people/RICHERlandTV/sounds/216090/ * scifi_nodes_forcefield.png https://github.com/minetest-mods/technic/ +* scifi_nodes_dirt.png https://github.com/minetest/minetest_game +* scifi_nodes_grass.png https://github.com/minetest/minetest_game +* scifi_nodes_grass_side.png https://github.com/minetest/minetest_game +* scifi_nodes_wood.png https://github.com/minetest/minetest_game CC0 * scifi_nodes_digicode.ogg https://freesound.org/people/benjaminharveydesign/sounds/315921/ diff --git a/nodeboxes.lua b/nodeboxes.lua index 814904a..2327a13 100644 --- a/nodeboxes.lua +++ b/nodeboxes.lua @@ -379,13 +379,10 @@ local function remove_lid(pos) end end -local dirt_tex = "default_dirt.png" -if not minetest.get_modpath("default") then dirt_tex = "[combine:16x16^[noalpha^[colorize:#654321" end - minetest.register_node("scifi_nodes:pot", { description = "Metal Plant Pot (right-click for lid, sneak + right-click to plant)", tiles = { - dirt_tex .. "^scifi_nodes_pot.png", + "scifi_nodes_dirt.png^scifi_nodes_pot.png", "scifi_nodes_greybolts.png", "scifi_nodes_greybolts.png", "scifi_nodes_greybolts.png", @@ -419,7 +416,7 @@ minetest.register_node("scifi_nodes:pot", { minetest.register_node("scifi_nodes:pot2", { description = "Metal Plant Pot Wet (right-click for lid, sneak + right-click to plant)", tiles = { - dirt_tex .. "^scifi_nodes_pot2.png", + "scifi_nodes_dirt.png^scifi_nodes_pot2.png", "scifi_nodes_greybolts.png", "scifi_nodes_greybolts.png", "scifi_nodes_greybolts.png", diff --git a/nodes.lua b/nodes.lua index 2bfd111..6200c9b 100644 --- a/nodes.lua +++ b/nodes.lua @@ -1,19 +1,17 @@ --nodes -if minetest.get_modpath("default") then - minetest.register_node("scifi_nodes:grassblk", { - description = "Dirt With Alien Grass", - tiles = {"default_grass.png^[colorize:cyan:80", "default_dirt.png", - {name = "default_dirt.png^(default_grass_side.png^[colorize:cyan:80)", - tileable_vertical = false}}, - light_source = 2, - groups = {crumbly=1, oddly_breakable_by_hand=1, soil=1}, - sounds = scifi_nodes.node_sound_dirt_defaults({ - footstep = scifi_nodes.node_sound_plant_defaults().footstep, - }), +minetest.register_node("scifi_nodes:grassblk", { + description = "Dirt With Alien Grass", + tiles = {"scifi_nodes_grass.png^[colorize:cyan:80", "scifi_nodes_dirt.png", + {name = "scifi_nodes_dirt.png^(scifi_nodes_grass_side.png^[colorize:cyan:80)", + tileable_vertical = false}}, + light_source = 2, + groups = {crumbly=1, oddly_breakable_by_hand=1, soil=1}, + sounds = scifi_nodes.node_sound_dirt_defaults({ + footstep = scifi_nodes.node_sound_plant_defaults().footstep, }) -end +}) minetest.register_node("scifi_nodes:light", { description = "blue lightbox", diff --git a/panes.lua b/panes.lua index 8219c62..a6441fa 100644 --- a/panes.lua +++ b/panes.lua @@ -10,7 +10,7 @@ xpanes.register_pane("doompane", { diggable = false, buildable_to = true, air_equivalent = true, - textures = {"scifi_nodes_doompane.png","scifi_nodes_doompane.png","default_wood.png"}, + textures = {"scifi_nodes_doompane.png","scifi_nodes_doompane.png","scifi_nodes_wood.png"}, inventory_image = "scifi_nodes_doompane.png", wield_image = "scifi_nodes_doompane.png", groups = {cracky=1, pane=1}, diff --git a/textures/scifi_nodes_dirt.png b/textures/scifi_nodes_dirt.png new file mode 100644 index 0000000..4ed965a Binary files /dev/null and b/textures/scifi_nodes_dirt.png differ diff --git a/textures/scifi_nodes_grass.png b/textures/scifi_nodes_grass.png index 5d7c98b..5778caa 100644 Binary files a/textures/scifi_nodes_grass.png and b/textures/scifi_nodes_grass.png differ diff --git a/textures/scifi_nodes_grass_side.png b/textures/scifi_nodes_grass_side.png new file mode 100644 index 0000000..77aa655 Binary files /dev/null and b/textures/scifi_nodes_grass_side.png differ diff --git a/textures/scifi_nodes_wood.png b/textures/scifi_nodes_wood.png new file mode 100644 index 0000000..af56d6c Binary files /dev/null and b/textures/scifi_nodes_wood.png differ