embed dirt,wood and grass texture for proper cross-game support

This commit is contained in:
BuckarooBanzay 2023-10-17 11:35:26 +02:00
parent 44d108fff8
commit 63f4bd529e
8 changed files with 17 additions and 18 deletions

View File

@ -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/

View File

@ -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",

View File

@ -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",

View File

@ -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},

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 B

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B