Added 32x graphical overlays.
Also added options to enable/disable either manual or Technic upgrading.master
After Width: | Height: | Size: 419 KiB |
After Width: | Height: | Size: 254 B |
After Width: | Height: | Size: 311 B |
After Width: | Height: | Size: 284 B |
After Width: | Height: | Size: 294 B |
After Width: | Height: | Size: 265 B |
After Width: | Height: | Size: 267 B |
After Width: | Height: | Size: 278 B |
After Width: | Height: | Size: 275 B |
After Width: | Height: | Size: 266 B |
After Width: | Height: | Size: 287 B |
15
upgrades.lua
|
@ -1,3 +1,6 @@
|
|||
local enable_field_upgrades = true
|
||||
local enable_technic_upgrades = true
|
||||
|
||||
local recipes = {
|
||||
[1] = function(item, material)
|
||||
return {
|
||||
|
@ -60,12 +63,14 @@ local function upgrade_recipe(item, level)
|
|||
or level > 3 and titanite.large_shard
|
||||
or titanite.small_shard
|
||||
-- Direct crafting recipe
|
||||
minetest.register_craft({
|
||||
output = upgrade_name,
|
||||
recipe = recipes[quantity](prev,material)
|
||||
})
|
||||
if enable_field_upgrades then
|
||||
minetest.register_craft({
|
||||
output = upgrade_name,
|
||||
recipe = recipes[quantity](prev,material)
|
||||
})
|
||||
end
|
||||
-- Technic Alloying Recipes
|
||||
if technic then
|
||||
if technic and enable_technic_upgrades then
|
||||
local shards = titanite.shard_count[level]
|
||||
technic.register_alloy_recipe({input = {prev, titanite.small_shard.." "..shards}, output = upgrade_name})
|
||||
technic.register_extractor_recipe({
|
||||
|
|