From 9e02de53af11b3f00b96e4ac2cece926aa1f97cb Mon Sep 17 00:00:00 2001 From: BrunoMine Date: Thu, 9 Aug 2018 15:52:16 -0300 Subject: [PATCH] Suporte a xdecor e 3d_armor --- init.lua | 4 ++ mods_suportados/3d_armor.lua | 59 +++++++++++++++++++++++++ mods_suportados/3d_armor_stand.lua | 28 ++++++++++++ mods_suportados/shields.lua | 35 +++++++++++++++ mods_suportados/xdecor.lua | 69 ++++++++++++++++++++++++++++++ 5 files changed, 195 insertions(+) create mode 100644 mods_suportados/3d_armor.lua create mode 100644 mods_suportados/3d_armor_stand.lua create mode 100644 mods_suportados/shields.lua create mode 100644 mods_suportados/xdecor.lua diff --git a/init.lua b/init.lua index 7a690c6..fbcd886 100644 --- a/init.lua +++ b/init.lua @@ -53,6 +53,10 @@ dofile(modpath.."/metodos/place_node.lua") dofile(modpath.."/mods_suportados/minetest_game.lua") dofile(modpath.."/mods_suportados/farming_redo.lua") dofile(modpath.."/mods_suportados/moreores.lua") +dofile(modpath.."/mods_suportados/3d_armor.lua") +dofile(modpath.."/mods_suportados/3d_armor_stand.lua") +dofile(modpath.."/mods_suportados/shields.lua") +dofile(modpath.."/mods_suportados/xdecor.lua") notificar("OK") diff --git a/mods_suportados/3d_armor.lua b/mods_suportados/3d_armor.lua new file mode 100644 index 0000000..a3ce673 --- /dev/null +++ b/mods_suportados/3d_armor.lua @@ -0,0 +1,59 @@ +--[[ + Mod Xpro para Minetest + Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine) + + Recebeste uma cópia da GNU Lesser General + Public License junto com esse software, + se não, veja em . + + Mod 3D_Armor + ]] + + +if not minetest.get_modpath("3d_armor") then return end + +-- Traduções +local S = xpro.S + +-- Crafts +for name,xp in pairs({ + -- Capacete + ["3d_armor:helmet_wood"] = 1, + ["3d_armor:helmet_cactus"] = 1, + ["3d_armor:helmet_steel"] = 3, + ["3d_armor:helmet_bronze"] = 6, + ["3d_armor:helmet_diamond"] = 9, + ["3d_armor:helmet_gold"] = 5, + ["3d_armor:helmet_mithril"] = 8, + -- Peitoral + ["3d_armor:chestplate_wood"] = 1, + ["3d_armor:chestplate_cactus"] = 1, + ["3d_armor:chestplate_steel"] = 7, + ["3d_armor:chestplate_bronze"] = 12, + ["3d_armor:chestplate_diamond"] = 16, + ["3d_armor:chestplate_gold"] = 14, + ["3d_armor:chestplate_mithril"] = 15, + -- Calças + ["3d_armor:leggings_wood"] = 1, + ["3d_armor:leggings_cactus"] = 1, + ["3d_armor:leggings_steel"] = 4, + ["3d_armor:leggings_bronze"] = 7, + ["3d_armor:leggings_diamond"] = 14, + ["3d_armor:leggings_gold"] = 11, + ["3d_armor:leggings_mithril"] = 13, + -- Botas + ["3d_armor:boots_wood"] = 1, + ["3d_armor:boots_wood"] = 1, + ["3d_armor:boots_cactus"] = 1, + ["3d_armor:boots_steel"] = 3, + ["3d_armor:boots_bronze"] = 5, + ["3d_armor:boots_diamond"] = 7, + ["3d_armor:boots_gold"] = 5, + ["3d_armor:boots_mithril"] = 6, +}) do + xpro.register_on_craft(name, xp) +end + + + + diff --git a/mods_suportados/3d_armor_stand.lua b/mods_suportados/3d_armor_stand.lua new file mode 100644 index 0000000..b524479 --- /dev/null +++ b/mods_suportados/3d_armor_stand.lua @@ -0,0 +1,28 @@ +--[[ + Mod Xpro para Minetest + Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine) + + Recebeste uma cópia da GNU Lesser General + Public License junto com esse software, + se não, veja em . + + Mod 3D_Armor_Stand + ]] + + +if not minetest.get_modpath("3d_armor_stand") then return end + +-- Traduções +local S = xpro.S + +-- Crafts +for name,xp in pairs({ + ["3d_armor_stand:armor_stand"] = 1, + ["3d_armor_stand:locked_armor_stand"] = 1, +}) do + xpro.register_on_craft(name, xp) +end + + + + diff --git a/mods_suportados/shields.lua b/mods_suportados/shields.lua new file mode 100644 index 0000000..f0e6b7c --- /dev/null +++ b/mods_suportados/shields.lua @@ -0,0 +1,35 @@ +--[[ + Mod Xpro para Minetest + Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine) + + Recebeste uma cópia da GNU Lesser General + Public License junto com esse software, + se não, veja em . + + Mod Shields + ]] + + +if not minetest.get_modpath("shields") then return end + +-- Traduções +local S = xpro.S + +-- Crafts +for name,xp in pairs({ + ["shields:shield_wood"] = 1, + ["shields:shield_enhanced_wood"] = 1, + ["shields:shield_cactus"] = 1, + ["shields:shield_enhanced_cactus"] = 2, + ["shields:shield_steel"] = 7, + ["shields:shield_bronze"] = 12, + ["shields:shield_diamond"] = 16, + ["shields:shield_gold"] = 14, + ["shields:shield_mithril"] = 15, +}) do + xpro.register_on_craft(name, xp) +end + + + + diff --git a/mods_suportados/xdecor.lua b/mods_suportados/xdecor.lua new file mode 100644 index 0000000..2d37d69 --- /dev/null +++ b/mods_suportados/xdecor.lua @@ -0,0 +1,69 @@ +--[[ + Mod Xpro para Minetest + Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine) + + Recebeste uma cópia da GNU Lesser General + Public License junto com esse software, + se não, veja em . + + Mod Xdecor + ]] + + +if not minetest.get_modpath("xdecor") then return end + +-- Traduções +local S = xpro.S + +-- Crafts +for name,xp in pairs({ + ["xdecor:iron_lightbox"] = 2, + ["xdecor:enchantment_table"] = 8, + ["xdecor:cauldron_empty"] = 3, + ["xdecor:enderchest"] = 1, + ["xdecor:coalstone_tile"] = 3, + ["xdecor:barrel"] = 1, + ["xdecor:cabinet"] = 1, + ["xdecor:cactusbrick"] = 1, + ["xdecor:hive"] = 1, + ["xdecor:barricade"] = 1, + ["xdecor:lantern"] = 1, + ["xdecor:itemframe"] = 1, + ["xdecor:desertstone_tile"] = 1, + ["xdecor:cushion"] = 1, + ["xdecor:mailbox"] = 1, + ["xdecor:moonbrick"] = 1, + ["xdecor:empty_shelf"] = 1, + ["xdecor:multishelf"] = 1, + ["xdecor:packed_ice"] = 1, + ["xdecor:stone_rune"] = 1, + ["xdecor:stone_tile"] = 1, + ["xdecor:wooden_lightbox"] = 1, + ["xdecor:woodframed_glass"] = 1, + ["xdecor:potted_geranium"] = 1, + ["xdecor:potted_rose"] = 1, + ["xdecor:potted_tulip"] = 1, + ["xdecor:potted_viola"] = 1, + ["xdecor:potted_dandelion_white"] = 1, + ["xdecor:potted_dandelion_yellow"] = 1, + ["xdecor:potted_geranium"] = 1, + ["xdecor:tv"] = 1, + ["xdecor:tatami"] = 1, + ["xdecor:table"] = 1, + ["xdecor:workbench"] = 1, + ["xdecor:wood_tile"] = 1, + ["doors:woodglass_door"] = 1, + ["xdecor:slide_door"] = 1, + ["xdecor:screen_door"] = 1, + ["xdecor:prison_door"] = 2, + ["xdecor:rusty_prison_door"] = 2, + ["xdecor:japanese_door"] = 1, + ["xdecor:rope"] = 1, + ["xdecor:painting_1"] = 1, +}) do + xpro.register_on_craft(name, xp) +end + + + +