From a447ac8abd141f5586f86d6a218f830fed8791ce Mon Sep 17 00:00:00 2001 From: TechRunner2 Date: Fri, 20 Jan 2017 10:54:49 -0600 Subject: [PATCH] Added items, blocks, crafting recipes, and a few more files --- aliases.lua | 0 craft_items.lua | 41 +++++++++++++++++++++++++++++++++++++++++ crafting.lua | 13 +++++++++++++ init.lua | 1 + nodes.lua | 30 +++++++++++++++--------------- 5 files changed, 70 insertions(+), 15 deletions(-) create mode 100644 aliases.lua create mode 100644 crafting.lua diff --git a/aliases.lua b/aliases.lua new file mode 100644 index 0000000..e69de29 diff --git a/craft_items.lua b/craft_items.lua index e69de29..ca932ea 100644 --- a/craft_items.lua +++ b/craft_items.lua @@ -0,0 +1,41 @@ +minetest.register_craftitem("aether2_minetest:skyroot_stick",{ + description = "Skyroot Stick", + inventory_image = "skyroot_stick.png", + groups = {flammable = 2}, +}) + +minetest.register_craftitem("aether2_minetest:golden_oak_stick", { + description = "Golden Oak Stick", + inventory_image = "golden_oak_stick.png", + groups = {flammable = 2}, +}) + +minetest.register_craftitem("aether2_minetest:ambrosium_shard", { + description = "Ambrosium SHard", + inventory_image = "ambrosium_shard.png", +}) + +minetest.register_craftitem("aether2_minetest:aechor_petal", { + description = "Aechor Petal", + inventory_image = "aechor_petal.png", +}) + +minetest.register_craftitem("aether2_minetest:golden_amber", { + description = "Golden Amber", + inventory_image = "golden_amber.png", +}) + +minetest.register_craftitem("aether2_minetest:zanite_gemstone", { + description = "Zanite Gemstone", + inventory_image = "zanite_gemstone.png", +}) + +minetest.register_craftitem("aether2_minetest:continuum_orb", { + description = "Continuum Orb" + inventory_image = "continuum_orb.png" +}) + +minetest.register_craftitem("aether2_minetest:blue_berry", { + description = "Blue Berry", + inventory_image = "blue_berry.png" +}) diff --git a/crafting.lua b/crafting.lua new file mode 100644 index 0000000..3c29755 --- /dev/null +++ b/crafting.lua @@ -0,0 +1,13 @@ +minetest.register_craft({ + output = 'aether2_minetest:skyroot_planks', + recipe = { + {'aether2_minetest:skyroot_logs'}, + } +}) + +minetest.register_craft({ + output = 'aether2_minetest:golden_oak_planks', + recipe = { + {'aether2_minetest:golden_oak_logs'}, + } +}) diff --git a/init.lua b/init.lua index 7479a65..12309e1 100644 --- a/init.lua +++ b/init.lua @@ -2,6 +2,7 @@ aether2_minetest = {} --Load File dofile(minetest.get_modpath("aether2_minetest") .. "/config.txt") + dofile(minetest.get_modpath("aether2_minetest") .. "/aliases.lua") if run_ABM then dofile(minetest.get_modpath('aether2_minetest')..'/abm.lua') diff --git a/nodes.lua b/nodes.lua index b55e1d5..e476ba0 100644 --- a/nodes.lua +++ b/nodes.lua @@ -66,23 +66,23 @@ minetest.register_node("aether2_minetest:skyroot_leaves", { paramtype = "light", is_ground_content = false, groups = {snappy = 3, leafdecay = 3, leaves = 1}, - drop = { - max_items = 1, - items = { - { - -- player will get sapling with 1/20 chance - items = {'aether2_minetest:skyroot_sapling'}, - rarity = 20, - }, - { - -- player will get leaves only if he get no saplings, - -- this is because max_items is 1 - items = {'default:leaves'}, - } - } - }, + sounds = default.node_sound_leaves_defaults(), after_place_node = default.after_place_leaves, }) + + +minetest.register_node("aether2_minetest:skyroot_planks", { + description = "Skyroot Planks", + tiles = {"skyroot_planks.png"}, + groupts = {choppy=1, oddly_breakable_by_hand=1}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("aether2_minetest:golden_oak_planks", { + description = "Golden Oak Planks", + tiles = {"golden_oak_planks"}, + groups = {choppy=1, oddly_breakable_by_hand=1}, + sounds = default.node_sound_wood_defaults(), })