Add more Perlin test nodes

This commit is contained in:
Wuzzy 2022-04-16 02:55:36 +02:00
parent d6182ac633
commit 505d7db92b
5 changed files with 49 additions and 11 deletions

View File

@ -99,7 +99,7 @@ if COLORIZE_NODES then
paramtype2 = "color" paramtype2 = "color"
end end
minetest.register_node("perlin_explorer:node", { minetest.register_node("perlin_explorer:node", {
description = S("Perlin Test Node"), description = S("Solid Perlin Test Node"),
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
paramtype2 = paramtype2, paramtype2 = paramtype2,
@ -110,7 +110,7 @@ minetest.register_node("perlin_explorer:node", {
drop = "perlin_explorer:node", drop = "perlin_explorer:node",
}) })
minetest.register_node("perlin_explorer:node_negative", { minetest.register_node("perlin_explorer:node_negative", {
description = S("Negative Perlin Test Node"), description = S("Solid Negative Perlin Test Node"),
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
paramtype2 = paramtype2, paramtype2 = paramtype2,
@ -121,27 +121,65 @@ minetest.register_node("perlin_explorer:node_negative", {
drop = "perlin_explorer:node_negative", drop = "perlin_explorer:node_negative",
}) })
minetest.register_node("perlin_explorer:transp", { minetest.register_node("perlin_explorer:grid", {
description = S("Transparent Perlin Test Node"), description = S("Grid Perlin Test Node"),
paramtype = "light", paramtype = "light",
drawtype = "allfaces", drawtype = "allfaces",
use_texture_alpha = "clip",
sunlight_propagates = true, sunlight_propagates = true,
paramtype2 = paramtype2, paramtype2 = paramtype2,
tiles = {"perlin_explorer_transp.png"}, tiles = {"perlin_explorer_grid.png"},
palette = "perlin_explorer_node_palette.png", palette = "perlin_explorer_node_palette.png",
groups = { dig_immediate = 3 }, groups = { dig_immediate = 3 },
drop = "perlin_explorer:transp", drop = "perlin_explorer:grid",
}) })
minetest.register_node("perlin_explorer:transp_negative", { minetest.register_node("perlin_explorer:grid_negative", {
description = S("Transparent Negative Perlin Test Node"), description = S("Grid Negative Perlin Test Node"),
paramtype = "light", paramtype = "light",
drawtype = "allfaces",
sunlight_propagates = true, sunlight_propagates = true,
paramtype2 = paramtype2, paramtype2 = paramtype2,
tiles = {"perlin_explorer_transp_neg.png"}, tiles = {"perlin_explorer_grid_neg.png"},
use_texture_alpha = "clip",
palette = "perlin_explorer_node_palette_neg.png", palette = "perlin_explorer_node_palette_neg.png",
groups = { dig_immediate = 3 }, groups = { dig_immediate = 3 },
drop = "perlin_explorer:transp_negative", drop = "perlin_explorer:grid_negative",
})
minetest.register_node("perlin_explorer:mini", {
description = S("Minibox Perlin Test Node"),
paramtype = "light",
drawtype = "nodebox",
climbable = true,
walkable = false,
node_box = {
type = "fixed",
fixed = { -2/16, -2/16, -2/16, 2/16, 2/16, 2/16 },
},
use_texture_alpha = "clip",
sunlight_propagates = true,
paramtype2 = paramtype2,
tiles = {"perlin_explorer_mini.png"},
palette = "perlin_explorer_node_palette.png",
groups = { dig_immediate = 3 },
drop = "perlin_explorer:mini",
})
minetest.register_node("perlin_explorer:mini_negative", {
description = S("Minibox Negative Perlin Test Node"),
paramtype = "light",
drawtype = "nodebox",
climbable = true,
walkable = false,
node_box = {
type = "fixed",
fixed = { -2/16, -2/16, -2/16, 2/16, 2/16, 2/16 },
},
sunlight_propagates = true,
paramtype2 = paramtype2,
tiles = {"perlin_explorer_mini_neg.png"},
use_texture_alpha = "clip",
palette = "perlin_explorer_node_palette_neg.png",
groups = { dig_immediate = 3 },
drop = "perlin_explorer:mini_negative",
}) })
minetest.register_tool("perlin_explorer:getter", { minetest.register_tool("perlin_explorer:getter", {

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB