mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2024-11-13 05:40:28 +01:00
embed dirt,wood and grass texture for proper cross-game support
This commit is contained in:
parent
44d108fff8
commit
63f4bd529e
|
@ -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/
|
||||
|
|
|
@ -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",
|
||||
|
|
22
nodes.lua
22
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",
|
||||
|
|
|
@ -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},
|
||||
|
|
BIN
textures/scifi_nodes_dirt.png
Normal file
BIN
textures/scifi_nodes_dirt.png
Normal file
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 |
BIN
textures/scifi_nodes_grass_side.png
Normal file
BIN
textures/scifi_nodes_grass_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 461 B |
BIN
textures/scifi_nodes_wood.png
Normal file
BIN
textures/scifi_nodes_wood.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 218 B |
Loading…
Reference in New Issue
Block a user