]> git.scottworley.com Git - pink_flower/commitdiff
Pink Flower
authorScott Worley <scottworley@scottworley.com>
Sun, 18 Oct 2020 21:58:12 +0000 (14:58 -0700)
committerScott Worley <scottworley@scottworley.com>
Sun, 18 Oct 2020 21:58:12 +0000 (14:58 -0700)
depends.txt [new file with mode: 0644]
init.lua [new file with mode: 0644]
textures/pink_flower.png [new file with mode: 0644]

diff --git a/depends.txt b/depends.txt
new file mode 100644 (file)
index 0000000..4ad96d5
--- /dev/null
@@ -0,0 +1 @@
+default
diff --git a/init.lua b/init.lua
new file mode 100644 (file)
index 0000000..34800c3
--- /dev/null
+++ b/init.lua
@@ -0,0 +1,26 @@
+minetest.register_node("pink_flower:pink_flower", {
+       description = "Pink carnation",
+       drawtype = "plantlike",
+       waving = 1,
+       tiles = {"pink_flower.png"},
+       inventory_image = "pink_flower.png",
+       wield_image = "pink_flower.png",
+       sunlight_propagates = true,
+       paramtype = "light",
+       walkable = false,
+       buildable_to = true,
+       stack_max = 99,
+       groups = {
+               attached_node = 1,
+    color_pink = 1,
+    flammable = 1,
+               flora = 1,
+               flower = 1,
+               snappy = 3
+  },
+       sounds = default.node_sound_leaves_defaults(),
+       selection_box = {
+               type = "fixed",
+               fixed = {-2 / 16, -0.5, -2 / 16, 2 / 16, 4 / 16, 2 / 16}
+       }
+})
diff --git a/textures/pink_flower.png b/textures/pink_flower.png
new file mode 100644 (file)
index 0000000..0d029ca
Binary files /dev/null and b/textures/pink_flower.png differ