forked from minetest/minetest_game
menu
mods
beds
boats
bones
bucket
carts
creative
default
models
character.b3d
character.blend
character.png
torch_ceiling.obj
torch_floor.obj
torch_wall.obj
schematics
sounds
textures
README.txt
aliases.lua
crafting.lua
craftitems.lua
functions.lua
furnace.lua
init.lua
item_entity.lua
legacy.lua
license.txt
mapgen.lua
nodes.lua
player.lua
tools.lua
torch.lua
trees.lua
doors
dye
farming
fire
flowers
give_initial_stuff
nyancat
screwdriver
sethome
stairs
tnt
vessels
walls
wool
xpanes
.gitignore
.luacheckrc
.travis.yml
README.txt
game.conf
game_api.txt
minetest.conf
minetest.conf.example
settingtypes.txt
This merges the current state of the well-maintained and tested `torches` mod as I've maintained it for the last 6 months. This started out as a thorough cleanup of 3D torches by blockmen, where some of the initial code still remains. The models were redone entirely from scratch and have been extensively tested with dozens of animated textures converted with mcimport, and look a lot better than the original 3D Torches mod. The ceiling torch is retained and functional. The `wieldlight` addition that the torches mod has was removed, since it relies on wieldview to look decent. This can stay external mod code. I've opted to move the torch nodes to a separate file. It's not a lot of code but nodes.lua is already huge, and I wanted to retain the copyright header and some of the readme.txt notes, and this was the easiest way of doing it. This code passes "default:torch" to nodes with on_rightclick, fixing problems with itemframes. Essentially it has a more elaborate item_place() routine to make sure we're not passing the wall torch to nodes that may display it. The ceiling torch is a separate model and not the same as the floor model. That does mean that there are 3 models in this mod.