Overhaul, updated for v5, made configs
108
alias.lua
|
@ -397,8 +397,116 @@ minetest.register_alias("moretrees:spruce_cone", "farming:melon_8")
|
|||
minetest.register_alias("moretrees:fir_cone", "farming:cocoa_2")
|
||||
minetest.register_alias("moretrees:pine_cone", "farming:cocoa_2")
|
||||
minetest.register_alias("moretrees:acorn", "farming:cocoa_2")
|
||||
]]
|
||||
|
||||
--===========================================
|
||||
--===========================================
|
||||
minetest.register_alias("nsspf:amanita_muscaria", "air")
|
||||
minetest.register_alias("nsspf:amanita_muscaria_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:amanita_muscaria_mycelium", "air")
|
||||
minetest.register_alias("nsspf:amanita_phalloides", "air")
|
||||
minetest.register_alias("nsspf:amanita_phalloides_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:amanita_phalloides_mycelium", "air")
|
||||
minetest.register_alias("nsspf:armillaria_mellea", "air")
|
||||
minetest.register_alias("nsspf:boletus_edulis", "air")
|
||||
minetest.register_alias("nsspf:boletus_edulis_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:boletus_edulis_mycelium", "air")
|
||||
minetest.register_alias("nsspf:boletus_pinophilus", "air")
|
||||
minetest.register_alias("nsspf:boletus_pinophilus_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:boletus_pinophilus_mycelium", "air")
|
||||
minetest.register_alias("nsspf:boletus_satanas", "air")
|
||||
minetest.register_alias("nsspf:boletus_satanas_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:boletus_satanas_mycelium", "air")
|
||||
minetest.register_alias("nsspf:cantharellus_cibarius", "air")
|
||||
minetest.register_alias("nsspf:cantharellus_cibarius_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:cantharellus_cibarius_mycelium", "air")
|
||||
minetest.register_alias("nsspf:clitocybe_glacialis", "air")
|
||||
minetest.register_alias("nsspf:clitocybe_glacialis_fungusdirt", "air")
|
||||
minetest.register_alias("nsspf:clitocybe_glacialis_mycelium", "air")
|
||||
minetest.register_alias("nsspf:clitocybula_azurea", "air")
|
||||
minetest.register_alias("nsspf:cooked_amanita_muscaria", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_amanita_phalloides", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_armillaria_mellea", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_boletus_edulis", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_boletus_pinophilus", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_boletus_satanas", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_cantharellus_cibarius", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_clitocybe_glacialis", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_clitocybula_azurea", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_coprinus_atramentarius", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_fistulina_hepatica", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_ganoderma_lucidum", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_gyromitra_esculenta", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_hygrophorus_goetzii", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_lentinus_strigosus", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_lycoperdon_pyriforme", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_macrolepiota_procera", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_marasmius_haematocephalus", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_morchella_conica", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_mycena_chlorophos", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_panellus_pusillus", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_plectania_nannfeldtii", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_psilocybe_cubensis", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_russula_xerampelina", "default:dirt")
|
||||
minetest.register_alias("nsspf:cooked_suillus_grevillei", "default:dirt")
|
||||
minetest.register_alias("nsspf:coprinus_atramentarius", "air")
|
||||
minetest.register_alias("nsspf:coprinus_atramentarius_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:coprinus_atramentarius_mycelium", "air")
|
||||
minetest.register_alias("nsspf:fistulina_hepatica", "air")
|
||||
minetest.register_alias("nsspf:fomes_fomentarius", "air")
|
||||
minetest.register_alias("nsspf:ganoderma_lucidum", "air")
|
||||
minetest.register_alias("nsspf:gyromitra_esculenta", "air")
|
||||
minetest.register_alias("nsspf:gyromitra_esculenta_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:gyromitra_esculenta_mycelium", "air")
|
||||
minetest.register_alias("nsspf:hygrophorus_goetzii", "air")
|
||||
minetest.register_alias("nsspf:hygrophorus_goetzii_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:hygrophorus_goetzii_mycelium", "air")
|
||||
minetest.register_alias("nsspf:lentinus_strigosus", "air")
|
||||
minetest.register_alias("nsspf:lycoperdon_pyriforme", "air")
|
||||
minetest.register_alias("nsspf:lycoperdon_pyriforme_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:lycoperdon_pyriforme_mycelium", "air")
|
||||
minetest.register_alias("nsspf:macrolepiota_procera", "air")
|
||||
minetest.register_alias("nsspf:macrolepiota_procera_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:macrolepiota_procera_mycelium", "air")
|
||||
minetest.register_alias("nsspf:marasmius_haematocephalus", "air")
|
||||
minetest.register_alias("nsspf:morchella_conica", "air")
|
||||
minetest.register_alias("nsspf:morchella_conica_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:morchella_conica_mycelium", "air")
|
||||
minetest.register_alias("nsspf:mycena_chlorophos", "air")
|
||||
minetest.register_alias("nsspf:mycena_chlorophos_light", "air")
|
||||
minetest.register_alias("nsspf:panellus_pusillus", "air")
|
||||
minetest.register_alias("nsspf:panellus_pusillus_light", "air")
|
||||
minetest.register_alias("nsspf:plectania_nannfeldtii", "air")
|
||||
minetest.register_alias("nsspf:plectania_nannfeldtii_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:plectania_nannfeldtii_mycelium", "air")
|
||||
minetest.register_alias("nsspf:psilocybe_cubensis", "air")
|
||||
minetest.register_alias("nsspf:psilocybe_cubensis_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:psilocybe_cubensis_mycelium", "air")
|
||||
minetest.register_alias("nsspf:russula_xerampelina", "air")
|
||||
minetest.register_alias("nsspf:russula_xerampelina_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:russula_xerampelina_mycelium", "air")
|
||||
minetest.register_alias("nsspf:suillus_grevillei", "air")
|
||||
minetest.register_alias("nsspf:suillus_grevillei_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:suillus_grevillei_mycelium", "air")
|
||||
minetest.register_alias("nsspf:terfezia_arenaria_fruit", "default:dirt")
|
||||
minetest.register_alias("nsspf:terfezia_arenaria_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:terfezia_arenaria_tuber_mycelium", "air")
|
||||
minetest.register_alias("nsspf:tuber_borchii_fruit", "default:dirt")
|
||||
minetest.register_alias("nsspf:tuber_borchii_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:tuber_borchii_tuber_mycelium", "air")
|
||||
minetest.register_alias("nsspf:tuber_magnatum_pico_fruit", "default:dirt")
|
||||
minetest.register_alias("nsspf:tuber_magnatum_pico_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:tuber_magnatum_pico_tuber_mycelium", "air")
|
||||
minetest.register_alias("nsspf:tuber_melanosporum_fruit", "default:dirt")
|
||||
minetest.register_alias("nsspf:tuber_melanosporum_fungusdirt", "default:dirt")
|
||||
minetest.register_alias("nsspf:tuber_melanosporum_tuber_mycelium", "air")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--[[
|
||||
--===========================================
|
||||
--===========================================
|
||||
--pathv6alt
|
||||
|
|
|
@ -0,0 +1,358 @@
|
|||
--Extreme Survival created by maikerumine
|
||||
-- Minetest 0.4.13 mod: "Extreme Survival"
|
||||
-- namespace: es
|
||||
--version 1.8
|
||||
--https://github.com/maikerumine
|
||||
|
||||
|
||||
--NODE TWEAKINGS
|
||||
minetest.override_item("default:dirt_with_grass", {
|
||||
description = "Dirt with Grass",
|
||||
tiles = {"default_dry_grass.png", "default_dirt.png",
|
||||
{name = "default_dirt.png^default_dry_grass_side.png",
|
||||
tileable_vertical = false}},
|
||||
groups = {crumbly = 3, soil = 1},
|
||||
drop = 'default:dirt',
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name = "default_grass_footstep", gain = 0.25},
|
||||
}),
|
||||
})
|
||||
|
||||
minetest.override_item("default:leaves", {
|
||||
description = "Leaves",
|
||||
drawtype = "allfaces_optional",
|
||||
waving = 1,
|
||||
visual_scale = 1.3,
|
||||
tiles = {"a-leavedead.png"},
|
||||
special_tiles = {"a-leavedead.png"},
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
-- player will get sapling with 1/20 chance
|
||||
items = {'default:sapling'},
|
||||
rarity = 20,
|
||||
},
|
||||
{
|
||||
-- player will get leaves only if he get no saplings,
|
||||
-- this is because max_items is 1
|
||||
items = {'default:stick'},
|
||||
}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
|
||||
minetest.override_item("default:jungleleaves", {
|
||||
description = "Jungle Leaves",
|
||||
drawtype = "allfaces_optional",
|
||||
waving = 1,
|
||||
visual_scale = 1.3,
|
||||
tiles = {"a-leavedead.png"},
|
||||
special_tiles = {"a-leavedead.png"},
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {'default:junglesapling'}, rarity = 20},
|
||||
{items = {'default:stick'}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
minetest.override_item("default:pine_needles",{
|
||||
description = "Pine Needles",
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles = {"default_pine_needles.png^[colorize:white:80"},
|
||||
waving = 1,
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"default:pine_sapling"}, rarity = 20},
|
||||
{items = {"default:stick"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
|
||||
minetest.override_item("default:acacia_leaves", {
|
||||
description = "Acacia Leaves",
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles = {"default_acacia_leaves.png^[colorize:brown:120"},
|
||||
waving = 1,
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"default:acacia_sapling"}, rarity = 20},
|
||||
{items = {"default:stick"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
minetest.override_item("default:aspen_leaves", {
|
||||
description = "Aspen Leaves",
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles = {"default_aspen_leaves.png^[colorize:brown:80"},
|
||||
waving = 1,
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"default:aspen_sapling"}, rarity = 20},
|
||||
{items = {"default:stick"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
--
|
||||
-- Plantlife (non-cubic)
|
||||
--
|
||||
|
||||
minetest.override_item("default:cactus", {
|
||||
description = "Cactus",
|
||||
tiles = {"default_cactus_top.png^[colorize:brown:80", "default_cactus_top.png^[colorize:brown:80",
|
||||
"default_cactus_side.png^[colorize:brown:80"},
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy = 1, choppy = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
|
||||
after_dig_node = function(pos, node, metadata, digger)
|
||||
default.dig_up(pos, node, digger)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.override_item("default:papyrus", {
|
||||
description = "Papyrus",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"default_papyrus.png^[colorize:brown:120"},
|
||||
inventory_image = "default_papyrus.png^[colorize:brown:120",
|
||||
wield_image = "default_papyrus.png^[colorize:brown:120",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
|
||||
},
|
||||
groups = {snappy = 3, flammable = 2},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
after_dig_node = function(pos, node, metadata, digger)
|
||||
default.dig_up(pos, node, digger)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.override_item("default:junglegrass", {
|
||||
description = "Jungle Grass",
|
||||
drawtype = "plantlike",
|
||||
waving = 1,
|
||||
visual_scale = 1.3,
|
||||
tiles = {"default_junglegrass.png^[colorize:brown:80"},
|
||||
inventory_image = "default_junglegrass.png^[colorize:brown:80",
|
||||
wield_image = "default_junglegrass.png^[colorize:brown:80",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, grass = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
minetest.override_item("default:grass_1", {
|
||||
description = "Grass",
|
||||
drawtype = "plantlike",
|
||||
waving = 1,
|
||||
tiles = {"default_grass_1.png^[colorize:brown:80"},
|
||||
-- Use texture of a taller grass stage in inventory
|
||||
inventory_image = "default_grass_3.png^[colorize:brown:80",
|
||||
wield_image = "default_grass_3.png^[colorize:brown:80",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, grass = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
},
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
-- place a random grass node
|
||||
local stack = ItemStack("default:grass_" .. math.random(1,5))
|
||||
local ret = minetest.item_place(stack, placer, pointed_thing)
|
||||
return ItemStack("default:grass_1 " ..
|
||||
itemstack:get_count() - (1 - ret:get_count()))
|
||||
end,
|
||||
})
|
||||
|
||||
for i = 2, 5 do
|
||||
minetest.override_item("default:grass_" .. i, {
|
||||
description = "Grass",
|
||||
drawtype = "plantlike",
|
||||
waving = 1,
|
||||
tiles = {"default_grass_" .. i .. ".png^[colorize:brown:80"},
|
||||
inventory_image = "default_grass_" .. i .. ".png^[colorize:brown:80",
|
||||
wield_image = "default_grass_" .. i .. ".png^[colorize:brown:80",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "default:grass_1",
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1,
|
||||
not_in_creative_inventory = 1, grass = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
--
|
||||
-- Liquids
|
||||
--
|
||||
|
||||
minetest.override_item("default:water_source", {
|
||||
inventory_image = minetest.inventorycube("es_toxic_water.png"),
|
||||
drawtype = "liquid",
|
||||
tiles = {
|
||||
{
|
||||
name = "es_toxic_water_source_animated.png",
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 2.0,
|
||||
},
|
||||
},
|
||||
},
|
||||
special_tiles = {
|
||||
-- New-style water source material (mostly unused)
|
||||
{
|
||||
name = "es_toxic_water_source_animated.png",
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 2.0,
|
||||
},
|
||||
backface_culling = false,
|
||||
},
|
||||
},
|
||||
--alpha = 240,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
drop = "",
|
||||
drowning = 1,
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "default:water_flowing",
|
||||
liquid_alternative_source = "default:water_source",
|
||||
liquid_viscosity = 4,
|
||||
post_effect_color = {a = 213, r = 30, g = 60, b = 90},
|
||||
damage_per_second = 3*2,
|
||||
groups = {water = 3, liquid = 3, puts_out_fire = 1, radioactive = 2},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.override_item("default:water_flowing", {
|
||||
description = "Toxic_Flowing Water",
|
||||
inventory_image = minetest.inventorycube("es_toxic_water.png"),
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"es_toxic_water.png"},
|
||||
special_tiles = {
|
||||
{
|
||||
name = "es_toxic_water_flowing_animated.png",
|
||||
backface_culling = false,
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 0.8,
|
||||
},
|
||||
},
|
||||
{
|
||||
name = "es_toxic_water_flowing_animated.png",
|
||||
backface_culling = true,
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 0.8,
|
||||
},
|
||||
},
|
||||
},
|
||||
--alpha = 240,
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
drop = "",
|
||||
drowning = 1,
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "default:water_flowing",
|
||||
liquid_alternative_source = "default:water_source",
|
||||
liquid_viscosity = 3,
|
||||
post_effect_color = {a = 203, r = 30, g = 60, b = 90},
|
||||
damage_per_second = 3*2,
|
||||
groups = {water = 3, liquid = 3, puts_out_fire = 1, radioactive = 2, not_in_creative_inventory = 1},
|
||||
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.override_item("default:ice", {
|
||||
description = "Ice",
|
||||
tiles = {"default_ice.png^es_toxic_water.png"},
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1, slippery = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
694
crafting.lua
|
@ -12,17 +12,17 @@
|
|||
--Media(if not stated differently):
|
||||
--(c) Copyright (2014-2015) maikerumine; CC-BY-SA 3.0
|
||||
|
||||
--Default override crafting
|
||||
|
||||
--groups = {not_in_craft_guide=1},
|
||||
|
||||
-- Minetest 0.4 mod: bone_collector
|
||||
-- Bones can be crafted to clay, sand or coal to motivate players clear the playground.
|
||||
--
|
||||
-- See README.txt for licensing and other information.
|
||||
--Lag Block
|
||||
--maikerumine
|
||||
|
||||
|
||||
es = {}
|
||||
|
||||
--CRAFT OVERRIDES
|
||||
--Default override crafting
|
||||
--groups = {not_in_craft_guide=1},
|
||||
--======================================
|
||||
--Bronze
|
||||
--[[
|
||||
minetest.register_craft({
|
||||
|
@ -34,31 +34,38 @@ minetest.register_craft({
|
|||
}
|
||||
})
|
||||
]]
|
||||
|
||||
minetest.clear_craft({
|
||||
type = "shapeless",
|
||||
output = "default:bronze_ingot"
|
||||
})
|
||||
|
||||
if basic_machines then
|
||||
if moreores then
|
||||
minetest.register_craft({
|
||||
--type = "shapeless",
|
||||
output = 'default:bronze_ingot 8',
|
||||
recipe = {
|
||||
{'default:copper_ingot', 'default:coal_lump', 'default:copper_ingot'},
|
||||
{'default:copper_ingot', 'basic_machines:charcoal', 'default:copper_ingot'},
|
||||
{'default:copper_ingot', 'moreores:tin_ingot', 'default:copper_ingot'},
|
||||
{'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
--type = "shapeless",
|
||||
output = 'default:bronze_ingot 8',
|
||||
recipe = {
|
||||
{'default:copper_ingot', 'default:coal_lump', 'default:copper_ingot'},
|
||||
{'default:copper_ingot', 'basic_machines:charcoal', 'default:copper_ingot'},
|
||||
{'default:copper_ingot', 'default:tin_ingot', 'default:copper_ingot'},
|
||||
{'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'},
|
||||
}
|
||||
})
|
||||
|
||||
--Treated logs
|
||||
end
|
||||
|
||||
--DECORATIVE LOGS (NO MOSS OR FUNGI GROWTH)
|
||||
--======================================
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
replacements = {{"es:boneblock", "es:boneblock"}},
|
||||
|
@ -123,7 +130,8 @@ minetest.register_craft({
|
|||
|
||||
|
||||
|
||||
|
||||
--Lag Block
|
||||
--======================================
|
||||
minetest.register_craft({
|
||||
output = 'es:lag_block',
|
||||
recipe = {
|
||||
|
@ -143,8 +151,10 @@ minetest.register_craft({
|
|||
})
|
||||
|
||||
|
||||
|
||||
|
||||
--BONE COLLECTOR
|
||||
-- Minetest 0.4 mod: bone_collector
|
||||
-- Bones can be crafted to clay, sand or coal to motivate players clear the playground.
|
||||
--======================================
|
||||
minetest.register_craft({
|
||||
output = 'default:clay_lump',
|
||||
recipe = {
|
||||
|
@ -188,6 +198,7 @@ minetest.register_craft({
|
|||
--END BONE COLLECTOR
|
||||
|
||||
--compressed cobble
|
||||
--======================================
|
||||
minetest.register_craft({
|
||||
output = 'es:compressedcobble',
|
||||
recipe = {
|
||||
|
@ -205,6 +216,7 @@ minetest.register_craft({
|
|||
|
||||
|
||||
--marble and granite bricks
|
||||
--======================================
|
||||
minetest.register_craft({
|
||||
output = 'es:marble_bricks',
|
||||
recipe = {
|
||||
|
@ -223,6 +235,7 @@ minetest.register_craft({
|
|||
|
||||
|
||||
--MESE
|
||||
--======================================
|
||||
minetest.register_craftitem("es:mesecook_crystal", {
|
||||
description = "Cookable Raw MESE",
|
||||
inventory_image = "default_mineral_mese.png",
|
||||
|
@ -252,6 +265,8 @@ minetest.register_craft({
|
|||
})
|
||||
|
||||
|
||||
--URANIUM
|
||||
--======================================
|
||||
minetest.register_craftitem("es:depleted_uranium_ingot", {
|
||||
description = "Depleted uranium",
|
||||
inventory_image = "technic_uranium_ingot.png",
|
||||
|
@ -281,6 +296,8 @@ minetest.register_craft({
|
|||
},
|
||||
})
|
||||
|
||||
--VAULT CHEST
|
||||
--======================================
|
||||
minetest.register_craft({
|
||||
output = "es:vault",
|
||||
recipe = {
|
||||
|
@ -290,6 +307,8 @@ minetest.register_craft({
|
|||
},
|
||||
})
|
||||
|
||||
--BONEBLOCK
|
||||
--======================================
|
||||
minetest.register_craft({
|
||||
output = 'es:boneblock',
|
||||
recipe = {
|
||||
|
@ -299,6 +318,8 @@ minetest.register_craft({
|
|||
},
|
||||
})
|
||||
|
||||
--WHATBLOCK
|
||||
--======================================
|
||||
minetest.register_craft({
|
||||
output = "es:what",
|
||||
recipe = {
|
||||
|
@ -378,7 +399,8 @@ minetest.register_craft({
|
|||
})
|
||||
|
||||
|
||||
--ES SPECIAL BLOCKS
|
||||
--ES SPECIAL ORES AND BLOCKS
|
||||
--======================================
|
||||
--emerald
|
||||
minetest.register_craft({
|
||||
output = 'es:emeraldblock',
|
||||
|
@ -519,7 +541,59 @@ minetest.register_craftitem("es:purpellium_lump", {
|
|||
})
|
||||
|
||||
|
||||
--GRINDING
|
||||
--======================================
|
||||
--IF COTTAGES USE FOR GRINDING
|
||||
--place in init in cottages
|
||||
--cottages.handmill_product[ 'es:purpellium_lump' ] = 'es:purpellium_dust 1';
|
||||
--cottages.handmill_product[ 'es:aikerum_crystal' ] = 'es:aikerum_dust 1';
|
||||
--cottages.handmill_product[ 'es:ruby_crystal' ] = 'es:ruby_dust 1';
|
||||
--cottages.handmill_product[ 'es:emerald_crystal' ] = 'es:emerald_dust 1';
|
||||
|
||||
--ES GRINDER:
|
||||
minetest.register_craftitem("es:purpellium_dust", {
|
||||
description = "Purpellium Dust",
|
||||
inventory_image = "dye_violet.png",
|
||||
})
|
||||
minetest.register_craftitem("es:aikerum_dust", {
|
||||
description = "Aikerum Dust",
|
||||
inventory_image = "dye_blue.png",
|
||||
})
|
||||
minetest.register_craftitem("es:ruby_dust", {
|
||||
description = "Ruby Dust",
|
||||
inventory_image = "dye_red.png",
|
||||
})
|
||||
minetest.register_craftitem("es:emerald_dust", {
|
||||
description = "Emerald Dust",
|
||||
inventory_image = "dye_green.png",
|
||||
})
|
||||
|
||||
--[[
|
||||
--ES RUBBER
|
||||
minetest.register_craftitem("es:rubber_dust", {
|
||||
description = "Rubber Dust",
|
||||
inventory_image = "dye_black.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("es:rubber", {
|
||||
description = "Rubber",
|
||||
inventory_image = "black.png^gui_hotbar_selected.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
--type = "shapeless",
|
||||
output = 'es:rubber_dust 12',
|
||||
recipe = {
|
||||
{"default:jungletree", "default:jungletree","default:jungletree"},
|
||||
{"default:jungletree", "default:steel_ingot","default:jungletree"},
|
||||
{"default:jungletree", "default:jungletree","default:jungletree"},
|
||||
},
|
||||
})
|
||||
]]
|
||||
|
||||
|
||||
--POTIONS AND VESSEL CRAFTING
|
||||
--======================================
|
||||
--crafting containers
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
|
@ -553,58 +627,6 @@ minetest.register_craft({
|
|||
})
|
||||
|
||||
|
||||
--IF COTTAGES USE FOR GRINDING
|
||||
--place in init in cottages
|
||||
--cottages.handmill_product[ 'es:purpellium_lump' ] = 'es:purpellium_dust 1';
|
||||
--cottages.handmill_product[ 'es:aikerum_crystal' ] = 'es:aikerum_dust 1';
|
||||
--cottages.handmill_product[ 'es:ruby_crystal' ] = 'es:ruby_dust 1';
|
||||
--cottages.handmill_product[ 'es:emerald_crystal' ] = 'es:emerald_dust 1';
|
||||
|
||||
--ES GRINDER:
|
||||
minetest.register_craftitem("es:purpellium_dust", {
|
||||
description = "Purpellium Dust",
|
||||
inventory_image = "dye_violet.png",
|
||||
})
|
||||
minetest.register_craftitem("es:aikerum_dust", {
|
||||
description = "Aikerum Dust",
|
||||
inventory_image = "dye_blue.png",
|
||||
})
|
||||
minetest.register_craftitem("es:ruby_dust", {
|
||||
description = "Ruby Dust",
|
||||
inventory_image = "dye_red.png",
|
||||
})
|
||||
minetest.register_craftitem("es:emerald_dust", {
|
||||
description = "Emerald Dust",
|
||||
inventory_image = "dye_green.png",
|
||||
})
|
||||
|
||||
--[[[
|
||||
--ES RUBBER
|
||||
minetest.register_craftitem("es:rubber_dust", {
|
||||
description = "Rubber Dust",
|
||||
inventory_image = "dye_black.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("es:rubber", {
|
||||
description = "Rubber",
|
||||
inventory_image = "black.png^gui_hotbar_selected.png",
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
--type = "shapeless",
|
||||
output = 'es:rubber_dust 12',
|
||||
recipe = {
|
||||
{"default:jungletree", "default:jungletree","default:jungletree"},
|
||||
{"default:jungletree", "default:steel_ingot","default:jungletree"},
|
||||
{"default:jungletree", "default:jungletree","default:jungletree"},
|
||||
},
|
||||
})
|
||||
]]
|
||||
|
||||
|
||||
|
||||
|
||||
--purpellium potion give endurance
|
||||
minetest.register_node("es:purpellium_container", {
|
||||
description = "Potion to do wonders! (gives 50+ hunger for extra endurance mining.)",
|
||||
|
@ -817,25 +839,25 @@ minetest.register_craft({
|
|||
output = '3d_armor:helmet_infinium',
|
||||
type = "shapeless",
|
||||
recipe =
|
||||
{'es:ruby_container', 'es:helmet_infinium' },
|
||||
{'es:ruby_container', '3d_armor:helmet_infinium' },
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = '3d_armor:chestplate_infinium',
|
||||
type = "shapeless",
|
||||
recipe =
|
||||
{'es:ruby_container', 'es:chestplate_infinium'},
|
||||
{'es:ruby_container', '3d_armor:chestplate_infinium'},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = '3d_armor:leggings_infinium',
|
||||
type = "shapeless",
|
||||
recipe =
|
||||
{'es:ruby_container', 'es:leggings_infinium'},
|
||||
{'es:ruby_container', '3d_armor:leggings_infinium'},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = '3d_armor:boots_infinium',
|
||||
type = "shapeless",
|
||||
recipe =
|
||||
{'es:ruby_container', 'es:boots_infinium' },
|
||||
{'es:ruby_container', '3d_armor:boots_infinium' },
|
||||
})
|
||||
|
||||
--aikerum armour fix
|
||||
|
@ -843,25 +865,25 @@ minetest.register_craft({
|
|||
output = '3d_armor:helmet_aikerum',
|
||||
type = "shapeless",
|
||||
recipe =
|
||||
{'es:ruby_container', 'es:helmet_aikerum' },
|
||||
{'es:ruby_container', '3d_armor:helmet_aikerum' },
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = '3d_armor:chestplate_aikerum',
|
||||
type = "shapeless",
|
||||
recipe =
|
||||
{'es:ruby_container', 'es:chestplate_aikerum'},
|
||||
{'es:ruby_container', '3d_armor:chestplate_aikerum'},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = '3d_armor:leggings_aikerum',
|
||||
type = "shapeless",
|
||||
recipe =
|
||||
{'es:ruby_container', 'es:leggings_aikerum'},
|
||||
{'es:ruby_container', '3d_armor:leggings_aikerum'},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = '3d_armor:boots_aikerum',
|
||||
type = "shapeless",
|
||||
recipe =
|
||||
{'es:ruby_container', 'es:boots_aikerum' },
|
||||
{'es:ruby_container', '3d_armor:boots_aikerum' },
|
||||
})
|
||||
|
||||
--emerald armour fix
|
||||
|
@ -869,45 +891,30 @@ minetest.register_craft({
|
|||
output = '3d_armor:helmet_emerald',
|
||||
type = "shapeless",
|
||||
recipe =
|
||||
{'es:ruby_container', 'es:helmet_emerald' },
|
||||
{'es:ruby_container', '3d_armor:helmet_emerald' },
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = '3d_armor:chestplate_emerald',
|
||||
type = "shapeless",
|
||||
recipe =
|
||||
{'es:ruby_container', 'es:chestplate_emerald'},
|
||||
{'es:ruby_container', '3d_armor:chestplate_emerald'},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = '3d_armor:leggings_emerald',
|
||||
type = "shapeless",
|
||||
recipe =
|
||||
{'es:ruby_container', 'es:leggings_emerald'},
|
||||
{'es:ruby_container', '3d_armor:leggings_emerald'},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = '3d_armor:boots_emerald',
|
||||
type = "shapeless",
|
||||
recipe =
|
||||
{'es:ruby_container', 'es:boots_emerald' },
|
||||
})
|
||||
|
||||
|
||||
--WEAPONS AND TOOLS
|
||||
minetest.register_craft({
|
||||
output = 'es:handle',
|
||||
recipe = {
|
||||
{'default:bronze_ingot', 'default:mese_crystal', 'default:bronze_ingot'},
|
||||
{'farming:string', 'default:steel_ingot', 'farming:string'},
|
||||
{'farming:string', 'default:diamond', 'farming:string'},
|
||||
}
|
||||
})
|
||||
minetest.register_craftitem("es:handle", {
|
||||
description = "Extreme Survival Uni-handle",
|
||||
inventory_image = "es_handle.png",
|
||||
--inventory_image = "default_steel_ingot.png^default_diamond.png^default_mese_crystal.png^farming_cotton.png",
|
||||
{'es:ruby_container', '3d_armor:boots_emerald' },
|
||||
})
|
||||
|
||||
|
||||
--INGOTS
|
||||
--======================================
|
||||
minetest.register_craft({
|
||||
output = 'es:cookable_emerald_ingot',
|
||||
type = "shapeless",
|
||||
|
@ -968,270 +975,281 @@ minetest.register_craftitem("es:cookable_purpellium_ingot", {
|
|||
inventory_image = "default_bronze_ingot.png^[colorize:#FF00FF:200",
|
||||
})
|
||||
|
||||
--SWORDS
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_emerald',
|
||||
recipe = {
|
||||
{'es:emerald_ingot'},
|
||||
{'es:emerald_ingot'},
|
||||
{'es:handle'},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_ruby',
|
||||
recipe = {
|
||||
{'es:ruby_ingot'},
|
||||
{'es:ruby_ingot'},
|
||||
{'es:handle'},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_aikerum',
|
||||
recipe = {
|
||||
{'es:aikerum_ingot'},
|
||||
{'es:aikerum_ingot'},
|
||||
{'es:handle'},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_purpellium',
|
||||
recipe = {
|
||||
{'es:purpellium_ingot'},
|
||||
{'es:purpellium_ingot'},
|
||||
{'es:handle'},
|
||||
}
|
||||
|
||||
--WEAPONS AND TOOLS
|
||||
--======================================
|
||||
minetest.register_craftitem("es:handle", {
|
||||
description = "Extreme Survival Uni-handle",
|
||||
inventory_image = "es_handle.png",
|
||||
--inventory_image = "default_steel_ingot.png^default_diamond.png^default_mese_crystal.png^farming_cotton.png",
|
||||
})
|
||||
|
||||
--PICKS
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_emerald',
|
||||
recipe = {
|
||||
{'es:emerald_ingot', 'es:emerald_ingot', 'es:emerald_ingot'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_ruby',
|
||||
recipe = {
|
||||
{'es:ruby_ingot', 'es:ruby_ingot', 'es:ruby_ingot'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_aikerum',
|
||||
recipe = {
|
||||
{'es:aikerum_ingot', 'es:aikerum_ingot', 'es:aikerum_ingot'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
local es_hard_tool_craft = tonumber(minetest.settings:get("es_hard_tool_craft"))
|
||||
if es_hard_tool_craft == 1 then
|
||||
minetest.register_craft({
|
||||
output = 'es:handle',
|
||||
recipe = {
|
||||
{'default:bronze_ingot', 'default:mese_crystal', 'default:bronze_ingot'},
|
||||
{'farming:string', 'default:steel_ingot', 'farming:string'},
|
||||
{'farming:string', 'default:diamond', 'farming:string'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_purpellium',
|
||||
recipe = {
|
||||
{'es:purpellium_ingot', 'es:purpellium_ingot', 'es:purpellium_ingot'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
--SWORDS
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_emerald',
|
||||
recipe = {
|
||||
{'es:emerald_ingot'},
|
||||
{'es:emerald_ingot'},
|
||||
{'es:handle'},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_ruby',
|
||||
recipe = {
|
||||
{'es:ruby_ingot'},
|
||||
{'es:ruby_ingot'},
|
||||
{'es:handle'},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_aikerum',
|
||||
recipe = {
|
||||
{'es:aikerum_ingot'},
|
||||
{'es:aikerum_ingot'},
|
||||
{'es:handle'},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_purpellium',
|
||||
recipe = {
|
||||
{'es:purpellium_ingot'},
|
||||
{'es:purpellium_ingot'},
|
||||
{'es:handle'},
|
||||
}
|
||||
})
|
||||
|
||||
--AXES
|
||||
minetest.register_craft({
|
||||
output = 'es:axe_emerald',
|
||||
recipe = {
|
||||
{'es:emerald_ingot', 'es:emerald_ingot', ''},
|
||||
{'es:emerald_ingot', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:axe_ruby',
|
||||
recipe = {
|
||||
{'es:ruby_ingot', 'es:ruby_ingot', ''},
|
||||
{'es:ruby_ingot', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:axe_aikerum',
|
||||
recipe = {
|
||||
{'es:aikerum_ingot', 'es:aikerum_ingot', ''},
|
||||
{'es:aikerum_ingot', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
--PICKS
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_emerald',
|
||||
recipe = {
|
||||
{'es:emerald_ingot', 'es:emerald_ingot', 'es:emerald_ingot'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_ruby',
|
||||
recipe = {
|
||||
{'es:ruby_ingot', 'es:ruby_ingot', 'es:ruby_ingot'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_aikerum',
|
||||
recipe = {
|
||||
{'es:aikerum_ingot', 'es:aikerum_ingot', 'es:aikerum_ingot'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
|
||||
--SHOVELS
|
||||
minetest.register_craft({
|
||||
output = 'es:shovel_emerald',
|
||||
recipe = {
|
||||
{'', 'es:emerald_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:shovel_ruby',
|
||||
recipe = {
|
||||
{'', 'es:ruby_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_purpellium',
|
||||
recipe = {
|
||||
{'es:purpellium_ingot', 'es:purpellium_ingot', 'es:purpellium_ingot'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'es:shovel_aikerum',
|
||||
recipe = {
|
||||
{'', 'es:aikerum_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
--AXES
|
||||
minetest.register_craft({
|
||||
output = 'es:axe_emerald',
|
||||
recipe = {
|
||||
{'es:emerald_ingot', 'es:emerald_ingot', ''},
|
||||
{'es:emerald_ingot', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:axe_ruby',
|
||||
recipe = {
|
||||
{'es:ruby_ingot', 'es:ruby_ingot', ''},
|
||||
{'es:ruby_ingot', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:axe_aikerum',
|
||||
recipe = {
|
||||
{'es:aikerum_ingot', 'es:aikerum_ingot', ''},
|
||||
{'es:aikerum_ingot', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
|
||||
--[[
|
||||
--OLD EASY CRAFTS
|
||||
--Weapon &Tool Crafting:
|
||||
--SWORDS
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_emerald',
|
||||
recipe = {
|
||||
{'es:emerald_crystal'},
|
||||
{'es:emerald_crystal'},
|
||||
{'default:steel_ingot'},
|
||||
}
|
||||
})
|
||||
--SHOVELS
|
||||
minetest.register_craft({
|
||||
output = 'es:shovel_emerald',
|
||||
recipe = {
|
||||
{'', 'es:emerald_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:shovel_ruby',
|
||||
recipe = {
|
||||
{'', 'es:ruby_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_ruby',
|
||||
recipe = {
|
||||
{'es:ruby_crystal'},
|
||||
{'es:ruby_crystal'},
|
||||
{'default:steel_ingot'},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:shovel_aikerum',
|
||||
recipe = {
|
||||
{'', 'es:aikerum_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'es:handle', ''},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_aikerum',
|
||||
recipe = {
|
||||
{'es:aikerum_crystal'},
|
||||
{'es:aikerum_crystal'},
|
||||
{'default:steel_ingot'},
|
||||
}
|
||||
})
|
||||
if es_hard_tool_craft ~= 1 then
|
||||
--OLD EASY CRAFTS
|
||||
--Weapon &Tool Crafting:
|
||||
--SWORDS
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_emerald',
|
||||
recipe = {
|
||||
{'es:emerald_crystal'},
|
||||
{'es:emerald_crystal'},
|
||||
{'default:steel_ingot'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_purpellium',
|
||||
recipe = {
|
||||
{'es:purpellium_ingot'},
|
||||
{'es:purpellium_ingot'},
|
||||
{'default:steel_ingot'},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_ruby',
|
||||
recipe = {
|
||||
{'es:ruby_crystal'},
|
||||
{'es:ruby_crystal'},
|
||||
{'default:steel_ingot'},
|
||||
}
|
||||
})
|
||||
|
||||
--PICKS
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_emerald',
|
||||
recipe = {
|
||||
{'es:emerald_crystal', 'es:emerald_crystal', 'es:emerald_crystal'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_aikerum',
|
||||
recipe = {
|
||||
{'es:aikerum_crystal'},
|
||||
{'es:aikerum_crystal'},
|
||||
{'default:steel_ingot'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_ruby',
|
||||
recipe = {
|
||||
{'es:ruby_crystal', 'es:ruby_crystal', 'es:ruby_crystal'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:sword_purpellium',
|
||||
recipe = {
|
||||
{'es:purpellium_ingot'},
|
||||
{'es:purpellium_ingot'},
|
||||
{'default:steel_ingot'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_aikerum',
|
||||
recipe = {
|
||||
{'es:aikerum_crystal', 'es:aikerum_crystal', 'es:aikerum_crystal'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
--PICKS
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_emerald',
|
||||
recipe = {
|
||||
{'es:emerald_crystal', 'es:emerald_crystal', 'es:emerald_crystal'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_aikerum',
|
||||
recipe = {
|
||||
{'es:aikerum_crystal', 'es:aikerum_crystal', 'es:aikerum_crystal'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_ruby',
|
||||
recipe = {
|
||||
{'es:ruby_crystal', 'es:ruby_crystal', 'es:ruby_crystal'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_purpellium',
|
||||
recipe = {
|
||||
{'es:purpellium_ingot', 'es:purpellium_ingot', 'es:purpellium_ingot'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_aikerum',
|
||||
recipe = {
|
||||
{'es:aikerum_crystal', 'es:aikerum_crystal', 'es:aikerum_crystal'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
|
||||
--AXES
|
||||
minetest.register_craft({
|
||||
output = 'es:axe_emerald',
|
||||
recipe = {
|
||||
{'es:emerald_crystal', 'es:emerald_crystal', ''},
|
||||
{'es:emerald_crystal', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:pick_purpellium',
|
||||
recipe = {
|
||||
{'es:purpellium_ingot', 'es:purpellium_ingot', 'es:purpellium_ingot'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'es:axe_ruby',
|
||||
recipe = {
|
||||
{'es:ruby_crystal', 'es:ruby_crystal', ''},
|
||||
{'es:ruby_crystal', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
--AXES
|
||||
minetest.register_craft({
|
||||
output = 'es:axe_emerald',
|
||||
recipe = {
|
||||
{'es:emerald_crystal', 'es:emerald_crystal', ''},
|
||||
{'es:emerald_crystal', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'es:axe_aikerum',
|
||||
recipe = {
|
||||
{'es:aikerum_crystal', 'es:aikerum_crystal', ''},
|
||||
{'es:aikerum_crystal', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:axe_ruby',
|
||||
recipe = {
|
||||
{'es:ruby_crystal', 'es:ruby_crystal', ''},
|
||||
{'es:ruby_crystal', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
|
||||
--SHOVELS
|
||||
minetest.register_craft({
|
||||
output = 'es:shovel_emerald',
|
||||
recipe = {
|
||||
{'', 'es:emerald_crystal', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:shovel_ruby',
|
||||
recipe = {
|
||||
{'', 'es:ruby_crystal', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:axe_aikerum',
|
||||
recipe = {
|
||||
{'es:aikerum_crystal', 'es:aikerum_crystal', ''},
|
||||
{'es:aikerum_crystal', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'es:shovel_aikerum',
|
||||
recipe = {
|
||||
{'', 'es:aikerum_crystal', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
--SHOVELS
|
||||
minetest.register_craft({
|
||||
output = 'es:shovel_emerald',
|
||||
recipe = {
|
||||
{'', 'es:emerald_crystal', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'es:shovel_ruby',
|
||||
recipe = {
|
||||
{'', 'es:ruby_crystal', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
|
||||
]]
|
||||
minetest.register_craft({
|
||||
output = 'es:shovel_aikerum',
|
||||
recipe = {
|
||||
{'', 'es:aikerum_crystal', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
--COOKING RECIPIES
|
||||
minetest.register_craft({
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
default
|
||||
3d_armor?
|
||||
shields?
|
||||
basic_machines?
|
||||
farming?
|
||||
flowers?
|
||||
stairs?
|
||||
|
|
50
extra.lua
|
@ -36,54 +36,4 @@ minetest.register_chatcommand("mapfix", {
|
|||
return true, "Done."
|
||||
end,
|
||||
})
|
||||
--[[
|
||||
--RND CODE
|
||||
--NO GRIEF WITH liquids
|
||||
local function disable_placing_above_ground(name)
|
||||
|
||||
local table = minetest.registered_nodes[name]; if not table then return end
|
||||
local table2 = {}
|
||||
for i,v in pairs(table) do table2[i] = v end
|
||||
table2.after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||
if pos.y>=0 then minetest.set_node(pos,{name = "air"}) end
|
||||
end
|
||||
minetest.register_node(":"..name, table2)
|
||||
end
|
||||
|
||||
minetest.after(0,function()
|
||||
disable_placing_above_ground("default:water_source");
|
||||
disable_placing_above_ground("default:river_water_source");
|
||||
disable_placing_above_ground("default:lava_source");
|
||||
disable_placing_above_ground("es:toxic_water_source");
|
||||
disable_placing_above_ground("es:mud");
|
||||
-- add here all other sources: toxic water, mud ,....
|
||||
end)
|
||||
]]
|
||||
|
||||
|
||||
--Killme
|
||||
minetest.register_chatcommand("killme", {
|
||||
description = "Kill yourself to respawn",
|
||||
func = function(name)
|
||||
local player = minetest.get_player_by_name(name)
|
||||
if player then
|
||||
if minetest.settings:get_bool("enable_damage") then
|
||||
player:set_hp(0)
|
||||
return true
|
||||
else
|
||||
for _, callback in pairs(core.registered_on_respawnplayers) do
|
||||
if callback(player) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
-- There doesn't seem to be a way to get a default spawn pos from the lua API
|
||||
return false, "No static_spawnpoint defined"
|
||||
end
|
||||
else
|
||||
-- Show error message if used when not logged in, eg: from IRC mod
|
||||
return false, "You need to be online to be killed!"
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
|
|
266
init.lua
|
@ -22,55 +22,239 @@ local modpath = minetest.get_modpath("es")
|
|||
es.modpath = modpath
|
||||
|
||||
dofile(modpath.."/alias.lua")
|
||||
dofile(modpath.."/crafting.lua")
|
||||
dofile(modpath.."/antigrief.lua")
|
||||
dofile(modpath.."/itemdrop.lua")
|
||||
dofile(modpath.."/musicmod.lua")
|
||||
dofile(modpath.."/armor.lua")
|
||||
dofile(modpath.."/kill.lua")
|
||||
dofile(modpath.."/shields.lua")
|
||||
dofile(modpath.."/shutdown.lua")
|
||||
dofile(modpath.."/spawn.lua")
|
||||
dofile(modpath.."/crushingfurnace.lua")
|
||||
dofile(modpath.."/tools.lua")
|
||||
|
||||
dofile(modpath.."/biome.lua")
|
||||
--dofile(modpath.."/oregen.lua") --moved to biomes
|
||||
dofile(modpath.."/nodes.lua")
|
||||
dofile(modpath.."/crushingfurnace.lua")
|
||||
dofile(modpath.."/crafting.lua")
|
||||
dofile(modpath.."/tools.lua")
|
||||
|
||||
--builtin stuff
|
||||
dofile(modpath.."/extra.lua")
|
||||
dofile(modpath.."/builtin_flowlib.lua")
|
||||
dofile(modpath.."/flowlib.lua")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--[[
|
||||
if farming then
|
||||
--CONFIG SWITCHES
|
||||
--PASTE IN YOUR CONFIG FILE
|
||||
#--=============================
|
||||
#--=============================
|
||||
es_biome = 1 #--1 is on 0 is off
|
||||
es_armor = 1 #--1 is on 0 is off
|
||||
es_shields = 1 #--1 is on 0 is off
|
||||
es_radioactive = 1 #--1 is on 0 is off
|
||||
es_climate_freeze = 0 #--1 is on 0 is off
|
||||
es_climate_snow = 0 #--1 is on 0 is off
|
||||
es_climate_thaw = 0 #--1 is on 0 is off
|
||||
es_hard_tool_craft = 1 #--1 is on 0 is off
|
||||
es_server = 0 #--1 is on 0 is off
|
||||
es_anticheat = 0 #--1 is on 0 is off
|
||||
es_antigrief = 0 #--1 is on 0 is off
|
||||
es_kill_command = 1 #--1 is on 0 is off
|
||||
es_itemdrop = 1 #--1 is on 0 is off
|
||||
es_musicmod = 1 #--1 is on 0 is off
|
||||
es_skybox_space = 1 #--1 is on 0 is off
|
||||
es_hud_clock = 1 #--1 is on 0 is off
|
||||
es_invisible_tool = 0 #--1 is on 0 is off
|
||||
#--=============================
|
||||
#--=============================
|
||||
]]
|
||||
|
||||
--====================================
|
||||
--====================================
|
||||
|
||||
|
||||
local es_armor = tonumber(minetest.settings:get("es_armor"))
|
||||
if not es_armor then
|
||||
es_armor = 1
|
||||
minetest.settings:set("es_armor",
|
||||
es_armor)
|
||||
end
|
||||
|
||||
local es_shields = tonumber(minetest.settings:get("es_shields"))
|
||||
if not es_shields then
|
||||
es_shields = 1
|
||||
minetest.settings:set("es_shields",
|
||||
es_shields)
|
||||
end
|
||||
|
||||
local es_radioactive = tonumber(minetest.settings:get("es_radioactive"))
|
||||
if not es_radioactive then
|
||||
es_radioactive = 1
|
||||
minetest.settings:set("es_radioactive",
|
||||
es_radioactive)
|
||||
end
|
||||
|
||||
local es_climate_freeze = tonumber(minetest.settings:get("es_climate_freeze"))
|
||||
if not es_climate_freeze then
|
||||
es_climate_freeze = 0
|
||||
minetest.settings:set("es_climate_freeze",
|
||||
es_climate_freeze)
|
||||
end
|
||||
|
||||
local es_climate_snow = tonumber(minetest.settings:get("es_climate_snow"))
|
||||
if not es_climate_snow then
|
||||
es_climate_snow = 0
|
||||
minetest.settings:set("es_climate_snow",
|
||||
es_climate_snow)
|
||||
end
|
||||
|
||||
local es_climate_thaw = tonumber(minetest.settings:get("es_climate_thaw"))
|
||||
if not es_climate_thaw then
|
||||
es_climate_thaw = 0
|
||||
minetest.settings:set("es_climate_thaw",
|
||||
es_climate_thaw)
|
||||
end
|
||||
|
||||
local es_hard_tool_craft = tonumber(minetest.settings:get("es_hard_tool_craft"))
|
||||
if not es_hard_tool_craft then
|
||||
es_hard_tool_craft = 1
|
||||
minetest.settings:set("es_hard_tool_craft",
|
||||
es_hard_tool_craft)
|
||||
end
|
||||
|
||||
local es_server = tonumber(minetest.settings:get("es_server"))
|
||||
if not es_server then
|
||||
es_server = 1
|
||||
minetest.settings:set("es_server",
|
||||
es_server)
|
||||
end
|
||||
|
||||
local es_anticheat = tonumber(minetest.settings:get("es_anticheat"))
|
||||
if not es_anticheat then
|
||||
es_anticheat = 0
|
||||
minetest.settings:set("es_anticheat",
|
||||
es_anticheat)
|
||||
end
|
||||
|
||||
local es_antigrief = tonumber(minetest.settings:get("es_antigrief"))
|
||||
if not es_antigrief then
|
||||
es_antigrief = 0
|
||||
minetest.settings:set("es_antigrief",
|
||||
es_antigrief)
|
||||
end
|
||||
|
||||
local es_kill_command = tonumber(minetest.settings:get("es_kill_command"))
|
||||
if not es_kill_command then
|
||||
es_kill_command = 1
|
||||
minetest.settings:set("es_kill_command",
|
||||
es_kill_command)
|
||||
end
|
||||
|
||||
local es_itemdrop = tonumber(minetest.settings:get("es_itemdrop"))
|
||||
if not es_itemdrop then
|
||||
es_itemdrop = 1
|
||||
minetest.settings:set("es_itemdrop",
|
||||
es_itemdrop)
|
||||
end
|
||||
|
||||
local es_musicmod = tonumber(minetest.settings:get("es_musicmod"))
|
||||
if not es_musicmod then
|
||||
es_musicmod = 1
|
||||
minetest.settings:set("es_musicmod",
|
||||
es_musicmod)
|
||||
end
|
||||
|
||||
local es_skybox_space = tonumber(minetest.settings:get("es_skybox_space"))
|
||||
if not es_skybox_space then
|
||||
es_skybox_space = 1
|
||||
minetest.settings:set("es_skybox_space",
|
||||
es_skybox_space)
|
||||
end
|
||||
|
||||
local es_hud_clock = tonumber(minetest.settings:get("es_hud_clock"))
|
||||
if not es_skybox_space then
|
||||
es_hud_clock = 1
|
||||
minetest.settings:set("es_hud_clock",
|
||||
es_hud_clock)
|
||||
end
|
||||
|
||||
local es_invisible_tool = tonumber(minetest.settings:get("es_invisible_tool"))
|
||||
if not es_skybox_space then
|
||||
es_invisible_tool = 0
|
||||
minetest.settings:set("es_invisible_tool",
|
||||
es_invisible_tool)
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
--====================================================================
|
||||
--====================================================================
|
||||
if es_radioactive == 1 then --add radiation
|
||||
dofile(modpath.."/radiation.lua")
|
||||
end
|
||||
if es_climate_freeze == 1 then --add freezing water and thickening ice
|
||||
dofile(minetest.get_modpath("es").."/freeze.lua")
|
||||
end
|
||||
if es_climate_snow == 1 then --add snow spread effect to grasses then to pure snowblock
|
||||
dofile(minetest.get_modpath("es").."/snow.lua")
|
||||
end
|
||||
if es_climate_thaw == 1 then --add thawing ice (caution, it will melt most ice if light is above)
|
||||
dofile(minetest.get_modpath("es").."/thaw.lua")
|
||||
end
|
||||
if es_server == 1 then --server shutdown script and spawning function
|
||||
dofile(minetest.get_modpath("es").."/shutdown.lua")
|
||||
dofile(minetest.get_modpath("es").."/spawn.lua")
|
||||
end
|
||||
if es_anticheat == 1 then --add anti cheating. noclip and fly caught by rnd code
|
||||
dofile(minetest.get_modpath("es").."/antigrief.lua")
|
||||
end
|
||||
if es_antigrief == 1 then --add anti griefing. no add liquid above 0
|
||||
dofile(minetest.get_modpath("es").."/antigrief.lua")
|
||||
end
|
||||
if es_kill_command == 1 then --add self kill command type /killme
|
||||
dofile(minetest.get_modpath("es").."/kill.lua")
|
||||
end
|
||||
if es_itemdrop == 1 then --add item drop
|
||||
dofile(minetest.get_modpath("es").."/itemdrop.lua")
|
||||
end
|
||||
if es_musicmod == 1 then --add music for times of day
|
||||
dofile(minetest.get_modpath("es").."/musicmod.lua")
|
||||
end
|
||||
if es_skybox_space == 1 then --add space realm and pure dark in caves
|
||||
dofile(minetest.get_modpath("es").."/cavespace.lua")
|
||||
end
|
||||
if es_hud_clock == 1 then --add clock to your hud
|
||||
dofile(minetest.get_modpath("es").."/hudclock.lua")
|
||||
end
|
||||
if es_invisible_tool == 1 then --add invisibility command type /i
|
||||
dofile(minetest.get_modpath("es").."/invis.lua")
|
||||
end
|
||||
|
||||
|
||||
--ARMOR
|
||||
if armor then
|
||||
if es_armor == 1 then --add 3d_armor
|
||||
dofile(minetest.get_modpath("es").."/armor.lua")
|
||||
end
|
||||
if es_shields == 1 then --add Shields
|
||||
dofile(minetest.get_modpath("es").."/shields.lua")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
--farming redo
|
||||
if farming and redo then
|
||||
dofile(modpath.."/farming.lua")
|
||||
end
|
||||
]]
|
||||
|
||||
--flowers on es nodes
|
||||
if flowers then
|
||||
dofile(modpath.."/flowers.lua")
|
||||
end
|
||||
|
||||
dofile(modpath.."/extra.lua")
|
||||
dofile(modpath.."/item_entity.lua")
|
||||
dofile(modpath.."/builtin_flowlib.lua")
|
||||
dofile(modpath.."/flowlib.lua")
|
||||
dofile(modpath.."/hudclock.lua")
|
||||
dofile(modpath.."/nodes.lua")
|
||||
dofile(modpath.."/oregen.lua")
|
||||
dofile(modpath.."/cavespace.lua")
|
||||
--dofile(modpath.."/invis.lua")
|
||||
--dofile(modpath.."/map.lua")
|
||||
-- Climate very laggy
|
||||
--dofile(minetest.get_modpath("es").."/freeze.lua")
|
||||
--dofile(minetest.get_modpath("es").."/snow.lua")
|
||||
--dofile(minetest.get_modpath("es").."/thaw.lua")
|
||||
|
||||
es.RADIOACTIVE = 1; --1 is on 0 is off
|
||||
--CONFIG SWITCHES
|
||||
--Radioactive materials switch
|
||||
if es.RADIOACTIVE == 1 then --add radiation
|
||||
dofile(modpath.."/radiation.lua")
|
||||
--MOREBLOCKS / STAIRSPLUS SUPPORT
|
||||
if moreblocks then
|
||||
dofile(modpath.."/mostair.lua")
|
||||
end
|
||||
|
||||
--MOREBLOCKS / STAIRSPLUS SUPPORT
|
||||
--if moreblocks then
|
||||
dofile(modpath.."/mostair.lua")
|
||||
--end
|
||||
|
||||
--STAIR SUPPORT
|
||||
--if stairs then
|
||||
--dofile(modpath.."/stair.lua")
|
||||
--end
|
||||
if stairs then
|
||||
dofile(modpath.."/stair.lua")
|
||||
end
|
||||
|
|
|
@ -1,74 +0,0 @@
|
|||
-- mods/default/item_entity.lua
|
||||
|
||||
local builtin_item = minetest.registered_entities["__builtin:item"]
|
||||
|
||||
local item = {
|
||||
set_item = function(self, itemstring)
|
||||
builtin_item.set_item(self, itemstring)
|
||||
|
||||
local stack = ItemStack(itemstring)
|
||||
local itemdef = minetest.registered_items[stack:get_name()]
|
||||
if itemdef and itemdef.groups.flammable ~= 0 then
|
||||
self.flammable = itemdef.groups.flammable
|
||||
end
|
||||
end,
|
||||
|
||||
burn_up = function(self)
|
||||
-- disappear in a smoke puff
|
||||
self.object:remove()
|
||||
local p = self.object:getpos()
|
||||
minetest.sound_play("default_item_smoke", {
|
||||
pos = p,
|
||||
max_hear_distance = 8,
|
||||
})
|
||||
minetest.add_particlespawner({
|
||||
amount = 3,
|
||||
time = 0.1,
|
||||
minpos = {x = p.x - 0.1, y = p.y + 0.1, z = p.z - 0.1 },
|
||||
maxpos = {x = p.x + 0.1, y = p.y + 0.2, z = p.z + 0.1 },
|
||||
minvel = {x = 0, y = 2.5, z = 0},
|
||||
maxvel = {x = 0, y = 2.5, z = 0},
|
||||
minacc = {x = -0.15, y = -0.02, z = -0.15},
|
||||
maxacc = {x = 0.15, y = -0.01, z = 0.15},
|
||||
minexptime = 4,
|
||||
maxexptime = 6,
|
||||
minsize = 5,
|
||||
maxsize = 5,
|
||||
collisiondetection = true,
|
||||
texture = "default_item_smoke.png"
|
||||
})
|
||||
end,
|
||||
|
||||
on_step = function(self, dtime)
|
||||
builtin_item.on_step(self, dtime)
|
||||
|
||||
if self.flammable then
|
||||
-- flammable, check for igniters
|
||||
self.ignite_timer = (self.ignite_timer or 0) + dtime
|
||||
if self.ignite_timer > 10 then
|
||||
self.ignite_timer = 0
|
||||
|
||||
local node = minetest.get_node_or_nil(self.object:getpos())
|
||||
if not node then
|
||||
return
|
||||
end
|
||||
|
||||
-- Immediately burn up flammable items in lava
|
||||
if minetest.get_item_group(node.name, "lava") > 0 then
|
||||
self:burn_up()
|
||||
else
|
||||
-- otherwise there'll be a chance based on its igniter value
|
||||
local burn_chance = self.flammable
|
||||
* minetest.get_item_group(node.name, "igniter")
|
||||
if burn_chance > 0 and math.random(0, burn_chance) ~= 0 then
|
||||
self:burn_up()
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
-- set defined item as new __builtin:item, with the old one as fallback table
|
||||
setmetatable(item, builtin_item)
|
||||
minetest.register_entity(":__builtin:item", item)
|
|
@ -18,11 +18,13 @@ minetest.register_globalstep(function(time)
|
|||
if time > 0.8 or time < 0.2 then
|
||||
sound_playing = time + 0.2
|
||||
minetest.sound_play("mm_dark")
|
||||
--minetest.sound_play("mcl_jukebox_track_3")
|
||||
return true
|
||||
end
|
||||
|
||||
sound_playing = time + 0.2
|
||||
minetest.sound_play("mm_light")
|
||||
--minetest.sound_play("mcl_jukebox_track_1")
|
||||
return true
|
||||
end
|
||||
end)
|
||||
|
|
70
nodes.lua
|
@ -172,65 +172,6 @@ minetest.register_node( "es:marble_bricks", {
|
|||
groups = {cracky=1, marble=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
--[[
|
||||
--ES OLD_Node Definition
|
||||
minetest.register_node("es:stone_with_emerald", {
|
||||
description = "Emerald Ore",
|
||||
tiles = {"default_stone.png^emerald_ore.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1},
|
||||
drop = "es:emerald_crystal",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("es:stone_with_ruby", {
|
||||
description = "Ruby Ore",
|
||||
tiles = {"default_stone.png^ruby_ore.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1},
|
||||
drop = "es:ruby_crystal",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("es:stone_with_aikerum", {
|
||||
description = "Aikerum Ore",
|
||||
tiles = {"default_stone.png^aikerum_ore.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1,level = 2},
|
||||
drop = "es:aikerum_crystal",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("es:stone_with_infinium", {
|
||||
description = "Infinium Ore - Slightly Radioactive",
|
||||
tiles = {"default_stone.png^infinium_ore.png"},
|
||||
is_ground_content = true,
|
||||
--groups = {cracky=1,level = 2, radioactive = (state == "source" and 2 or 2)},
|
||||
groups = {cracky=1,level = 2, radioactive = 2},
|
||||
drop = "es:infinium_goo",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("es:stone_with_purpellium", {
|
||||
description = "Purlellium Ore - Oddly interesting",
|
||||
tiles = {"default_stone.png^purpellium_ore.png"},
|
||||
is_ground_content = true,
|
||||
--groups = {cracky=2,level = 2,fall_damage_add_percent = -1000, radioactive = (state == "source" and 2 or 2)},
|
||||
groups = {cracky=2,level = 2,fall_damage_add_percent = -1000, radioactive = 2},
|
||||
drop = "es:purpellium_lump",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("es:depleted_uranium", {
|
||||
description = "Depleted Uranium Ore RADIOACTIVE",
|
||||
tiles = {"default_stone.png^uranium_ore.png"},
|
||||
--groups = {cracky = 3, radioactive = (state == "source" and 3 or 2)},
|
||||
groups = {cracky = 3, radioactive = 3},
|
||||
drop = 'es:depleted_uranium_lump',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
light_source = 12,
|
||||
})
|
||||
]]
|
||||
|
||||
--ES NEW_Node Definition
|
||||
minetest.register_node("es:stone_with_emeralds", {
|
||||
|
@ -563,8 +504,15 @@ end
|
|||
--node def
|
||||
minetest.register_node("es:vault", {
|
||||
description = "Use this to store MANY items.",
|
||||
tiles = { "vault.png", "vault.png", "vault.png",
|
||||
"vault.png", "vault.png", "(vault.png^nyancat_front.png^[colorize:#00FF00:110)"},
|
||||
tiles = {
|
||||
"vault.png",
|
||||
"vault.png",
|
||||
"vault.png",
|
||||
"vault.png",
|
||||
"vault.png",
|
||||
--"(vault.png^nyancat_front.png^[colorize:#00FF00:110)"
|
||||
"(default_nc_front.png^[colorize:#00FF00:110)"
|
||||
},
|
||||
inventory_image = "vault.png",
|
||||
light_source = 14,
|
||||
paramtype2 = "facedir",
|
||||
|
|
|
@ -12,9 +12,13 @@
|
|||
|
||||
--Media(if not stated differently):
|
||||
--(c) Copyright (2014-2017) maikerumine; CC-BY-SA 3.0
|
||||
if minetest.global_exists("armor") and armor.elements then
|
||||
table.insert(armor.elements, "shield")
|
||||
local mult = armor.config.level_multiplier or 1
|
||||
armor.config.level_multiplier = mult * 0.9
|
||||
end
|
||||
|
||||
|
||||
local use_shields = minetest.get_modpath("shields")
|
||||
--local use_shields = minetest.get_modpath("shields")
|
||||
|
||||
local craft_ingreds = {
|
||||
infinium = "es:infinium_ingot",
|
||||
|
|
39
stair.lua
|
@ -15,6 +15,13 @@
|
|||
|
||||
|
||||
--[[
|
||||
stairs.register_stair_and_slab("wood", "default:wood",
|
||||
{snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
||||
{"default_wood.png"},
|
||||
"Wooden Stair",
|
||||
"Wooden Slab",
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
function stairs.register_stair_and_slab(subname, recipeitem, groups, images,
|
||||
desc_stair, desc_slab, sounds)
|
||||
stairs.register_stair(subname, recipeitem, groups, images, desc_stair, sounds)
|
||||
|
@ -23,28 +30,28 @@ end
|
|||
]]
|
||||
--TECHNIC STAIRS
|
||||
stairs.register_stair_and_slab("granite", "es:granite",
|
||||
{cracky = 1,not_in_craft_guide=1},
|
||||
{cracky = 1},
|
||||
{"technic_granite.png"},
|
||||
"Granite Block Stair",
|
||||
"Granite Block Slab",
|
||||
default.node_sound_stone_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("marble", "es:marble",
|
||||
{cracky = 1,not_in_craft_guide=1},
|
||||
{cracky = 1},
|
||||
{"technic_marble.png"},
|
||||
"Marble Block Stair",
|
||||
"Marble Block Slab",
|
||||
default.node_sound_stone_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("marble_bricks", "es:marble_bricks",
|
||||
{cracky = 1,not_in_craft_guide=1},
|
||||
{cracky = 1},
|
||||
{"technic_marble_bricks.png" },
|
||||
"Marble Bricks Block Stair",
|
||||
"Marble Bricks Block Slab",
|
||||
default.node_sound_stone_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("granite_bricks", "es:granite_bricks",
|
||||
{cracky = 1,not_in_craft_guide=1},
|
||||
{cracky = 1},
|
||||
{"technic_granite_bricks.png" },
|
||||
"Granite Bricks Block Stair",
|
||||
"Granite Bricks Block Slab",
|
||||
|
@ -52,43 +59,43 @@ stairs.register_stair_and_slab("granite_bricks", "es:granite_bricks",
|
|||
|
||||
|
||||
--Extreme Survival Stairs
|
||||
stairs.register_stair_and_slab("Ruby", "es:rubyblock",
|
||||
{cracky = 1,not_in_craft_guide=1},
|
||||
stairs.register_stair_and_slab("ruby", "es:rubyblock",
|
||||
{cracky = 1},
|
||||
{"ruby_block.png"},
|
||||
"Ruby Block Stair",
|
||||
"Ruby Block Slab",
|
||||
default.node_sound_stone_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("Emerald", "es:emeraldblock",
|
||||
{cracky = 1,not_in_craft_guide=1},
|
||||
stairs.register_stair_and_slab("emerald", "es:emeraldblock",
|
||||
{cracky = 1},
|
||||
{"emerald_block.png"},
|
||||
"Emerald Block Stair",
|
||||
"Emerald Block Slab",
|
||||
default.node_sound_stone_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("Aikerum", "es:aikerumblock",
|
||||
{cracky = 1,not_in_craft_guide=1},
|
||||
stairs.register_stair_and_slab("aikerum", "es:aikerumblock",
|
||||
{cracky = 1},
|
||||
{"aikerum_block.png"},
|
||||
"Aikerum Block Stair",
|
||||
"Aikerum Block Slab",
|
||||
default.node_sound_stone_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("Infinium", "es:infiniumblock",
|
||||
{cracky = 1,not_in_craft_guide=1},
|
||||
stairs.register_stair_and_slab("infinium", "es:infiniumblock",
|
||||
{cracky = 1},
|
||||
{"infinium_block.png"},
|
||||
"Infinium Block Stair",
|
||||
"Infinium Block Slab",
|
||||
default.node_sound_stone_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("Purpellium", "es:purpelliumblock",
|
||||
{cracky = 1,not_in_craft_guide=1},
|
||||
stairs.register_stair_and_slab("purpellium", "es:purpelliumblock",
|
||||
{cracky = 1},
|
||||
{"purpellium_block.png"},
|
||||
"Purpellium Block Stair",
|
||||
"Purpellium Block Slab",
|
||||
default.node_sound_stone_defaults())
|
||||
|
||||
stairs.register_stair_and_slab("Dirt", "default:dirt",
|
||||
{cracky = 3, crumbly = 3,not_in_craft_guide=1},
|
||||
stairs.register_stair_and_slab("dirt", "default:dirt",
|
||||
{cracky = 3, crumbly = 3},
|
||||
{"default_dirt.png"},
|
||||
"Dirt Block Stair",
|
||||
"Dirt Block Slab",
|
||||
|
|
Before Width: | Height: | Size: 75 B |
After Width: | Height: | Size: 473 B |
Before Width: | Height: | Size: 256 B |
Before Width: | Height: | Size: 341 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 300 B |
Before Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 600 B |
110
tools.lua
|
@ -205,116 +205,6 @@ minetest.register_tool("es:shovel_aikerum", {
|
|||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--[[
|
||||
--ARMOR_MOD_NAME = minetest.get_current_modname()
|
||||
--dofile(minetest.get_modpath(ARMOR_MOD_NAME).."/armor.lua")
|
||||
local use_3d_armor = minetest.get_modpath("3d_armor")
|
||||
|
||||
--if use_3d_armor then
|
||||
--ARMOR
|
||||
minetest.register_tool("es:helmet_emerald", {
|
||||
description = "Emerald Helmet",
|
||||
inventory_image = "3d_armor_inv_helmet_emerald.png",
|
||||
groups = {armor_head = 15, armor_heal = 12, armor_use = 100},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool("es:helmet_infinium", {
|
||||
description = "Infinium Helmet",
|
||||
inventory_image = "3d_armor_inv_helmet_infinium.png",
|
||||
groups = {armor_head = 20, armor_heal = 15, armor_use = 150},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool("es:chestplate_emerald", {
|
||||
description = "Emerald Chestplate",
|
||||
inventory_image = "3d_armor_inv_chestplate_emerald.png",
|
||||
groups = {armor_torso = 20, armor_heal = 12, armor_use = 100},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool("es:chestplate_infinium", {
|
||||
description = "Infinium Chestplate",
|
||||
inventory_image = "3d_armor_inv_chestplate_infinium.png",
|
||||
groups = {armor_torso = 50, armor_heal = 15, armor_use = 150},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool("es:leggings_emerald", {
|
||||
description = "Emerald Leggings",
|
||||
inventory_image = "3d_armor_inv_leggings_emerald.png",
|
||||
groups = {armor_legs = 20, armor_heal = 12, armor_use = 100},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool("es:leggings_infinium", {
|
||||
description = "Infinium Leggings",
|
||||
inventory_image = "3d_armor_inv_leggings_infinium.png",
|
||||
groups = {armor_legs = 50, armor_heal = 15, armor_use = 150},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool("es:boots_emerald", {
|
||||
description = "Emerald Boots",
|
||||
inventory_image = "3d_armor_inv_boots_emerald.png",
|
||||
groups = {armor_feet = 15, armor_heal = 12, armor_use = 100},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool("es:boots_infinium", {
|
||||
description = "Infinium Boots",
|
||||
inventory_image = "3d_armor_inv_boots_infinium.png",
|
||||
groups = {armor_feet = 30, armor_heal = 15, armor_use = 150},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
-- Register crafting recipes:
|
||||
|
||||
local craft_ingreds = {
|
||||
|
||||
infinium = "es:infinium_ingot",
|
||||
emerald = "es:emerald_crystal",
|
||||
}
|
||||
|
||||
--end
|
||||
for k, v in pairs(craft_ingreds) do
|
||||
minetest.register_craft({
|
||||
output = "es:helmet_"..k,
|
||||
recipe = {
|
||||
{v, v, v},
|
||||
{v, "", v},
|
||||
{"", "", ""},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "es:chestplate_"..k,
|
||||
recipe = {
|
||||
{v, "", v},
|
||||
{v, v, v},
|
||||
{v, v, v},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "es:leggings_"..k,
|
||||
recipe = {
|
||||
{v, v, v},
|
||||
{v, "", v},
|
||||
{v, "", v},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "es:boots_"..k,
|
||||
recipe = {
|
||||
{v, "", v},
|
||||
{v, "", v},
|
||||
},
|
||||
})
|
||||
--end
|
||||
end]]
|
||||
|
||||
if minetest.get_modpath("toolranks") then
|
||||
--emerald
|
||||
minetest.override_item("es:pick_emerald", {
|
||||
|
|