Rename “Minimal development test” to “Development Test” (#9928)
334
games/devtest/mods/basenodes/init.lua
Normal file
|
@ -0,0 +1,334 @@
|
|||
local WATER_ALPHA = 160
|
||||
local WATER_VISC = 1
|
||||
local LAVA_VISC = 7
|
||||
|
||||
--
|
||||
-- Node definitions
|
||||
--
|
||||
|
||||
-- Register nodes
|
||||
|
||||
minetest.register_node("basenodes:stone", {
|
||||
description = "Stone",
|
||||
tiles = {"default_stone.png"},
|
||||
groups = {cracky=3},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:desert_stone", {
|
||||
description = "Desert Stone",
|
||||
tiles = {"default_desert_stone.png"},
|
||||
groups = {cracky=3},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:dirt_with_grass", {
|
||||
description = "Dirt with Grass",
|
||||
tiles ={"default_grass.png",
|
||||
-- a little dot on the bottom to distinguish it from dirt
|
||||
"default_dirt.png^basenodes_dirt_with_grass_bottom.png",
|
||||
{name = "default_dirt.png^default_grass_side.png",
|
||||
tileable_vertical = false}},
|
||||
groups = {crumbly=3, soil=1},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:dirt_with_snow", {
|
||||
description = "Dirt with Snow",
|
||||
tiles ={"basenodes_dirt_with_snow.png",
|
||||
-- a little dot on the bottom to distinguish it from dirt
|
||||
"default_dirt.png^basenodes_dirt_with_snow_bottom.png",
|
||||
{name = "default_dirt.png^default_snow_side.png",
|
||||
tileable_vertical = false}},
|
||||
groups = {crumbly=3, soil=1},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:dirt", {
|
||||
description = "Dirt",
|
||||
tiles ={"default_dirt.png"},
|
||||
groups = {crumbly=3, soil=1},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:sand", {
|
||||
description = "Sand",
|
||||
tiles ={"default_sand.png"},
|
||||
groups = {crumbly=3},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:desert_sand", {
|
||||
description = "Desert Sand",
|
||||
tiles ={"default_desert_sand.png"},
|
||||
groups = {crumbly=3},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:gravel", {
|
||||
description = "Gravel",
|
||||
tiles ={"default_gravel.png"},
|
||||
groups = {crumbly=2},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:junglegrass", {
|
||||
description = "Jungle Grass",
|
||||
drawtype = "plantlike",
|
||||
tiles ={"default_junglegrass.png"},
|
||||
inventory_image = "default_junglegrass.png",
|
||||
wield_image = "default_junglegrass.png",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
groups = {snappy=3},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:tree", {
|
||||
description = "Normal Tree Trunk",
|
||||
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
|
||||
is_ground_content = false,
|
||||
groups = {choppy=2,oddly_breakable_by_hand=1},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:leaves", {
|
||||
description = "Normal Leaves",
|
||||
drawtype = "allfaces_optional",
|
||||
tiles = {"default_leaves.png"},
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
groups = {snappy=3},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:jungletree", {
|
||||
description = "Jungle Tree Trunk",
|
||||
tiles = {"default_jungletree_top.png", "default_jungletree_top.png", "default_jungletree.png"},
|
||||
is_ground_content = false,
|
||||
groups = {choppy=2,oddly_breakable_by_hand=1},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:jungleleaves", {
|
||||
description = "Jungle Leaves",
|
||||
drawtype = "allfaces_optional",
|
||||
tiles = {"default_jungleleaves.png"},
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
groups = {snappy=3},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:pine_tree", {
|
||||
description = "Pine Tree Trunk",
|
||||
tiles = {"default_pine_tree_top.png", "default_pine_tree_top.png", "default_pine_tree.png"},
|
||||
is_ground_content = false,
|
||||
groups = {choppy=2,oddly_breakable_by_hand=1},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:pine_needles", {
|
||||
description = "Pine Needles",
|
||||
drawtype = "allfaces_optional",
|
||||
tiles = {"default_pine_needles.png"},
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
groups = {snappy=3},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:water_source", {
|
||||
description = "Water Source",
|
||||
drawtype = "liquid",
|
||||
tiles = {"default_water.png"},
|
||||
special_tiles = {
|
||||
{name = "default_water.png", backface_culling = false},
|
||||
{name = "default_water.png", backface_culling = true},
|
||||
},
|
||||
alpha = WATER_ALPHA,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
drowning = 1,
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "basenodes:water_flowing",
|
||||
liquid_alternative_source = "basenodes:water_source",
|
||||
liquid_viscosity = WATER_VISC,
|
||||
post_effect_color = {a = 64, r = 100, g = 100, b = 200},
|
||||
groups = {water = 3, liquid = 3},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:water_flowing", {
|
||||
description = "Flowing Water",
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"default_water_flowing.png"},
|
||||
special_tiles = {
|
||||
{name = "default_water_flowing.png", backface_culling = false},
|
||||
{name = "default_water_flowing.png", backface_culling = false},
|
||||
},
|
||||
alpha = WATER_ALPHA,
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
drowning = 1,
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "basenodes:water_flowing",
|
||||
liquid_alternative_source = "basenodes:water_source",
|
||||
liquid_viscosity = WATER_VISC,
|
||||
post_effect_color = {a = 64, r = 100, g = 100, b = 200},
|
||||
groups = {water = 3, liquid = 3},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:river_water_source", {
|
||||
description = "River Water Source",
|
||||
drawtype = "liquid",
|
||||
tiles = { "default_river_water.png" },
|
||||
special_tiles = {
|
||||
{name = "default_river_water.png", backface_culling = false},
|
||||
{name = "default_river_water.png", backface_culling = true},
|
||||
},
|
||||
alpha = WATER_ALPHA,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
drowning = 1,
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "basenodes:river_water_flowing",
|
||||
liquid_alternative_source = "basenodes:river_water_source",
|
||||
liquid_viscosity = 1,
|
||||
liquid_renewable = false,
|
||||
liquid_range = 2,
|
||||
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
|
||||
groups = {water = 3, liquid = 3, },
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:river_water_flowing", {
|
||||
description = "Flowing River Water",
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"default_river_water_flowing.png"},
|
||||
special_tiles = {
|
||||
{name = "default_river_water_flowing.png", backface_culling = false},
|
||||
{name = "default_river_water_flowing.png", backface_culling = false},
|
||||
},
|
||||
alpha = WATER_ALPHA,
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
drowning = 1,
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "basenodes:river_water_flowing",
|
||||
liquid_alternative_source = "basenodes:river_water_source",
|
||||
liquid_viscosity = 1,
|
||||
liquid_renewable = false,
|
||||
liquid_range = 2,
|
||||
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
|
||||
groups = {water = 3, liquid = 3, },
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:lava_flowing", {
|
||||
description = "Flowing Lava",
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"default_lava_flowing.png"},
|
||||
special_tiles = {
|
||||
{name="default_lava_flowing.png", backface_culling = false},
|
||||
{name="default_lava_flowing.png", backface_culling = false},
|
||||
},
|
||||
paramtype = "light",
|
||||
light_source = minetest.LIGHT_MAX,
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
drowning = 1,
|
||||
damage_per_second = 4,
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "basenodes:lava_flowing",
|
||||
liquid_alternative_source = "basenodes:lava_source",
|
||||
liquid_viscosity = LAVA_VISC,
|
||||
post_effect_color = {a=192, r=255, g=64, b=0},
|
||||
groups = {lava=3, liquid=1},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:lava_source", {
|
||||
description = "Lava Source",
|
||||
drawtype = "liquid",
|
||||
tiles = { "default_lava.png" },
|
||||
special_tiles = {
|
||||
{name = "default_lava.png", backface_culling = false},
|
||||
{name = "default_lava.png", backface_culling = true},
|
||||
},
|
||||
paramtype = "light",
|
||||
light_source = minetest.LIGHT_MAX,
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
drowning = 1,
|
||||
damage_per_second = 4,
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "basenodes:lava_flowing",
|
||||
liquid_alternative_source = "basenodes:lava_source",
|
||||
liquid_viscosity = LAVA_VISC,
|
||||
post_effect_color = {a=192, r=255, g=64, b=0},
|
||||
groups = {lava=3, liquid=1},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:cobble", {
|
||||
description = "Cobblestone",
|
||||
tiles ={"default_cobble.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=3},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:mossycobble", {
|
||||
description = "Mossy Cobblestone",
|
||||
tiles ={"default_mossycobble.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=3},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:apple", {
|
||||
description = "Apple",
|
||||
drawtype = "plantlike",
|
||||
tiles ={"default_apple.png"},
|
||||
inventory_image = "default_apple.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
groups = {dig_immediate=3},
|
||||
|
||||
-- Make eatable because why not?
|
||||
on_use = minetest.item_eat(2),
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:ice", {
|
||||
description = "Ice",
|
||||
tiles ={"default_ice.png"},
|
||||
groups = {cracky=3},
|
||||
})
|
||||
|
||||
-- The snow nodes intentionally have different tints to make them more
|
||||
-- distinguishable
|
||||
minetest.register_node("basenodes:snow", {
|
||||
description = "Snow Sheet",
|
||||
tiles = {"basenodes_snow_sheet.png"},
|
||||
groups = {crumbly=3},
|
||||
walkable = false,
|
||||
paramtype = "light",
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("basenodes:snowblock", {
|
||||
description = "Snow Block",
|
||||
tiles ={"default_snow.png"},
|
||||
groups = {crumbly=3},
|
||||
})
|
||||
|
||||
|
2
games/devtest/mods/basenodes/mod.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
name = basenodes
|
||||
description = Contains basic nodes for mapgen
|
After Width: | Height: | Size: 187 B |
After Width: | Height: | Size: 166 B |
After Width: | Height: | Size: 177 B |
BIN
games/devtest/mods/basenodes/textures/basenodes_snow_sheet.png
Normal file
After Width: | Height: | Size: 166 B |
BIN
games/devtest/mods/basenodes/textures/default_apple.png
Normal file
After Width: | Height: | Size: 102 B |
BIN
games/devtest/mods/basenodes/textures/default_cobble.png
Normal file
After Width: | Height: | Size: 340 B |
BIN
games/devtest/mods/basenodes/textures/default_desert_sand.png
Normal file
After Width: | Height: | Size: 293 B |
BIN
games/devtest/mods/basenodes/textures/default_desert_stone.png
Normal file
After Width: | Height: | Size: 584 B |
BIN
games/devtest/mods/basenodes/textures/default_dirt.png
Normal file
After Width: | Height: | Size: 790 B |
BIN
games/devtest/mods/basenodes/textures/default_grass.png
Normal file
After Width: | Height: | Size: 697 B |
BIN
games/devtest/mods/basenodes/textures/default_grass_side.png
Normal file
After Width: | Height: | Size: 796 B |
BIN
games/devtest/mods/basenodes/textures/default_gravel.png
Normal file
After Width: | Height: | Size: 171 B |
BIN
games/devtest/mods/basenodes/textures/default_ice.png
Normal file
After Width: | Height: | Size: 369 B |
BIN
games/devtest/mods/basenodes/textures/default_junglegrass.png
Normal file
After Width: | Height: | Size: 201 B |
BIN
games/devtest/mods/basenodes/textures/default_jungleleaves.png
Normal file
After Width: | Height: | Size: 399 B |
BIN
games/devtest/mods/basenodes/textures/default_jungletree.png
Normal file
After Width: | Height: | Size: 730 B |
BIN
games/devtest/mods/basenodes/textures/default_jungletree_top.png
Normal file
After Width: | Height: | Size: 714 B |
BIN
games/devtest/mods/basenodes/textures/default_lava.png
Normal file
After Width: | Height: | Size: 172 B |
BIN
games/devtest/mods/basenodes/textures/default_lava_flowing.png
Normal file
After Width: | Height: | Size: 91 B |
BIN
games/devtest/mods/basenodes/textures/default_leaves.png
Normal file
After Width: | Height: | Size: 883 B |
BIN
games/devtest/mods/basenodes/textures/default_mossycobble.png
Normal file
After Width: | Height: | Size: 574 B |
BIN
games/devtest/mods/basenodes/textures/default_pine_needles.png
Normal file
After Width: | Height: | Size: 648 B |
BIN
games/devtest/mods/basenodes/textures/default_pine_tree.png
Normal file
After Width: | Height: | Size: 604 B |
BIN
games/devtest/mods/basenodes/textures/default_pine_tree_top.png
Normal file
After Width: | Height: | Size: 174 B |
BIN
games/devtest/mods/basenodes/textures/default_river_water.png
Normal file
After Width: | Height: | Size: 496 B |
After Width: | Height: | Size: 99 B |
BIN
games/devtest/mods/basenodes/textures/default_sand.png
Normal file
After Width: | Height: | Size: 554 B |
BIN
games/devtest/mods/basenodes/textures/default_snow.png
Normal file
After Width: | Height: | Size: 166 B |
BIN
games/devtest/mods/basenodes/textures/default_snow_side.png
Normal file
After Width: | Height: | Size: 152 B |
BIN
games/devtest/mods/basenodes/textures/default_stone.png
Normal file
After Width: | Height: | Size: 313 B |
BIN
games/devtest/mods/basenodes/textures/default_tree.png
Normal file
After Width: | Height: | Size: 659 B |
BIN
games/devtest/mods/basenodes/textures/default_tree_top.png
Normal file
After Width: | Height: | Size: 175 B |
BIN
games/devtest/mods/basenodes/textures/default_water.png
Normal file
After Width: | Height: | Size: 302 B |
BIN
games/devtest/mods/basenodes/textures/default_water_flowing.png
Normal file
After Width: | Height: | Size: 115 B |