Add support for real_torch, screenshot.png and update README.md

This commit is contained in:
Mikita Wiśniewski 2022-04-07 16:18:04 +07:00
parent f8e24cac81
commit 56ddd0f5e3
4 changed files with 31 additions and 0 deletions

View File

@ -1,5 +1,10 @@
# 2D Torches [2d_torches]
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
Code is licensed under Unlicense. See LICENSE file or <https://unlicense.org/> for details. Thanks.

View File

@ -1,3 +1,4 @@
-- Support for default torches
minetest.override_item("default:torch", {
drawtype = "torchlike",
mesh = "",
@ -18,3 +19,26 @@ minetest.override_item("default:torch_ceiling", {
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

View File

@ -1,2 +1,4 @@
name = 2d_torches
description = Replaces 3D torches with "retro" 2D ones
depends = default
optional_depends = real_torch

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB