Nyancat: Make nyancat and rainbow light sources
authorparamat <mat.gregory@virginmedia.com>
Thu, 10 Nov 2016 03:52:03 +0000 (03:52 +0000)
committerparamat <mat.gregory@virginmedia.com>
Thu, 10 Nov 2016 08:10:41 +0000 (08:10 +0000)
mods/nyancat/init.lua

index 677ed50a14d4f1a9b71bc2124470b8ce4aa068d9..7192beb856310b7571924cce73f649ff97c12475 100644 (file)
@@ -2,6 +2,8 @@ minetest.register_node("nyancat:nyancat", {
        description = "Nyan Cat",
        tiles = {"nyancat_side.png", "nyancat_side.png", "nyancat_side.png",
                "nyancat_side.png", "nyancat_back.png", "nyancat_front.png"},
+       paramtype = "light",
+       light_source = default.LIGHT_MAX,
        paramtype2 = "facedir",
        groups = {cracky = 2},
        is_ground_content = false,
@@ -16,6 +18,8 @@ minetest.register_node("nyancat:nyancat_rainbow", {
                "nyancat_rainbow.png^[transformR90",
                "nyancat_rainbow.png"
        },
+       paramtype = "light",
+       light_source = default.LIGHT_MAX,
        paramtype2 = "facedir",
        groups = {cracky = 2},
        is_ground_content = false,