From 7013da074940fb47a68628ec4028dc530054cb35 Mon Sep 17 00:00:00 2001 From: rudzik8 Date: Sun, 3 Apr 2022 12:13:50 +0700 Subject: [PATCH] Initial files --- init.lua | 20 ++++++++++++++++++++ mod.conf | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 init.lua create mode 100644 mod.conf diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..ffbe695 --- /dev/null +++ b/init.lua @@ -0,0 +1,20 @@ +minetest.override_item("default:torch", { + drawtype = "torchlike", + mesh = "", +}) +minetest.override_item("default:torch_wall", { + drawtype = "torchlike", + mesh = "", + tiles = {{ + name = "default_torch_animated.png", + animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3} + }}, +}) +minetest.override_item("default:torch_ceiling", { + drawtype = "torchlike", + mesh = "", + tiles = {{ + name = "default_torch_on_ceiling_animated.png", + animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3} + }}, +}) diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..401d28e --- /dev/null +++ b/mod.conf @@ -0,0 +1,2 @@ +name = 2d_torches +depends = default