aboutsummaryrefslogtreecommitdiff
path: root/redefinitions.lua
blob: c42d9203c6f217859f354cf90b53ec1e0535fdbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
--[[
More Blocks: redefinitions of default stuff

Copyright (c) 2011-2017 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]

-- Redefinitions of some default crafting recipes:

minetest.register_craft({
	output = "default:sign_wall 4",
	recipe = {
		{"default:wood", "default:wood", "default:wood"},
		{"default:wood", "default:wood", "default:wood"},
		{"", "default:stick", ""},
	}
})

minetest.register_craft({
	output = "default:ladder 4",
	recipe = {
		{"default:stick", "", "default:stick"},
		{"default:stick", "default:stick", "default:stick"},
		{"default:stick", "", "default:stick"},
	}
})


minetest.clear_craft({ 	recipe = { 
		{"default:papyrus", "default:papyrus", "default:papyrus"},
	{"","","",},
	{"","","",}
	}
 }) 

minetest.register_craft({
	output = "default:paper 4",
	recipe = {
		{"default:papyrus", "default:papyrus", "default:papyrus"},
	}
})

minetest.register_craft({
	output = "default:rail 24",
	recipe = {
		{"default:steel_ingot", "", "default:steel_ingot"},
		{"default:steel_ingot", "default:stick", "default:steel_ingot"},
		{"default:steel_ingot", "", "default:steel_ingot"},
	}
})

minetest.register_craft({
	type = "toolrepair",
	additional_wear = -0.10, -- Tool repair buff (10% bonus instead of 2%).
})


-- minetest.register_alias("old","new")

-- bookshelf
minetest.register_alias("moreblocks:empty_shelf","moreblocks:empty_bookshelf")


-- checkered stones and the cut versions
minetest.register_alias("moreblocks:checker_stone_tile","moreblocks:split_stone_tile_alt")
-- loop though the circular saw subtypes

cs_names = {
        {"micro", "_1"},
        {"panel", "_1"},
        {"micro", "_2"},
        {"panel", "_2"},
        {"micro", "_4"},
        {"panel", "_4"},
        {"micro", ""},
        {"panel", ""},

        {"micro", "_12"},
        {"panel", "_12"},
        {"micro", "_14"},
        {"panel", "_14"},
        {"micro", "_15"},
        {"panel", "_15"},
        {"stair", "_outer"},
        {"stair", ""},

        {"stair", "_inner"},
        {"slab", "_1"},
        {"slab", "_2"},
        {"slab", "_quarter"},
        {"slab", ""},
        {"slab", "_three_quarter"},
        {"slab", "_14"},
        {"slab", "_15"},

        {"slab", "_two_sides"},
        {"slab", "_three_sides"},
        {"slab", "_three_sides_u"},
        {"stair", "_half"},
        {"stair", "_alt_1"},
        {"stair", "_alt_2"},
        {"stair", "_alt_4"},
        {"stair", "_alt"},

        {"slope", ""},
        {"slope", "_half"},
        {"slope", "_half_raised"},
        {"slope", "_inner"},
        {"slope", "_inner_half"},
        {"slope", "_inner_half_raised"},
        {"slope", "_inner_cut"},
        {"slope", "_inner_cut_half"},

        {"slope", "_inner_cut_half_raised"},
        {"slope", "_outer"},
        {"slope", "_outer_half"},
        {"slope", "_outer_half_raised"},
        {"slope", "_outer_cut"},
        {"slope", "_outer_cut_half"},
        {"slope", "_outer_cut_half_raised"},
        {"slope", "_cut"},
}

local nodename_dev = "checker_stone_tile"
local nodename_11  = "split_stone_tile_alt"


for i = 1, #cs_names do
	local t = cs_names[i]
        local cs_nodename_dev =  "moreblocks" .. ":" .. t[1] .. "_" .. nodename_dev .. t[2]
        local cs_nodename_11 = "moreblocks" .. ":" .. t[1] .. "_" .. nodename_11 .. t[2]
	minetest.register_alias(cs_nodename_dev,cs_nodename_11)
end



-- wood tiles
minetest.register_alias("moreblocks:wood_tile_offset", "moreblocks:wood_tile_up")

-- desert stone stair
-- created in dungeons

-- minetest.register_alias("stairs:stair_desert_stone","moreblocks:stair_desert_stone")


-- new trapstones and other blocks
--  all_faces_acaia_tree
--  all_faces_pine_tree
--  compressed_dirt
--  trap_desert_stone
--  trap_obsidian
--  trap_obsidian_glass
--  trap_sandstone
--  in nodes.lua and crafting.lua