Compare commits
5 Commits
733eb891b1
...
edf3f7f9e6
Author | SHA1 | Date |
---|---|---|
ThorfinnS | edf3f7f9e6 | |
Ezhh | 0a38164147 | |
ezhh | ccc6627bf3 | |
ezhh | 931a29427c | |
ezhh | 103f284ed3 |
39
LICENSE.txt
|
@ -1,7 +1,38 @@
|
|||
|
||||
|
||||
Torch model: CC-BY 3.0 BlockMen, from the mod: https://github.com/BlockMen/torches
|
||||
|
||||
Textures:
|
||||
Original torch textures from minetest_game/default
|
||||
Recoloured textures and edits by Shara RedCat
|
||||
|
||||
Recoloured textures and edits by Shara RedCat
|
||||
Torch model:
|
||||
License: CC-BY 3.0
|
||||
Attribution: BlockMen, from https://github.com/BlockMen/torches
|
||||
|
||||
Code:
|
||||
License: MIT (https://opensource.org/licenses/MIT)
|
||||
By Shara RedCat
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2017 Shara RedCat
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
47
crafting.lua
|
@ -1,28 +1,39 @@
|
|||
|
||||
local recipe_list
|
||||
local modname
|
||||
|
||||
-- recipes when caverealms is present
|
||||
if minetest.get_modpath("caverealms") then
|
||||
|
||||
local recipe_list = {
|
||||
recipe_list = {
|
||||
{"black", "spike",}, {"blue", "glow_crystal",},
|
||||
{"cyan", "glow_gem",}, {"green", "glow_emerald",},
|
||||
{"magenta", "salt_gem",}, {"orange", "fire_vine",},
|
||||
{"purple", "glow_amethyst",}, {"red", "glow_ruby",},
|
||||
{"yellow", "glow_mese",}, {"white", "glow_ore",},
|
||||
}
|
||||
|
||||
for _, item in pairs(recipe_list) do
|
||||
|
||||
local colour = item[1]
|
||||
local ingredient = item[2]
|
||||
|
||||
minetest.register_craft({
|
||||
output = "abritorch:torch_"..colour.." 4",
|
||||
recipe = {
|
||||
{"default:torch", "", "default:torch" },
|
||||
{"", "caverealms:"..ingredient, "" },
|
||||
{"default:torch", "", "default:torch" },
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
modname = "caverealms"
|
||||
-- recipes when caverealms not present
|
||||
else
|
||||
recipe_list = {
|
||||
{"black", "black",}, {"blue", "blue",},
|
||||
{"cyan", "cyan",}, {"green", "green",},
|
||||
{"magenta", "magenta",}, {"orange", "orange",},
|
||||
{"purple", "violet",}, {"red", "red",},
|
||||
{"yellow", "yellow",}, {"white", "white",},
|
||||
}
|
||||
modname = "dye"
|
||||
end
|
||||
|
||||
for i in ipairs(recipe_list) do
|
||||
local colour = recipe_list[i][1]
|
||||
local ingredient = recipe_list[i][2]
|
||||
|
||||
minetest.register_craft({
|
||||
output = "abritorch:torch_"..colour.." 4",
|
||||
recipe = {
|
||||
{"default:torch", "", "default:torch" },
|
||||
{"", modname..":"..ingredient, "" },
|
||||
{"default:torch", "", "default:torch" },
|
||||
}
|
||||
})
|
||||
end
|
||||
|
|
After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 807 B |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 808 B |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 807 B |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 760 B |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 760 B |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 820 B |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 760 B |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 782 B |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 759 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 273 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 275 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 280 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 280 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 279 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 280 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 267 B |