]> git.lizzy.rs Git - Crafter.git/commitdiff
Inject torch data
authoroilboi <47129783+oilboi@users.noreply.github.com>
Sat, 27 Jun 2020 09:54:54 +0000 (05:54 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Sat, 27 Jun 2020 09:54:54 +0000 (05:54 -0400)
mods/redstone/torch.lua

index 501258d71bd3e1d511616ca17f30e12e5c60a545..1590284f221d1b3d7d0b9331a67c8d68c9a0416f 100644 (file)
@@ -157,3 +157,12 @@ minetest.register_node("redstone:torch_wall", {
        sounds = main.woodSound(),
 })
 
+
+minetest.register_lbm({
+       name = "redstone:torch_init",
+       nodenames = {"redstone:torch_wall","redstone:torch_floor"},
+       run_at_every_load = true,
+       action = function(pos)
+               redstone.inject(pos,{torch=9})
+       end,
+})
\ No newline at end of file