This commit is contained in:
Milan2018 2021-07-28 18:55:33 +02:00
parent 171898f275
commit c7d8f11e21
4 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,6 @@
if true then return end
-- adoors by TumeniNodes (C) 2018 -- adoors by TumeniNodes (C) 2018
screwdriver = screwdriver or {} screwdriver = screwdriver or {}

View file

@ -28,6 +28,17 @@ end
--Node will be called angledglass:glass_<subname> --Node will be called angledglass:glass_<subname>
function angledglass.register_glass(subname, recipeitem, groups, images, description, sounds) function angledglass.register_glass(subname, recipeitem, groups, images, description, sounds)
local i=(images[1]=="default_obsidian_glass.png"
and "default:obsidian_glass"
or "default:glass")
minetest.register_craft({
output="angledglass:glass"..subname,recipe={
{recipeitem,i,recipeitem},
{recipeitem,i,recipeitem},
{recipeitem,i,recipeitem},
}})
groups.glass = 1 groups.glass = 1
minetest.register_node(":angledglass:glass" .. subname, { minetest.register_node(":angledglass:glass" .. subname, {

View file

@ -135,6 +135,9 @@ end
-- Nodes will be called angledwalls:{angled_wall,low_angled_wall,corner}_<subname> -- Nodes will be called angledwalls:{angled_wall,low_angled_wall,corner}_<subname>
function angledwalls.register_angled_wall_and_low_angled_wall_and_corner(subname, recipeitem, groups, images,desc_angled_wall, desc_low_angled_wall, desc_corner, sounds) function angledwalls.register_angled_wall_and_low_angled_wall_and_corner(subname, recipeitem, groups, images,desc_angled_wall, desc_low_angled_wall, desc_corner, sounds)
if true then return end
angledwalls.register_angled_wall(subname, recipeitem, groups, images, desc_angled_wall, sounds) angledwalls.register_angled_wall(subname, recipeitem, groups, images, desc_angled_wall, sounds)
angledwalls.register_low_angled_wall(subname, recipeitem, groups, images, desc_low_angled_wall, sounds) angledwalls.register_low_angled_wall(subname, recipeitem, groups, images, desc_low_angled_wall, sounds)
angledwalls.register_corner(subname, recipeitem, groups, images, desc_corner, sounds) angledwalls.register_corner(subname, recipeitem, groups, images, desc_corner, sounds)

View file

@ -6,6 +6,9 @@ slopedwalls = {}
-- Node will be called slopedwalls:sloped_wall_<subname> -- Node will be called slopedwalls:sloped_wall_<subname>
function slopedwalls.register_sloped_wall(subname, recipeitem, groups, images, description, sounds) function slopedwalls.register_sloped_wall(subname, recipeitem, groups, images, description, sounds)
if true then return end
groups.sloped = 1 groups.sloped = 1
minetest.register_node(":slopedwalls:sloped_wall" .. subname, { minetest.register_node(":slopedwalls:sloped_wall" .. subname, {
description = description, description = description,