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(), })