From 9617c59087d8c7286599143c90a720a21c275238 Mon Sep 17 00:00:00 2001 From: D00Med Date: Sat, 29 Jul 2017 08:04:49 +1000 Subject: [PATCH] stuff --- mods/decoblocks/nodes.lua | 70 +++++++++++++++++++++++++++++++++++++++ mods/fruit/init.lua | 12 +++---- 2 files changed, 76 insertions(+), 6 deletions(-) diff --git a/mods/decoblocks/nodes.lua b/mods/decoblocks/nodes.lua index 2ddb510..889ccf0 100644 --- a/mods/decoblocks/nodes.lua +++ b/mods/decoblocks/nodes.lua @@ -132,6 +132,76 @@ minetest.register_node("decoblocks:moss_stonebrick", { sounds = default.node_sound_stone_defaults(), }) +minetest.register_node("decoblocks:pillar2_base", { + description = "Stone Pillar Base", + tiles = { + "default_stone.png", + }, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = {cracky=1}, + node_box = { + type = "fixed", + fixed = { + {-0.25, -0.5, -0.375, 0.25, 0.5, 0.375}, -- NodeBox1 + {-0.375, -0.5, -0.25, 0.375, 0.5, 0.25}, -- NodeBox2 + {0.125, -0.5, -0.5, 0.5, -0.1875, -0.125}, -- NodeBox3 + {0.125, -0.5, 0.125, 0.5, -0.1875, 0.5}, -- NodeBox4 + {-0.5, -0.5, 0.125, -0.125, -0.1875, 0.5}, -- NodeBox5 + {-0.5, -0.5, -0.5, -0.125, -0.1875, -0.125}, -- NodeBox6 + {-0.4375, -0.5, -0.4375, 0.4375, -0.375, 0.4375}, -- NodeBox7 + } + }, + on_place = minetest.rotate_node +}) + +minetest.register_node("decoblocks:pillar2", { + description = "Stone Pillar", + tiles = { + "default_stone.png", + }, + drawtype = "nodebox", + paramtype = "light", + groups = {cracky=1}, + node_box = { + type = "fixed", + fixed = { + {-0.25, -0.5, -0.375, 0.25, 0.5, 0.375}, -- NodeBox1 + {-0.375, -0.5, -0.25, 0.375, 0.5, 0.25}, -- NodeBox2 + } + } +}) + +minetest.register_node("decoblocks:quartz_arch", { + tiles = { + "default_wood.png", + "default_wood.png", + "default_wood.png", + "default_wood.png", + "default_wood.png", + "default_wood.png" + }, + drawtype = "nodebox", + paramtype = "light", + node_box = { + type = "fixed", + fixed = { + {-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5}, -- NodeBox1 + {-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5}, -- NodeBox2 + {-0.5, -0.3125, 0.375, 0.5, 0.4375, 0.4375}, -- NodeBox3 + {-0.5, 0.375, -0.3125, 0.5, 0.4375, 0.375}, -- NodeBox4 + {-0.5, -0.125, 0.3125, 0.5, 0.375, 0.375}, -- NodeBox5 + {-0.5, 0.3125, -0.125, 0.5, 0.375, 0.3125}, -- NodeBox6 + {-0.5, 0, 0.25, 0.5, 0.3125, 0.3125}, -- NodeBox7 + {-0.5, 0.25, 0, 0.5, 0.3125, 0.25}, -- NodeBox8 + {-0.5, 0.0625, 0.1875, 0.5, 0.25, 0.25}, -- NodeBox9 + {-0.5, 0.1875, 0.0625, 0.5, 0.25, 0.1875}, -- NodeBox10 + {-0.5, 0.125, 0.125, 0.5, 0.1875, 0.1875}, -- NodeBox11 + } + } +}) + minetest.register_node("decoblocks:scarecrow", { description = "Scarecrow", drawtype = "mesh", diff --git a/mods/fruit/init.lua b/mods/fruit/init.lua index cabc9d4..ad1b442 100644 --- a/mods/fruit/init.lua +++ b/mods/fruit/init.lua @@ -6,7 +6,7 @@ minetest.register_node("fruit:leaves_with_mango", { "default_jungleleaves.png^fruit_mango_leaves.png", }, paramtype = "light", - groups = {snappy=1, oddly_breakeable_by_hand=1, not_in_creative_inventory=1}, + groups = {snappy=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1}, drop = "default:jungleleaves", on_destruct = function(pos) minetest.add_item(pos, "fruit:mango") @@ -21,7 +21,7 @@ minetest.register_node("fruit:leaves_with_berry", { "default_leaves_simple.png^fruit_berry_leaves.png", }, paramtype = "light", - groups = {snappy=1, oddly_breakeable_by_hand=1, not_in_creative_inventory=1}, + groups = {snappy=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1}, drop = "default:bush_leaves", on_destruct = function(pos) minetest.add_item(pos, "fruit:berry") @@ -36,7 +36,7 @@ minetest.register_node("fruit:leaves_with_pear", { "default_leaves.png^fruit_pear_leaves.png", }, paramtype = "light", - groups = {snappy=1, oddly_breakeable_by_hand=1, not_in_creative_inventory=1}, + groups = {snappy=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1}, drop = "default:leaves", on_destruct = function(pos) minetest.add_item(pos, "fruit:pear") @@ -51,7 +51,7 @@ minetest.register_node("fruit:leaves_with_plum", { "default_leaves.png^fruit_plum_leaves.png", }, paramtype = "light", - groups = {snappy=1, oddly_breakeable_by_hand=1, not_in_creative_inventory=1}, + groups = {snappy=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1}, drop = "default:leaves", on_destruct = function(pos) minetest.add_item(pos, "fruit:plum") @@ -66,7 +66,7 @@ minetest.register_node("fruit:leaves_with_peach", { "default_leaves.png^fruit_peach_leaves.png", }, paramtype = "light", - groups = {snappy=1, oddly_breakeable_by_hand=1, not_in_creative_inventory=1}, + groups = {snappy=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1}, drop = "default:leaves", on_destruct = function(pos) minetest.add_item(pos, "fruit:peach") @@ -81,7 +81,7 @@ minetest.register_node("fruit:leaves_with_orange", { "default_acacia_leaves.png^fruit_orange_leaves.png", }, paramtype = "light", - groups = {snappy=1, oddly_breakeable_by_hand=1, not_in_creative_inventory=1}, + groups = {snappy=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1}, drop = "default:acacia_leaves", on_destruct = function(pos) minetest.add_item(pos, "fruit:orange")