Загрузить файлы в «/»
This commit is contained in:
parent
58d49079ee
commit
9d29747446
31
init.lua
Normal file
31
init.lua
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
local modname = minetest.get_current_modname()
|
||||||
|
|
||||||
|
local S = minetest.get_translator(modname)
|
||||||
|
|
||||||
|
local modpath = minetest.get_modpath(modname)
|
||||||
|
|
||||||
|
--global variables
|
||||||
|
brewing = {}
|
||||||
|
brewing.settings = {}
|
||||||
|
brewing.craft_list = {} --for potion crafts
|
||||||
|
brewing.effects = {} --for the player effects
|
||||||
|
brewing.players = {} --for the players
|
||||||
|
|
||||||
|
assert(loadfile(modpath.. "/settings.lua"))(modpath)
|
||||||
|
assert(loadfile(modpath.. "/api.lua"))(S, modname)
|
||||||
|
assert(loadfile(modpath.. "/effects.lua"))(S)
|
||||||
|
assert(loadfile(modpath.. "/potions.lua"))(S)
|
||||||
|
assert(loadfile(modpath.. "/potion_crafts.lua"))()
|
||||||
|
assert(loadfile(modpath.. "/cauldron.lua"))(S)
|
||||||
|
assert(loadfile(modpath.. "/cauldron1.lua"))(S)
|
||||||
|
assert(loadfile(modpath.. "/player.lua"))()
|
||||||
|
assert(loadfile(modpath.. "/sound.lua"))()
|
||||||
|
assert(loadfile(modpath.. "/mushroom.lua"))(S)
|
||||||
|
assert(loadfile(modpath.. "/magic_pick.lua"))()
|
||||||
|
assert(loadfile(modpath.. "/magic_sword.lua"))()
|
||||||
|
assert(loadfile(modpath.. "/magic_axe.lua"))()
|
||||||
|
assert(loadfile(modpath.. "/magic_shovel.lua"))()
|
||||||
|
assert(loadfile(modpath.. "/armor.lua"))()
|
||||||
|
assert(loadfile(modpath.. "/ore.lua"))()
|
||||||
|
assert(loadfile(modpath.. "/gem.lua"))()
|
||||||
|
assert(loadfile(modpath.. "/crystal.lua"))()
|
29
magic_axe.lua
Normal file
29
magic_axe.lua
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
minetest.register_tool("brewing:magic_axe", {
|
||||||
|
description = ("Магический Топор"),
|
||||||
|
inventory_image = "brewing_magic_axe.png",
|
||||||
|
wield_image = "brewing_magic_axe.png",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.8,
|
||||||
|
max_drop_level = 1,
|
||||||
|
groupcaps = {
|
||||||
|
choppy = {
|
||||||
|
times = {[1] = 2.00, [2] = 0.80, [3] = 0.40},
|
||||||
|
uses = 40,
|
||||||
|
maxlevel = 3
|
||||||
|
}
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy = 7}
|
||||||
|
},
|
||||||
|
groups = {axe = 1},
|
||||||
|
sound = {breaks = "default_tool_breaks"}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "brewing:magic_axe",
|
||||||
|
recipe = {
|
||||||
|
{"brewing:magic_gem", "brewing:magic_gem", ""},
|
||||||
|
{"brewing:magic_gem", "default:stick", ""},
|
||||||
|
{"", "default:stick", ""}
|
||||||
|
}
|
||||||
|
})
|
29
magic_pick.lua
Normal file
29
magic_pick.lua
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
minetest.register_tool("brewing:magic_pick", {
|
||||||
|
description = ("Магическая Кирка"),
|
||||||
|
inventory_image = "brewing_magic_pick.png",
|
||||||
|
wield_image = "brewing_magic_pick.png",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.7,
|
||||||
|
max_drop_level = 3,
|
||||||
|
groupcaps={
|
||||||
|
cracky = {
|
||||||
|
times = {[1] = 1.8, [2] = 0.8, [3] = 0.40},
|
||||||
|
uses = 40,
|
||||||
|
maxlevel = 3
|
||||||
|
}
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy = 6}
|
||||||
|
},
|
||||||
|
groups = {pickaxe = 1},
|
||||||
|
sound = {breaks = "default_tool_breaks"}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "brewing:magic_pick",
|
||||||
|
recipe = {
|
||||||
|
{"brewing:magic_gem", "brewing:magic_gem", "brewing:magic_gem"},
|
||||||
|
{"", "default:stick", ""},
|
||||||
|
{"", "default:stick", ""}
|
||||||
|
}
|
||||||
|
})
|
29
magic_shovel.lua
Normal file
29
magic_shovel.lua
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
minetest.register_tool("brewing:magic_shovel", {
|
||||||
|
description = ("Магическая Лопата"),
|
||||||
|
inventory_image = "brewing_magic_shovel.png",
|
||||||
|
wield_image = "brewing_magic_shovel.png^[transformR90",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 1.0,
|
||||||
|
max_drop_level = 1,
|
||||||
|
groupcaps = {
|
||||||
|
crumbly = {
|
||||||
|
times = {[1] = 1.10, [2] = 0.50, [3] = 0.30},
|
||||||
|
uses = 30,
|
||||||
|
maxlevel = 3
|
||||||
|
}
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy = 4}
|
||||||
|
},
|
||||||
|
groups = {shovel = 1},
|
||||||
|
sound = {breaks = "default_tool_breaks"}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "brewing:magic_shovel",
|
||||||
|
recipe = {
|
||||||
|
{"", "brewing:magic_gem", ""},
|
||||||
|
{"", "default:stick", ""},
|
||||||
|
{"", "default:stick", ""}
|
||||||
|
}
|
||||||
|
})
|
29
magic_sword.lua
Normal file
29
magic_sword.lua
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
minetest.register_tool("brewing:magic_sword", {
|
||||||
|
description = ("Магический Меч"),
|
||||||
|
inventory_image = "brewing_magic_sword.png",
|
||||||
|
wield_image = "brewing_magic_sword.png",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.6,
|
||||||
|
max_drop_level = 1,
|
||||||
|
groupcaps = {
|
||||||
|
snappy = {
|
||||||
|
times = {[1] = 1.70, [2] = 0.70, [3] = 0.25},
|
||||||
|
uses = 50,
|
||||||
|
maxlevel = 3
|
||||||
|
}
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy = 10}
|
||||||
|
},
|
||||||
|
groups = {sword = 1},
|
||||||
|
sound = {breaks = "default_tool_breaks"}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "brewing:magic_sword",
|
||||||
|
recipe = {
|
||||||
|
{"", "brewing:magic_gem", ""},
|
||||||
|
{"", "brewing:magic_gem", ""},
|
||||||
|
{"", "default:stick", ""}
|
||||||
|
}
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user