Add things
This commit is contained in:
parent
4d8312b79d
commit
00e1fd985d
28 changed files with 395 additions and 31 deletions
|
|
@ -135,6 +135,7 @@ rgt.register_node("glass", {
|
|||
drawtype = "glasslike",
|
||||
paramtype = "light",
|
||||
tiles = {{name = "rgt_glass.png", align_style = "world"}},
|
||||
use_texture_alpha = "clip",
|
||||
_variants = "all",
|
||||
groups = {dig_immediate = 3}
|
||||
})
|
||||
|
|
@ -228,21 +229,6 @@ minetest.register_alias("mapgen_water_source", "red_glazed_terracotta:water")
|
|||
minetest.register_alias("mapgen_river_water_source", "red_glazed_terracotta:river_water")
|
||||
|
||||
|
||||
-- Remove
|
||||
minetest.register_alias("adrift:stone", "red_glazed_terracotta:stone")
|
||||
minetest.register_alias("adrift:dirt", "red_glazed_terracotta:dirt")
|
||||
minetest.register_alias("adrift:dirt_grass", "red_glazed_terracotta:dirt_grass")
|
||||
minetest.register_alias("adrift:water", "red_glazed_terracotta:water")
|
||||
|
||||
--minetest.register_decoration {
|
||||
-- deco_type = "schematic",
|
||||
-- place_on = "dirt_grass",
|
||||
-- y_min = 1,
|
||||
-- fill_ratio = 0.01,
|
||||
-- schematic = minetest.get_modpath(minetest.get_current_modname()).."/schems/tree.mts",
|
||||
-- flags = "place_center_x, place_center_z",
|
||||
-- place_offset_y = 1,
|
||||
--}
|
||||
|
||||
rgt.register_node("light", {
|
||||
tiles = {"[fill:1x1:0,0:#fed"},
|
||||
|
|
@ -260,6 +246,18 @@ minetest.register_ore {
|
|||
}
|
||||
|
||||
|
||||
|
||||
--minetest.register_decoration {
|
||||
-- deco_type = "schematic",
|
||||
-- place_on = "dirt_grass",
|
||||
-- biomes = {"forest"},
|
||||
-- y_min = 1,
|
||||
-- fill_ratio = 0.01,
|
||||
-- schematic = minetest.get_modpath(minetest.get_current_modname()).."/schems/tree.mts",
|
||||
-- flags = "place_center_x, place_center_z",
|
||||
-- place_offset_y = 1,
|
||||
--}
|
||||
|
||||
minetest.register_biome{
|
||||
name = "plains",
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 367 B |
|
|
@ -15,10 +15,45 @@ function ns.register_slab(def)
|
|||
}))
|
||||
end
|
||||
|
||||
function ns.update_stair(pos, basename, leaf)
|
||||
local node = minetest.get_node(pos)
|
||||
local neighbors = {}
|
||||
local dir
|
||||
local pipe
|
||||
|
||||
for _, offset in ipairs(rgt.adjacent_horizontal_neighbor_offests) do
|
||||
pipe = minetest.get_node(pos +offset)
|
||||
if minetest.get_item_group(pipe.name, basename.."_stair") > 0 then
|
||||
neighbors[#neighbors +1] = offset
|
||||
end
|
||||
end
|
||||
|
||||
if #neighbors == 1 then
|
||||
node.name = basename.."_stair"
|
||||
node.param2 = minetest.dir_to_facedir(-neighbors[1]:rotate(vector.new(0, math.pi /2, 0)))
|
||||
minetest.swap_node(pos, node)
|
||||
elseif #neighbors > 1 then
|
||||
-- Just ue the first two neighbors.
|
||||
if neighbors[1].x ~= 0 and neighbors[2].x ~= 0 or neighbors[1].z ~= 0 and neighbors[2].z ~= 0 then
|
||||
node.name = basename.."_stair"
|
||||
node.param2 = minetest.dir_to_facedir(neighbors[1])
|
||||
end
|
||||
minetest.swap_node(pos, node)
|
||||
end
|
||||
|
||||
if not leaf then
|
||||
for _, x in ipairs(neighbors) do
|
||||
update_pipe(pos +x, true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function ns.register_stair(def)
|
||||
def = table.copy(def)
|
||||
def._variants = nil
|
||||
|
||||
def.groups[def._name.."_stair"] = 1
|
||||
|
||||
rgt.register_node(def._name.."_stair", extend(table.copy(def), {
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue