Suporte a xdecor e 3d_armor

master
BrunoMine 2018-08-09 15:52:16 -03:00
parent 900e6e9156
commit 9e02de53af
5 changed files with 195 additions and 0 deletions

View File

@ -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")

View File

@ -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 <http://www.gnu.org/licenses/>.
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

View File

@ -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 <http://www.gnu.org/licenses/>.
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

View File

@ -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 <http://www.gnu.org/licenses/>.
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

View File

@ -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 <http://www.gnu.org/licenses/>.
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