Add support for real_torch, screenshot.png and update README.md
This commit is contained in:
parent
f8e24cac81
commit
56ddd0f5e3
@ -1,5 +1,10 @@
|
|||||||
# 2D Torches [2d_torches]
|
# 2D Torches [2d_torches]
|
||||||
Simple mod for MTG that makes default torches look 2D (just like in older versions)
|
Simple mod for MTG that makes default torches look 2D (just like in older versions)
|
||||||
|
|
||||||
|
**Depends:** default
|
||||||
|
**Optional depends:** real_torch
|
||||||
|
|
||||||
|
![Screenshot](screenshot.png)
|
||||||
|
|
||||||
## License
|
## License
|
||||||
Code is licensed under Unlicense. See LICENSE file or <https://unlicense.org/> for details. Thanks.
|
Code is licensed under Unlicense. See LICENSE file or <https://unlicense.org/> for details. Thanks.
|
||||||
|
24
init.lua
24
init.lua
@ -1,3 +1,4 @@
|
|||||||
|
-- Support for default torches
|
||||||
minetest.override_item("default:torch", {
|
minetest.override_item("default:torch", {
|
||||||
drawtype = "torchlike",
|
drawtype = "torchlike",
|
||||||
mesh = "",
|
mesh = "",
|
||||||
@ -18,3 +19,26 @@ minetest.override_item("default:torch_ceiling", {
|
|||||||
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3}
|
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3}
|
||||||
}},
|
}},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Support for Real Torches mod
|
||||||
|
--
|
||||||
|
-- NOTE: it's true that real_torch mod has 2D version,
|
||||||
|
-- but it's used ONLY on old Minetest Game versions,
|
||||||
|
-- before 3D torches were added.
|
||||||
|
--
|
||||||
|
if minetest.get_modpath("real_torch") then
|
||||||
|
minetest.override_item("real_torch:torch", {
|
||||||
|
drawtype = "torchlike",
|
||||||
|
mesh = "",
|
||||||
|
})
|
||||||
|
minetest.override_item("real_torch:torch_wall", {
|
||||||
|
drawtype = "torchlike",
|
||||||
|
mesh = "",
|
||||||
|
tiles = {"real_torch_wall.png"},
|
||||||
|
})
|
||||||
|
minetest.override_item("real_torch:torch_ceiling", {
|
||||||
|
drawtype = "torchlike",
|
||||||
|
mesh = "",
|
||||||
|
tiles = {"real_torch_ceiling.png"},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
2
mod.conf
2
mod.conf
@ -1,2 +1,4 @@
|
|||||||
name = 2d_torches
|
name = 2d_torches
|
||||||
|
description = Replaces 3D torches with "retro" 2D ones
|
||||||
depends = default
|
depends = default
|
||||||
|
optional_depends = real_torch
|
||||||
|
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 162 KiB |
Loading…
x
Reference in New Issue
Block a user