added aliases and tools

This commit is contained in:
TechRunner2 2017-01-23 13:20:03 -06:00
parent b177c0beba
commit df1ed707b8
4 changed files with 58 additions and 23 deletions

View file

@ -1,3 +1,4 @@
--Nodes
minetest.register_alias("aether_dirt","aether2_minetest:aether_dirt") minetest.register_alias("aether_dirt","aether2_minetest:aether_dirt")
minetest.register_alias("hollystone","aether2_minetest:hollystone") minetest.register_alias("hollystone","aether2_minetest:hollystone")
minetest.register_alias("skyroot","aether2_minetest:skyroot_logs") minetest.register_alias("skyroot","aether2_minetest:skyroot_logs")
@ -7,4 +8,18 @@ minetest.register_alias("skyroot_leaves","aether2_minetest:skyroot_leaves")
minetest.register_alias("skyroot_planks","aether2_minetest:skyroot_planks") minetest.register_alias("skyroot_planks","aether2_minetest:skyroot_planks")
minetest.register_alias("golden_oak_planks","aether2_minetest:golden_oak_planks") minetest.register_alias("golden_oak_planks","aether2_minetest:golden_oak_planks")
minetest.register_alias("ambrosium_torch","aether2_minetest:ambrosium_torch") minetest.register_alias("ambrosium_torch","aether2_minetest:ambrosium_torch")
minetest.register_alias("golden_oak","aether2_minetest:golden_oak_logs")
--Items
minetest.register_alias("skyroot_stick","aether2_minetest:skyroot_stick")
minetest.register_alias("golden_oak_stick","aether2_minetest:golden_oak_stick")
minetest.register_alias("ambrosium_shard","aether2_minetest:ambrosium_shard")
minetest.register_alias("aechor_petal","aether2_minetest:aechor_petal")
minetest.register_alias("golden_amber","aether2_minetest:golden_amber")
minetest.register_alias("skyroot_stick","aether2_minetest:skyroot_stick")
minetest.register_alias("zanite_gemstone","aether2_minetest:zanite_gemstone")
minetest.register_alias("continuum_orb","aether2_minetest:continuum_orb")
minetest.register_alias("blueberry","aether2_minetest:blue_berry")
--Armor
--Tools

View file

@ -1,10 +1,18 @@
--Enable or Disable parts of the mod --Enable or Disable parts of the mod
run_ABM = true run_ABM = false
enable_mobs = true
enable_crafting = true enable_mobs = false
enable_nodes = true
enable_cooking = true enable_crafting = false
enable_items = true
enable_fuels = true enable_nodes = false
enable_tools = true
enable_functions = true enable_cooking = false
enable_items = false
enable_fuels = false
enable_tools = false
enable_functions = false

View file

@ -1,35 +1,33 @@
aether2_minetest = {} aether2_minetest = {}
local default_path = minetest.get_modpath("aether2_minetest") local default_path = minetest.get_modpath("aether2_minetest")
--Load File --Load File
dofile(minetest.get_modpath("aether2_minetest") .. "/config.txt") dofile(minetest.get_modpath("aether2_minetest") .. "/config.txt")
dofile(minetest.get_modpath("aether2_minetest") .. "/aliases.lua") dofile(minetest.get_modpath("aether2_minetest") .. "/aliases.lua")
if run_ABM then if run_ABM == true then
dofile(minetest.get_modpath('aether2_minetest')..'/abm.lua') dofile(minetest.get_modpath('aether2_minetest')..'/abm.lua')
end end
if enable_mobs then if enable_mobs == true then
dofile(minetest.get_modpath('aether2_minetest')..'/mobs.lua') dofile(minetest.get_modpath('aether2_minetest')..'/mobs.lua')
end end
if enable_crafting then if enable_crafting == true then
dofile(minetest.get_modpath('aether2_minetest')..'/crafting.lua') dofile(minetest.get_modpath('aether2_minetest')..'/crafting.lua')
end end
if enable_nodes then if enable_nodes == true then
dofile(minetest.get_modpath('aether2_minetest')..'/nodes.lua') dofile(minetest.get_modpath('aether2_minetest')..'/nodes.lua')
end end
if enable_cooking then if enable_cooking == true then
dofile(minetest.get_modpath('aether2_minetest')..'/cooking.lua') dofile(minetest.get_modpath('aether2_minetest')..'/cooking.lua')
end end
if enable_items then if enable_items == true then
dofile(minetest.get_modpath('aether2_minetest')..'/craft_items.lua') dofile(minetest.get_modpath('aether2_minetest')..'/craft_items.lua')
end end
if enable_fuels then if enable_fuels == true then
dofile(minetest.get_modpath('aether2_minetest')..'/fuels.lua') dofile(minetest.get_modpath('aether2_minetest')..'/fuels.lua')
end end
if enable_tools then if enable_tools == true then
dofile(minetest.get_modpath('aether2_minetest')..'/tools.lua') dofile(minetest.get_modpath('aether2_minetest')..'/tools.lua')
end end
if enable_functions then if enable_functions == true then
dofile(minetest.get_modpath('aether2_minetest')..'/functions.lua') dofile(minetest.get_modpath('aether2_minetest')..'/functions.lua')
end end

View file

@ -0,0 +1,14 @@
--Groups = aetherstone, aehterdirt, aethertemple
minetest.register_tool("aether2_minetest:pick_hollystone", {
description = "Hollystone Pickaxe",
inventory_image = "pick_hollystone.png",
tool_capabilities = {
full_punch_interval = 1.3,
max_drop_level =0,
groupcaps={
aetherstone = {times={[2]=2.0, [3]=1.00}, uses=132}
},
damage_groups = {fleshy=3},
}
sound = {breaks = "default_tool_stonepick"},
})