added purpellium and bug fix with textures

master
maikerumine 2016-01-30 00:44:50 -05:00
parent d1cfdbfdf5
commit 1b7bcda5c2
14 changed files with 2658 additions and 3818 deletions

2523
bpinit.lua

File diff suppressed because it is too large Load Diff

View File

@ -88,7 +88,7 @@ minetest.register_craft({
minetest.register_craftitem("es:depleted_uranium_ingot", {
description = "Depleted uranium",
--inventory_image = "technic_uranium_ingot.png",
inventory_image = "default_steel_ingot.png^[colorize:#00FF00:185",
inventory_image = "technic_uranium_ingot.png",
})
minetest.register_craft({
output = 'es:boneblock',
@ -146,7 +146,7 @@ minetest.register_craft({
recipe = {
{'group:flora' , },
{'es:dry_dirt', },
}
}
})
@ -249,6 +249,21 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = 'es:purpelliumblock',
recipe = {
{'es:purpellium_ingot', 'es:purpellium_ingot', 'es:purpellium_ingot'},
{'es:purpellium_ingot', 'es:purpellium_ingot', 'es:purpellium_ingot'},
{'es:purpellium_ingot', 'es:purpellium_ingot', 'es:purpellium_ingot'},
}
})
minetest.register_craft({
output = 'es:purpelliumblock 2',
recipe = {
{'stairs:stair_Purpellium', 'stairs:stair_Purpellium', 'stairs:stair_Purpellium'},
}
})
minetest.register_craft({
output = 'es:emerald_crystal 9',
@ -278,6 +293,12 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = 'es:purpellium_ingot 9',
recipe = {
{'es:purpelliumblock'},
}
})
--crafting
minetest.register_craft({
@ -286,9 +307,23 @@ minetest.register_craft({
recipe = {"vessels:glass_bottle", "es:infinium_goo","default:water_flowing"},
})
minetest.register_craft({
type = "shapeless",
output = "es:purpellium_container",
recipe = {"vessels:glass_bottle", "es:purpellium_dust","default:water_flowing"},
})
minetest.register_craftitem("es:purpellium_container", {
description = "Potion to do wonders!",
inventory_image = "purpellium_container.png",
on_use = minetest.item_eat(50),
--TODO HEAL HP TOO
})
minetest.register_craftitem("es:purpellium_dust", {
description = "Purpellium Dust",
inventory_image = "dye_violet.png",
})
--Weapon &Tool Crafting:
@ -443,6 +478,13 @@ minetest.register_craft({
recipe = "es:infinium_container",
})
minetest.register_craft({
type = "cooking",
cooktime = 30,
output = "es:purpellium_ingot",
recipe = "es:purpellium_lump",
})
minetest.register_craft({
type = "cooking",
cooktime = 30,
@ -461,7 +503,7 @@ minetest.register_craft({
--MUST HAVE DEFAULT ORE GENERATION SET
minetest.register_craftitem("es:mesecook_crystal", {
description = "Cookable Raw MESE",
inventory_image = "default_mineral_mese.png^[colorize:#F0E68C:195",
inventory_image = "default_mineral_mese.png",
})

View File

@ -22,8 +22,8 @@ es.modpath = modpath
-- REMOVE NODES DO NOT USE IN YOUR WORLD
-- Alias
--dofile(modpath.."/technodrem.lua")
--dofile(modpath.."/moreorerem.lua")
dofile(modpath.."/technodrem.lua")
dofile(modpath.."/moreorerem.lua")
dofile(modpath.."/alias.lua")
-- Anticheat by RND
@ -53,6 +53,7 @@ dofile(modpath.."/tools.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")
--MOREBLOCKS / STAIRSPLUS SUPPORT
if moreblocks then

1214
mapgen.lua

File diff suppressed because it is too large Load Diff

View File

@ -20,7 +20,7 @@ es = {}
if minetest.get_modpath("moreblocks") and enable_stairsplus then
register_stair_slab_panel_micro("es", "emeraldblock", "es:emeraldblock",
{cracky=3},
{"default_diamond_block.png^[colorize:#008000:134"},
{"emerald_block.png"},
"Emerald Block",
"emeraldblock",
0)
@ -29,7 +29,7 @@ end
if minetest.get_modpath("moreblocks") and enable_stairsplus then
register_stair_slab_panel_micro("es", "rubyblock", "es:rubyblock",
{cracky=3},
{"default_diamond_block.png^[colorize:#FF0000:144"},
{"ruby_block.png"},
"Ruby Block",
"rubyblock",
0)
@ -38,7 +38,7 @@ end
if minetest.get_modpath("moreblocks") and enable_stairsplus then
register_stair_slab_panel_micro("es", "aikerumblock", "es:aikerumblock",
{cracky=3},
{"default_diamond_block.png^[colorize:#0000FF:134"},
{"aikerum_block.png"},
"Aikerum Block",
"aikerumblock",
0)
@ -53,6 +53,15 @@ if minetest.get_modpath("moreblocks") and enable_stairsplus then
0)
end
if minetest.get_modpath("moreblocks") and enable_stairsplus then
register_stair_slab_panel_micro("es", "purpelliumblock", "es:purpelliumblock",
{cracky=3},
{"purpellium_block.png"},
"Purpellium Block",
"purpelliumblock",
0)
end
if minetest.get_modpath("moreblocks") and enable_stairsplus then
register_stair_slab_panel_micro("es", "boneblock", "es:boneblock",
{cracky=3},
@ -93,6 +102,7 @@ end
table.insert(circular_saw.known_stairs, "es:rubyblock")
table.insert(circular_saw.known_stairs, "es:aikerumblock")
table.insert(circular_saw.known_stairs, "es:infiniumblock")
table.insert(circular_saw.known_stairs, "es:purpelliumblock")
table.insert(circular_saw.known_stairs, "es:boneblock")
table.insert(circular_saw.known_stairs, "es:messymese")
table.insert(circular_saw.known_stairs, "default:dirt_with_grass")

870
nodes-bad.lua Normal file
View File

@ -0,0 +1,870 @@
--Extreme Survival created by maikerumine
-- Minetest 0.4.13 mod: "Extreme Survival"
-- namespace: es
--https://github.com/maikerumine
--License:
--~~~~~~~~
--Code:
--(c) Copyright 2015 maikerumine; modified zlib-License
--see "LICENSE.txt" for details.
--Media(if not stated differently):
--(c) Copyright (2014-2015) maikerumine; CC-BY-SA 3.0
--tweaks and overrides
--rnd code
--cactus tweaks
local function hurt_cactus() -- cactus tweak
local name = "default:cactus"
local table = minetest.registered_nodes[name];
local table2 = {};
for i,v in pairs(table) do table2[i] = v end
table2.groups.disable_jump = 1
table2.damage_per_second = 5
minetest.register_node(":"..name, table2)
end
hurt_cactus();
--TECHNIC NODES
minetest.register_node( "es:granite", {
description = "Granite",
tiles = { "technic_granite.png" },
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node( "es:marble", {
description = "Marble",
tiles = { "technic_marble.png" },
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node( "es:marble_bricks", {
description = "Marble Bricks",
tiles = { "technic_marble_bricks.png" },
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
--NOW WE ADD SOME RADIOACTIVITY FROM THE TECHNIC MOD
--20151206 DECIDED TO EVENTUALLY MOVE THIS INTO THE RADIATION HUD.
--MOVED AND TESTING NEW RADIATION HUD.
--KEEPING THIS CODE FOR POSSIBLE HUD FAILURE.
--UPDATE: Hud never worked like it should.
----------------------------------------
if not vector.length_square then
vector.length_square = function (v)
return v.x*v.x + v.y*v.y + v.z*v.z
end
end
-- radioactivity
-- Radiation resistance represents the extent to which a material
-- attenuates radiation passing through it; i.e., how good a radiation
-- shield it is. This is identified per node type. For materials that
-- exist in real life, the radiation resistance value that this system
-- uses for a node type consisting of a solid cube of that material is the
-- (approximate) number of halvings of ionising radiation that is achieved
-- by a metre of the material in real life. This is approximately
-- proportional to density, which provides a good way to estimate it.
-- Homogeneous mixtures of materials have radiation resistance computed
-- by a simple weighted mean. Note that the amount of attenuation that
-- a material achieves in-game is not required to be (and is not) the
-- same as the attenuation achieved in real life.
--
-- Radiation resistance for a node type may be specified in the node
-- definition, under the key "radiation_resistance". As an interim
-- measure, until node definitions widely include this, this code
-- knows a bunch of values for particular node types in several mods,
-- and values for groups of node types. The node definition takes
-- precedence if it specifies a value. Nodes for which no value at
-- all is known are taken to provide no radiation resistance at all;
-- this is appropriate for the majority of node types. Only node types
-- consisting of a fairly homogeneous mass of material should report
-- non-zero radiation resistance; anything with non-uniform geometry
-- or complex internal structure should show no radiation resistance.
-- Fractional resistance values are permitted; two significant figures
-- is the recommended precision.
local default_radiation_resistance_per_node = {
["default:brick"] = 13,
["default:bronzeblock"] = 45,
["default:clay"] = 15,
["default:coalblock"] = 9.6,
["default:cobble"] = 15,
["default:copperblock"] = 46,
["default:desert_cobble"] = 15,
["default:desert_sand"] = 10,
["default:desert_stone"] = 17,
["default:desert_stonebrick"] = 17,
["default:diamondblock"] = 24,
["default:dirt"] = 8.2,
["default:dirt_with_grass"] = 8.2,
["default:dry_dirt"] = 8.2,
["default:dirt_with_dry_grass"] = 8.2,
["default:dirt_with_grass_footsteps"] = 8.2,
["default:dirt_with_snow"] = 8.2,
["default:glass"] = 17,
["default:goldblock"] = 170,
["default:gravel"] = 10,
["default:ice"] = 5.6,
["default:lava_flowing"] = 8.5,
["default:lava_source"] = 17,
["default:mese"] = 21,
["default:mossycobble"] = 15,
["default:nyancat"] = 1000,
["default:nyancat_rainbow"] = 1000,
["default:obsidian"] = 18,
["default:obsidian_glass"] = 18,
["default:sand"] = 10,
["default:sandstone"] = 15,
["default:sandstonebrick"] = 15,
["default:snowblock"] = 1.7,
["default:steelblock"] = 40,
["default:stone"] = 17,
["default:stone_with_coal"] = 16,
["default:stone_with_copper"] = 20,
["default:stone_with_diamond"] = 18,
["default:stone_with_gold"] = 34,
["default:stone_with_iron"] = 20,
["default:stone_with_mese"] = 17,
["default:stonebrick"] = 17,
["default:water_flowing"] = 2.8,
["default:water_source"] = 5.6,
["farming:desert_sand_soil"] = 10,
["farming:desert_sand_soil_wet"] = 10,
["farming:soil"] = 8.2,
["farming:soil_wet"] = 8.2,
["glooptest:akalin_crystal_glass"] = 21,
["glooptest:akalinblock"] = 40,
["glooptest:alatro_crystal_glass"] = 21,
["glooptest:alatroblock"] = 40,
["glooptest:amethystblock"] = 18,
["glooptest:arol_crystal_glass"] = 21,
["glooptest:crystal_glass"] = 21,
["glooptest:emeraldblock"] = 19,
["glooptest:heavy_crystal_glass"] = 21,
["glooptest:mineral_akalin"] = 20,
["glooptest:mineral_alatro"] = 20,
["glooptest:mineral_amethyst"] = 17,
["glooptest:mineral_arol"] = 20,
["glooptest:mineral_desert_coal"] = 16,
["glooptest:mineral_desert_iron"] = 20,
["glooptest:mineral_emerald"] = 17,
["glooptest:mineral_kalite"] = 20,
["glooptest:mineral_ruby"] = 18,
["glooptest:mineral_sapphire"] = 18,
["glooptest:mineral_talinite"] = 20,
["glooptest:mineral_topaz"] = 18,
["glooptest:reinforced_crystal_glass"] = 21,
["glooptest:rubyblock"] = 27,
["glooptest:sapphireblock"] = 27,
["glooptest:talinite_crystal_glass"] = 21,
["glooptest:taliniteblock"] = 40,
["glooptest:topazblock"] = 24,
["mesecons_extrawires:mese_powered"] = 21,
["moreblocks:cactus_brick"] = 13,
["moreblocks:cactus_checker"] = 8.5,
["moreblocks:circle_stone_bricks"] = 17,
["moreblocks:clean_glass"] = 17,
["moreblocks:coal_checker"] = 9.0,
["moreblocks:coal_glass"] = 17,
["moreblocks:coal_stone"] = 17,
["moreblocks:coal_stone_bricks"] = 17,
["moreblocks:glow_glass"] = 17,
["moreblocks:grey_bricks"] = 15,
["moreblocks:iron_checker"] = 11,
["moreblocks:iron_glass"] = 17,
["moreblocks:iron_stone"] = 17,
["moreblocks:iron_stone_bricks"] = 17,
["moreblocks:plankstone"] = 9.3,
["moreblocks:split_stone_tile"] = 15,
["moreblocks:split_stone_tile_alt"] = 15,
["moreblocks:stone_tile"] = 15,
["moreblocks:super_glow_glass"] = 17,
["moreblocks:tar"] = 7.0,
["moreblocks:wood_tile"] = 1.7,
["moreblocks:wood_tile_center"] = 1.7,
["moreblocks:wood_tile_down"] = 1.7,
["moreblocks:wood_tile_flipped"] = 1.7,
["moreblocks:wood_tile_full"] = 1.7,
["moreblocks:wood_tile_left"] = 1.7,
["moreblocks:wood_tile_right"] = 1.7,
["moreblocks:wood_tile_up"] = 1.7,
["moreores:mineral_mithril"] = 18,
["moreores:mineral_silver"] = 21,
["moreores:mineral_tin"] = 19,
["moreores:mithril_block"] = 26,
["moreores:silver_block"] = 53,
["moreores:tin_block"] = 37,
["snow:snow_brick"] = 2.8,
["technic:brass_block"] = 43,
["technic:carbon_steel_block"] = 40,
["technic:cast_iron_block"] = 40,
["technic:chernobylite_block"] = 40,
["technic:chromium_block"] = 37,
["technic:corium_flowing"] = 40,
["technic:corium_source"] = 80,
["technic:granite"] = 18,
["technic:marble"] = 18,
["technic:marble_bricks"] = 18,
["technic:mineral_chromium"] = 19,
["technic:mineral_uranium"] = 71,
["technic:mineral_zinc"] = 19,
["technic:stainless_steel_block"] = 40,
["technic:uranium_block"] = 500,
["technic:zinc_block"] = 36,
["tnt:tnt"] = 11,
["tnt:tnt_burning"] = 11,
}
local default_radiation_resistance_per_group = {
concrete = 16,
tree = 3.4,
wood = 1.7,
}
local cache_radiation_resistance = {}
local function node_radiation_resistance(nodename)
local eff = cache_radiation_resistance[nodename]
if eff then return eff end
local def = minetest.registered_nodes[nodename] or {groups={}}
eff = def.radiation_resistance or default_radiation_resistance_per_node[nodename]
if not eff then
for g, v in pairs(def.groups) do
if v > 0 and default_radiation_resistance_per_group[g] then
eff = default_radiation_resistance_per_group[g]
break
end
end
end
if not eff then eff = 0 end
cache_radiation_resistance[nodename] = eff
return eff
end
-- Radioactive nodes cause damage to nearby players. The damage
-- effect depends on the intrinsic strength of the radiation source,
-- the distance between the source and the player, and the shielding
-- effect of the intervening material. These determine a rate of damage;
-- total damage caused is the integral of this over time.
--
-- In the absence of effective shielding, for a specific source the
-- damage rate varies realistically in inverse proportion to the square
-- of the distance. (Distance is measured to the player's abdomen,
-- not to the nominal player position which corresponds to the foot.)
-- However, if the player is inside a non-walkable (liquid or gaseous)
-- radioactive node, the nominal distance could go to zero, yielding
-- infinite damage. In that case, the player's body is displacing the
-- radioactive material, so the effective distance should remain non-zero.
-- We therefore apply a lower distance bound of sqrt(0.75) m, which is
-- the maximum distance one can get from the node centre within the node.
--
-- A radioactive node is identified by being in the "radioactive" group,
-- and the group value signifies the strength of the radiation source.
-- The group value is the distance in metres from a node at which an
-- unshielded player will be damaged by 0.25 HP/s. Or, equivalently, it
-- is half the square root of the damage rate in HP/s that an unshielded
-- player 1 m away will take.
--
-- Shielding is assessed by sampling every 0.25 m along the path
-- from the source to the player, ignoring the source node itself.
-- The summed radiation resistance values from the sampled nodes yield
-- a measure of the total amount of radiation resistance on the path.
-- As in reality, shielding causes exponential attenuation of radiation.
-- However, the effect is scaled down relative to real life: each
-- metre-point of shielding, corresponding to a real-life halving of
-- radiation, reduces radiation by 0.01 nepers (a factor of about 1.01).
-- This scales down the difference between shielded and unshielded safe
-- distances, avoiding the latter becoming impractically large.
--
-- Damage is processed at rates down to 0.25 HP/s, which in the absence of
-- shielding is attained at the distance specified by the "radioactive"
-- group value. Computed damage rates below 0.25 HP/s result in no
-- damage at all to the player. This gives the player an opportunity
-- to be safe, and limits the range at which source/player interactions
-- need to be considered.
local assumed_abdomen_offset = vector.new(0, 1, 0)
local assumed_abdomen_offset_length = vector.length(assumed_abdomen_offset)
minetest.register_abm({
nodenames = {"group:radioactive"},
interval = 1,
chance = 1,
action = function (pos, node)
local strength = minetest.registered_nodes[node.name].groups.radioactive
for _, o in ipairs(minetest.get_objects_inside_radius(pos, strength + assumed_abdomen_offset_length)) do
if o:is_player() then
local rel = vector.subtract(vector.add(o:getpos(), assumed_abdomen_offset), pos)
local dist_sq = vector.length_square(rel)
local dist = math.sqrt(dist_sq)
local dirstep = dist == 0 and vector.new(0,0,0) or vector.divide(rel, dist*4)
local intpos = pos
local resistance = 0
for intdist = 0.25, dist, 0.25 do
intpos = vector.add(intpos, dirstep)
local intnodepos = vector.round(intpos)
if not vector.equals(intnodepos, pos) then
resistance = resistance + node_radiation_resistance(minetest.get_node(intnodepos).name)
end
end
local dmg_rate = 0.25 * strength*strength * math.exp(-0.0025*resistance) / math.max(0.75, dist_sq)
if dmg_rate >= 0.25 then
local dmg_int = math.floor(dmg_rate)
if math.random() < dmg_rate-dmg_int then
dmg_int = dmg_int + 1
end
if dmg_int > 0 then
o:set_hp(math.max(o:get_hp() - dmg_int, 0))
end
end
end
end
end,
})
--ES 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)},
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, radioactive = (state == "source" and 2 or 2)},
drop = "es:purpellium_lump",
sounds = default.node_sound_stone_defaults(),
})
--Emerald located at -1000
minetest.register_node("es:emeraldblock", {
description = "Emerald Block",
tiles = {"emerald_block.png"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("es:emerald_crystal", {
description = "Emerald Crystal",
inventory_image = "emerald.png",
})
--Ruby located at -3000
minetest.register_node("es:rubyblock", {
description = "Ruby Block",
tiles = {"ruby_block.png"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("es:ruby_crystal", {
description = "Ruby Crystal",
inventory_image = "ruby.png",
})
--Aikerum located at -4000
minetest.register_node("es:aikerumblock", {
description = "Aikerum Block",
tiles = {"aikerum_block.png"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("es:aikerum_crystal", {
description = "Aikerum Crystal",
inventory_image = "aikerum.png",
})
--Infinium located at -4300
minetest.register_node("es:infiniumblock", {
description = "infinium Block",
tiles = {"infinium_block.png"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("es:infinium_goo", {
description = "Infinium Goo--Need to craft with vessel to contain.",
inventory_image = "infinium.png",
})
minetest.register_craftitem("es:infinium_ingot", {
description = "Infinium Ingot--TBD CRAFTING Special Armour and Lab Equipment",
--inventory_image = "infinium_ingot.png",
inventory_image = "infinium_ingot.png",
})
minetest.register_craftitem("es:infinium_container", {
description = "Infinium Container--Cook to get Infinium Ingot",
inventory_image = "infinium_container.png",
})
--Purpellium located at -4000
minetest.register_node("es:purpelliumblock", {
description = "Purpellium Block",
tiles = {"purpellium_block.png"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("es:purpellium_lump", {
description = "Purpellium Lump",
inventory_image = "purpellium_lump.png",
})
minetest.register_craftitem("es:purpellium_ingot", {
description = "Purpellium Ingot",
inventory_image = "purpellium_ingot.png",
})
--BONEBLOCK
minetest.register_node("es:boneblock", {
description = "Bone Blox",
tiles = {
"bones_top.png",
"bones_bottom.png",
"bones_side.png",
"bones_side.png",
"bones_rear.png",
"bones_front.png"
},
paramtype2 = "facedir",
groups = {dig_immediate=2},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_gravel_footstep", gain=0.5},
dug = {name="default_gravel_footstep", gain=1.0},
}),
})
--INPERVIOUS NODES CANNOT BREAK- Great for prison walls.
minetest.register_node("es:hgglass", {
description = "High Density Glass",
drawtype = "glasslike_framed_optional",
tiles = {"default_glass.png", "default_glass_detail.png"},
inventory_image = minetest.inventorycube("default_glass.png"),
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_node("es:steelblock", {
description = "High Density Steel Block",
tiles = {"default_steel_block.png"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:stoneblock", {
description = "High Density Stone Block",
tiles = {"default_stone.png"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:sandstonebrick", {
description = "High Density Sandstone Brick",
tiles = {"default_stone_brick.png^[colorize:#CCCC99:150"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:stonebrick", {
description = "High Density Stone Brick",
tiles = {"default_stone_brick.png"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:junglewood", {
description = "High Density Junglewood Planks",
tiles = {"default_junglewood.png"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_wood_defaults(),
})
--A simple way to store your cookable Mese, and it gives off light!
minetest.register_node("es:messymese", {
description = "Messy MESE Block",
tiles = {"default_clay.png^bubble.png^mese_cook_mese_crystal.png"},
light_source = 14,
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:what", {
description = "The What Block - Dig for random gift",
drawtype = "glasslike_framed_optional^bubble.png",
tiles = {"default_glass.png^bubble.png", "default_glass_detail.png^bubble.png"},
inventory_image = minetest.inventorycube("default_glass.png"),
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
groups = {crumbly=3,},
drop = {
max_items = 2,
items = {
{items = {'es:what'}, rarity = 80},
{items = {'es:sword_aikerum'}, rarity = 50},
{items = {'es:sword_ruby'}, rarity = 40},
{items = {'es:sword_emerald'}, rarity = 30},
{items = {'es:pick_aikerum'}, rarity = 50},
{items = {'es:pick_ruby'}, rarity = 40},
{items = {'es:pick_emerald'}, rarity = 30},
{items = {'farming:bread 20'}, rarity = 3},
{items = {'default:cobble 10'}, rarity = 3},
{items = {'default:gold_lump 10'}, rarity = 10},
{items = {'default:iron_lump 10'}, rarity = 5},
{items = {'default:apple 10'}, rarity = 5},
{items = {'default:coal_lump 10'}, rarity = 1},
{items = {'es:depleted_uranium_ingot 3'}}
}
},
sounds = default.node_sound_glass_defaults(),
})
--Default addons as they should be. I changed ore generation to keep unique for compatibility.
--Dry dirt added
minetest.register_node("es:dry_dirt", {
description = "Some dry dirt",
tiles = {"default_dry_dirt.png"},
--tiles = {"dry_dirt.png"},
groups = {crumbly = 3},
drop = 'es:dry_dirt',
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25},
}),
})
minetest.register_node("es:stone_with_mese", {
description = "Cookable Mese Ore",
tiles = {"default_stone.png^default_mineral_mese.png"},
paramtype = "light",
groups = {cracky = 1},
drop = "es:mesecook_crystal",
sounds = default.node_sound_stone_defaults(),
light_source = 1,
})
minetest.register_node("es:desert_stone_with_gold", {
description = "Gold Ore",
tiles = {"default_desert_stone.png^default_mineral_gold.png"},
groups = {cracky = 2},
drop = "default:gold_lump",
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:desert_stone_with_iron", {
description = "Iron Ore",
tiles = {"default_desert_stone.png^default_mineral_iron.png"},
groups = {cracky = 2},
drop = 'default:iron_lump',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:desert_stone_with_coal", {
description = "Coal Ore",
tiles = {"default_desert_stone.png^default_mineral_coal.png"},
groups = {cracky = 3},
drop = 'default:coal_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)},
drop = 'es:depleted_uranium_lump',
sounds = default.node_sound_stone_defaults(),
light_source = 12,
})
minetest.register_craftitem("es:depleted_uranium_lump", {
description = "Depleted Uranium use for long term fuel, first cook the lump into an ingot, then use ingot for fuel.",
inventory_image = "uranium_lump.png",
})
--ES CUSTOM LIQUIDS:
minetest.register_node("es:toxic_water_source", {
description = "Toxic_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,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "source",
liquid_alternative_flowing = "es:toxic_water_flowing",
liquid_alternative_source = "es:toxic_water_source",
liquid_viscosity =3,
damage_per_second = 3*2,
post_effect_color = {a = 255, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1, radioactive = (state == "source" and 2 or 2),},
})
--NOTES:
-- radioactive = (state == "source" and 32 or 16),
--THIS IS DEFAULT SETTING FROM TECHNIC
minetest.register_node("es:toxic_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 = "es:toxic_water_flowing",
liquid_alternative_source = "es:toxic_water_source",
liquid_viscosity = 2,
damage_per_second = 2*2,
post_effect_color = {a = 255, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1,
not_in_creative_inventory = 1, radioactive = (state == "source" and 2 or 2),},
})
--[[--FOR REF
-- Quicksand (old style, sinking inside shows black instead of yellow effect,
-- works ok with noclip enabled though)
minetest.register_node("ethereal:quicksand", {
description = "Quicksand",
tiles = {"default_sand.png"},
drop = "default:sand",
liquid_viscosity = 15,
liquidtype = "source",
liquid_alternative_flowing = "ethereal:quicksand",
liquid_alternative_source = "ethereal:quicksand",
liquid_renewable = false,
liquid_range = 0,
drowning = 1,
walkable = false,
climbable = false,
post_effect_color = { r=230, g=210, b=160, a=245 },
groups = {crumbly=3, falling_node=1, sand=1, liquid=3, disable_jump=1},
sounds = default.node_sound_sand_defaults(),
})
]]
minetest.register_node("es:mud_source", {
description = "Mud Source",
inventory_image = minetest.inventorycube("es_mud.png"),
drawtype = "liquid",
tiles = {"es_mud.png"},
--[[ tiles = {
{
name = "default_mud_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 = "default_mud_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
backface_culling = false,
},
},]]
alpha = 255,
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
--damage_per_second = 3*2,
liquidtype = "source",
liquid_alternative_flowing = "es:mud_flowing",
liquid_alternative_source = "es:mud_source",
liquid_viscosity = 18,
post_effect_color = {a = 255, r = 43, g = 23, b = 9},
groups = {water = 3, liquid = 3, puts_out_fire = 1, },
})
minetest.register_node("es:mud_flowing", {
description = "Flowing mud",
inventory_image = minetest.inventorycube("es_mud.png"),
drawtype = "liquid",--change to liquid for a solid look
tiles = {"es_mud.png"},
special_tiles = {
{
name = "es_mud_flowing_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
{
name = "es_mud_flowing_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
},
alpha = 250,
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
--damage_per_second = 3*2,
liquidtype = "flowing",
liquid_alternative_flowing = "es:mud_flowing",
liquid_alternative_source = "es:mud_source",
liquid_viscosity = 19,
post_effect_color = {a = 255, r = 43, g = 23, b = 9},
groups = {water = 3, liquid = 3, puts_out_fire = 1,
not_in_creative_inventory = 1, },
})

625
nodes-good.lua Normal file
View File

@ -0,0 +1,625 @@
--Extreme Survival created by maikerumine
-- Minetest 0.4.13 mod: "Extreme Survival"
-- namespace: es
--https://github.com/maikerumine
--License:
--~~~~~~~~
--Code:
--(c) Copyright 2015 maikerumine; modified zlib-License
--see "LICENSE.txt" for details.
--Media(if not stated differently):
--(c) Copyright (2014-2015) maikerumine; CC-BY-SA 3.0
--tweaks and overrides
--rnd code
--cactus tweaks
local function hurt_cactus() -- cactus tweak
local name = "default:cactus"
local table = minetest.registered_nodes[name];
local table2 = {};
for i,v in pairs(table) do table2[i] = v end
table2.groups.disable_jump = 1
table2.damage_per_second = 5
minetest.register_node(":"..name, table2)
end
hurt_cactus();
--TECHNIC NODES
minetest.register_node( "es:granite", {
description = "Granite",
tiles = { "technic_granite.png" },
--tiles = { "default_coal_block.png^[colorize:#696969:142^(default_acacia_leaves.png^[colorize:#5E2612:152)" },
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node( "es:marble", {
description = "Marble",
tiles = { "technic_marble.png" },
--tiles = {"default_sand.png^[colorize:#CDB79E:142^(default_acacia_leaves.png^[colorize:#CDB79E:152)"},
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node( "es:marble_bricks", {
description = "Marble Bricks",
tiles = { "technic_marble_bricks.png" },
--tiles = {"default_sandstone_brick.png^[colorize:#CDB79E:182^(default_acacia_leaves.png^[colorize:#CDB79E:152)" },
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
--NOW WE ADD SOME RADIOACTIVITY FROM THE TECHNIC MOD
--20151206 DECIDED TO EVENTUALLY MOVE THIS INTO THE RADIATION HUD.
--MOVED AND TESTING NEW RADIATION HUD.
--KEEPING THIS CODE FOR POSSIBLE HUD FAILURE.
--UPDATE: Hud never worked like it should.
----------------------------------------
if not vector.length_square then
vector.length_square = function (v)
return v.x*v.x + v.y*v.y + v.z*v.z
end
end
-- radioactivity
-- Radiation resistance represents the extent to which a material
-- attenuates radiation passing through it; i.e., how good a radiation
-- shield it is. This is identified per node type. For materials that
-- exist in real life, the radiation resistance value that this system
-- uses for a node type consisting of a solid cube of that material is the
-- (approximate) number of halvings of ionising radiation that is achieved
-- by a metre of the material in real life. This is approximately
-- proportional to density, which provides a good way to estimate it.
-- Homogeneous mixtures of materials have radiation resistance computed
-- by a simple weighted mean. Note that the amount of attenuation that
-- a material achieves in-game is not required to be (and is not) the
-- same as the attenuation achieved in real life.
--
-- Radiation resistance for a node type may be specified in the node
-- definition, under the key "radiation_resistance". As an interim
-- measure, until node definitions widely include this, this code
-- knows a bunch of values for particular node types in several mods,
-- and values for groups of node types. The node definition takes
-- precedence if it specifies a value. Nodes for which no value at
-- all is known are taken to provide no radiation resistance at all;
-- this is appropriate for the majority of node types. Only node types
-- consisting of a fairly homogeneous mass of material should report
-- non-zero radiation resistance; anything with non-uniform geometry
-- or complex internal structure should show no radiation resistance.
-- Fractional resistance values are permitted; two significant figures
-- is the recommended precision.
local default_radiation_resistance_per_node = {
["default:brick"] = 13,
["default:bronzeblock"] = 45,
["default:clay"] = 15,
["default:coalblock"] = 9.6,
["default:cobble"] = 15,
["default:copperblock"] = 46,
["default:desert_cobble"] = 15,
["default:desert_sand"] = 10,
["default:desert_stone"] = 17,
["default:desert_stonebrick"] = 17,
["default:diamondblock"] = 24,
["default:dirt"] = 8.2,
["default:dirt_with_grass"] = 8.2,
["default:dry_dirt"] = 8.2,
["default:dirt_with_dry_grass"] = 8.2,
["default:dirt_with_grass_footsteps"] = 8.2,
["default:dirt_with_snow"] = 8.2,
["default:glass"] = 17,
["default:goldblock"] = 170,
["default:gravel"] = 10,
["default:ice"] = 5.6,
["default:lava_flowing"] = 8.5,
["default:lava_source"] = 17,
["default:mese"] = 21,
["default:mossycobble"] = 15,
["default:nyancat"] = 1000,
["default:nyancat_rainbow"] = 1000,
["default:obsidian"] = 18,
["default:obsidian_glass"] = 18,
["default:sand"] = 10,
["default:sandstone"] = 15,
["default:sandstonebrick"] = 15,
["default:snowblock"] = 1.7,
["default:steelblock"] = 40,
["default:stone"] = 17,
["default:stone_with_coal"] = 16,
["default:stone_with_copper"] = 20,
["default:stone_with_diamond"] = 18,
["default:stone_with_gold"] = 34,
["default:stone_with_iron"] = 20,
["default:stone_with_mese"] = 17,
["default:stonebrick"] = 17,
["default:water_flowing"] = 2.8,
["default:water_source"] = 5.6,
["farming:desert_sand_soil"] = 10,
["farming:desert_sand_soil_wet"] = 10,
["farming:soil"] = 8.2,
["farming:soil_wet"] = 8.2,
["glooptest:akalin_crystal_glass"] = 21,
["glooptest:akalinblock"] = 40,
["glooptest:alatro_crystal_glass"] = 21,
["glooptest:alatroblock"] = 40,
["glooptest:amethystblock"] = 18,
["glooptest:arol_crystal_glass"] = 21,
["glooptest:crystal_glass"] = 21,
["glooptest:emeraldblock"] = 19,
["glooptest:heavy_crystal_glass"] = 21,
["glooptest:mineral_akalin"] = 20,
["glooptest:mineral_alatro"] = 20,
["glooptest:mineral_amethyst"] = 17,
["glooptest:mineral_arol"] = 20,
["glooptest:mineral_desert_coal"] = 16,
["glooptest:mineral_desert_iron"] = 20,
["glooptest:mineral_emerald"] = 17,
["glooptest:mineral_kalite"] = 20,
["glooptest:mineral_ruby"] = 18,
["glooptest:mineral_sapphire"] = 18,
["glooptest:mineral_talinite"] = 20,
["glooptest:mineral_topaz"] = 18,
["glooptest:reinforced_crystal_glass"] = 21,
["glooptest:rubyblock"] = 27,
["glooptest:sapphireblock"] = 27,
["glooptest:talinite_crystal_glass"] = 21,
["glooptest:taliniteblock"] = 40,
["glooptest:topazblock"] = 24,
["mesecons_extrawires:mese_powered"] = 21,
["moreblocks:cactus_brick"] = 13,
["moreblocks:cactus_checker"] = 8.5,
["moreblocks:circle_stone_bricks"] = 17,
["moreblocks:clean_glass"] = 17,
["moreblocks:coal_checker"] = 9.0,
["moreblocks:coal_glass"] = 17,
["moreblocks:coal_stone"] = 17,
["moreblocks:coal_stone_bricks"] = 17,
["moreblocks:glow_glass"] = 17,
["moreblocks:grey_bricks"] = 15,
["moreblocks:iron_checker"] = 11,
["moreblocks:iron_glass"] = 17,
["moreblocks:iron_stone"] = 17,
["moreblocks:iron_stone_bricks"] = 17,
["moreblocks:plankstone"] = 9.3,
["moreblocks:split_stone_tile"] = 15,
["moreblocks:split_stone_tile_alt"] = 15,
["moreblocks:stone_tile"] = 15,
["moreblocks:super_glow_glass"] = 17,
["moreblocks:tar"] = 7.0,
["moreblocks:wood_tile"] = 1.7,
["moreblocks:wood_tile_center"] = 1.7,
["moreblocks:wood_tile_down"] = 1.7,
["moreblocks:wood_tile_flipped"] = 1.7,
["moreblocks:wood_tile_full"] = 1.7,
["moreblocks:wood_tile_left"] = 1.7,
["moreblocks:wood_tile_right"] = 1.7,
["moreblocks:wood_tile_up"] = 1.7,
["moreores:mineral_mithril"] = 18,
["moreores:mineral_silver"] = 21,
["moreores:mineral_tin"] = 19,
["moreores:mithril_block"] = 26,
["moreores:silver_block"] = 53,
["moreores:tin_block"] = 37,
["snow:snow_brick"] = 2.8,
["technic:brass_block"] = 43,
["technic:carbon_steel_block"] = 40,
["technic:cast_iron_block"] = 40,
["technic:chernobylite_block"] = 40,
["technic:chromium_block"] = 37,
["technic:corium_flowing"] = 40,
["technic:corium_source"] = 80,
["technic:granite"] = 18,
["technic:marble"] = 18,
["technic:marble_bricks"] = 18,
["technic:mineral_chromium"] = 19,
["technic:mineral_uranium"] = 71,
["technic:mineral_zinc"] = 19,
["technic:stainless_steel_block"] = 40,
["technic:uranium_block"] = 500,
["technic:zinc_block"] = 36,
["tnt:tnt"] = 11,
["tnt:tnt_burning"] = 11,
}
local default_radiation_resistance_per_group = {
concrete = 16,
tree = 3.4,
wood = 1.7,
}
local cache_radiation_resistance = {}
local function node_radiation_resistance(nodename)
local eff = cache_radiation_resistance[nodename]
if eff then return eff end
local def = minetest.registered_nodes[nodename] or {groups={}}
eff = def.radiation_resistance or default_radiation_resistance_per_node[nodename]
if not eff then
for g, v in pairs(def.groups) do
if v > 0 and default_radiation_resistance_per_group[g] then
eff = default_radiation_resistance_per_group[g]
break
end
end
end
if not eff then eff = 0 end
cache_radiation_resistance[nodename] = eff
return eff
end
-- Radioactive nodes cause damage to nearby players. The damage
-- effect depends on the intrinsic strength of the radiation source,
-- the distance between the source and the player, and the shielding
-- effect of the intervening material. These determine a rate of damage;
-- total damage caused is the integral of this over time.
--
-- In the absence of effective shielding, for a specific source the
-- damage rate varies realistically in inverse proportion to the square
-- of the distance. (Distance is measured to the player's abdomen,
-- not to the nominal player position which corresponds to the foot.)
-- However, if the player is inside a non-walkable (liquid or gaseous)
-- radioactive node, the nominal distance could go to zero, yielding
-- infinite damage. In that case, the player's body is displacing the
-- radioactive material, so the effective distance should remain non-zero.
-- We therefore apply a lower distance bound of sqrt(0.75) m, which is
-- the maximum distance one can get from the node centre within the node.
--
-- A radioactive node is identified by being in the "radioactive" group,
-- and the group value signifies the strength of the radiation source.
-- The group value is the distance in metres from a node at which an
-- unshielded player will be damaged by 0.25 HP/s. Or, equivalently, it
-- is half the square root of the damage rate in HP/s that an unshielded
-- player 1 m away will take.
--
-- Shielding is assessed by sampling every 0.25 m along the path
-- from the source to the player, ignoring the source node itself.
-- The summed radiation resistance values from the sampled nodes yield
-- a measure of the total amount of radiation resistance on the path.
-- As in reality, shielding causes exponential attenuation of radiation.
-- However, the effect is scaled down relative to real life: each
-- metre-point of shielding, corresponding to a real-life halving of
-- radiation, reduces radiation by 0.01 nepers (a factor of about 1.01).
-- This scales down the difference between shielded and unshielded safe
-- distances, avoiding the latter becoming impractically large.
--
-- Damage is processed at rates down to 0.25 HP/s, which in the absence of
-- shielding is attained at the distance specified by the "radioactive"
-- group value. Computed damage rates below 0.25 HP/s result in no
-- damage at all to the player. This gives the player an opportunity
-- to be safe, and limits the range at which source/player interactions
-- need to be considered.
local assumed_abdomen_offset = vector.new(0, 1, 0)
local assumed_abdomen_offset_length = vector.length(assumed_abdomen_offset)
minetest.register_abm({
nodenames = {"group:radioactive"},
interval = 1,
chance = 1,
action = function (pos, node)
local strength = minetest.registered_nodes[node.name].groups.radioactive
for _, o in ipairs(minetest.get_objects_inside_radius(pos, strength + assumed_abdomen_offset_length)) do
if o:is_player() then
local rel = vector.subtract(vector.add(o:getpos(), assumed_abdomen_offset), pos)
local dist_sq = vector.length_square(rel)
local dist = math.sqrt(dist_sq)
local dirstep = dist == 0 and vector.new(0,0,0) or vector.divide(rel, dist*4)
local intpos = pos
local resistance = 0
for intdist = 0.25, dist, 0.25 do
intpos = vector.add(intpos, dirstep)
local intnodepos = vector.round(intpos)
if not vector.equals(intnodepos, pos) then
resistance = resistance + node_radiation_resistance(minetest.get_node(intnodepos).name)
end
end
local dmg_rate = 0.25 * strength*strength * math.exp(-0.0025*resistance) / math.max(0.75, dist_sq)
if dmg_rate >= 0.25 then
local dmg_int = math.floor(dmg_rate)
if math.random() < dmg_rate-dmg_int then
dmg_int = dmg_int + 1
end
if dmg_int > 0 then
o:set_hp(math.max(o:get_hp() - dmg_int, 0))
end
end
end
end
end,
})
--ES Node Definition
minetest.register_node("es:stone_with_emerald", {
description = "Emerald Ore",
tiles = {"default_stone.png^(default_mineral_mese.png^[colorize:#008000:134)"},
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^(default_mineral_mese.png^[colorize:#FF0000:144)"},
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^(default_mineral_mese.png^[colorize:#0000FF:134)"},
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)},
drop = "es:infinium_goo",
sounds = default.node_sound_stone_defaults(),
})
--Emerald located at -1000
minetest.register_node("es:emeraldblock", {
description = "Emerald Block",
tiles = {"default_diamond_block.png^[colorize:#008000:134"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("es:emerald_crystal", {
description = "Emerald Crystal",
inventory_image = "default_diamond.png^[colorize:#008000:134",
})
--Ruby located at -3000
minetest.register_node("es:rubyblock", {
description = "Ruby Block",
tiles = {"default_diamond_block.png^[colorize:#FF0000:194"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("es:ruby_crystal", {
description = "Ruby Crystal",
inventory_image = "default_diamond.png^[colorize:#FF0000:144",
})
--Aikerum located at -4000
minetest.register_node("es:aikerumblock", {
description = "Aikerum Block",
tiles = {"default_diamond_block.png^[colorize:#0000FF:134"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("es:aikerum_crystal", {
description = "Aikerum Crystal",
inventory_image = "default_diamond.png^[colorize:#0000FF:134",
})
--Infinium located at -4300
minetest.register_node("es:infiniumblock", {
description = "infinium Block",
tiles = {"infinium_block.png"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("es:infinium_goo", {
description = "Infinium Goo--Need to craft with vessel to contain.",
inventory_image = "infinium.png",
})
minetest.register_craftitem("es:infinium_ingot", {
description = "Infinium Ingot--TBD CRAFTING Special Armour and Lab Equipment",
--inventory_image = "infinium_ingot.png",
inventory_image = "default_steel_ingot.png^[colorize:#B0171F:215",
})
minetest.register_craftitem("es:infinium_container", {
description = "Infinium Container--Cook to get Infinium Ingot",
inventory_image = "infinium_container.png",
})
--BONEBLOCK
minetest.register_node("es:boneblock", {
description = "Bone Blox",
tiles = {
"bones_top.png",
"bones_bottom.png",
"bones_side.png",
"bones_side.png",
"bones_rear.png",
"bones_front.png"
},
paramtype2 = "facedir",
groups = {dig_immediate=2},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_gravel_footstep", gain=0.5},
dug = {name="default_gravel_footstep", gain=1.0},
}),
})
--INPERVIOUS NODES CANNOT BREAK- Great for prison walls.
minetest.register_node("es:hgglass", {
description = "High Density Glass",
drawtype = "glasslike_framed_optional",
tiles = {"default_glass.png", "default_glass_detail.png"},
inventory_image = minetest.inventorycube("default_glass.png"),
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_node("es:steelblock", {
description = "High Density Steel Block",
tiles = {"default_steel_block.png"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:stoneblock", {
description = "High Density Stone Block",
tiles = {"default_stone.png"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:sandstonebrick", {
description = "High Density Sandstone Brick",
tiles = {"default_sandstone_brick.png"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:stonebrick", {
description = "High Density Stone Brick",
tiles = {"default_stone_brick.png"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:junglewood", {
description = "High Density Junglewood Planks",
tiles = {"default_junglewood.png"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_wood_defaults(),
})
--A simple way to store your cookable Mese, and it gives off light!
minetest.register_node("es:messymese", {
description = "Messy MESE Block",
tiles = {"default_clay.png^bubble.png^mese_cook_mese_crystal.png"},
light_source = 14,
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:what", {
description = "The What Block - Dig for random gift",
drawtype = "glasslike_framed_optional^bubble.png",
tiles = {"default_glass.png^bubble.png", "default_glass_detail.png^bubble.png"},
inventory_image = minetest.inventorycube("default_glass.png"),
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
groups = {crumbly=3,},
drop = {
max_items = 2,
items = {
{items = {'es:what'}, rarity = 80},
{items = {'es:sword_aikerum'}, rarity = 50},
{items = {'es:sword_ruby'}, rarity = 40},
{items = {'es:sword_emerald'}, rarity = 30},
{items = {'es:pick_aikerum'}, rarity = 50},
{items = {'es:pick_ruby'}, rarity = 40},
{items = {'es:pick_emerald'}, rarity = 30},
{items = {'farming:bread 20'}, rarity = 3},
{items = {'default:cobble 10'}, rarity = 3},
{items = {'default:gold_lump 10'}, rarity = 10},
{items = {'default:iron_lump 10'}, rarity = 5},
{items = {'default:apple 10'}, rarity = 5},
{items = {'default:coal_lump 10'}, rarity = 1},
{items = {'es:depleted_uranium_ingot 3'}}
}
},
sounds = default.node_sound_glass_defaults(),
})
--Default addons as they should be. I changed ore generation to keep unique for compatibility.
--Dry dirt added
minetest.register_node("es:dry_dirt", {
description = "Some dry dirt",
--tiles = {"default_dry_dirt.png"},
tiles = {"default_dirt.png^[colorize:#B8860B:95"},
groups = {crumbly = 3},
drop = 'es:dry_dirt',
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25},
}),
})
minetest.register_node("es:stone_with_mese", {
description = "Cookable Mese Ore",
tiles = {"default_stone.png^(default_mineral_mese.png^[colorize:#F0E68C:195)"},
paramtype = "light",
groups = {cracky = 1},
drop = "es:mesecook_crystal",
sounds = default.node_sound_stone_defaults(),
light_source = 1,
})
minetest.register_node("es:desert_stone_with_gold", {
description = "Gold Ore",
tiles = {"default_desert_stone.png^default_mineral_gold.png"},
groups = {cracky = 2},
drop = "default:gold_lump",
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:desert_stone_with_iron", {
description = "Iron Ore",
tiles = {"default_desert_stone.png^default_mineral_iron.png"},
groups = {cracky = 2},
drop = 'default:iron_lump',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:desert_stone_with_coal", {
description = "Coal Ore",
tiles = {"default_desert_stone.png^default_mineral_coal.png"},
groups = {cracky = 3},
drop = 'default:coal_lump',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:depleted_uranium", {
description = "Depleted Uranium Ore RADIOACTIVE",
tiles = {"default_stone.png^(default_mineral_gold.png^[colorize:#00FF00:195)"},
groups = {cracky = 3, radioactive = (state == "source" and 3 or 2)},
drop = 'es:depleted_uranium_lump',
sounds = default.node_sound_stone_defaults(),
light_source = 1,
})
minetest.register_craftitem("es:depleted_uranium_lump", {
description = "Depleted Uranium use for long term fuel, first cook the lump into an ingot, then use ingot for fuel.",
inventory_image = "default_mineral_mese.png^[colorize:#7CFC00:195",
})

625
nodes-org.lua Normal file
View File

@ -0,0 +1,625 @@
--Extreme Survival created by maikerumine
-- Minetest 0.4.13 mod: "Extreme Survival"
-- namespace: es
--https://github.com/maikerumine
--License:
--~~~~~~~~
--Code:
--(c) Copyright 2015 maikerumine; modified zlib-License
--see "LICENSE.txt" for details.
--Media(if not stated differently):
--(c) Copyright (2014-2015) maikerumine; CC-BY-SA 3.0
--tweaks and overrides
--rnd code
--cactus tweaks
local function hurt_cactus() -- cactus tweak
local name = "default:cactus"
local table = minetest.registered_nodes[name];
local table2 = {};
for i,v in pairs(table) do table2[i] = v end
table2.groups.disable_jump = 1
table2.damage_per_second = 5
minetest.register_node(":"..name, table2)
end
hurt_cactus();
--TECHNIC NODES
minetest.register_node( "es:granite", {
description = "Granite",
tiles = { "technic_granite.png" },
--tiles = { "default_coal_block.png^[colorize:#696969:142^(default_acacia_leaves.png^[colorize:#5E2612:152)" },
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node( "es:marble", {
description = "Marble",
tiles = { "technic_marble.png" },
--tiles = {"default_sand.png^[colorize:#CDB79E:142^(default_acacia_leaves.png^[colorize:#CDB79E:152)"},
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node( "es:marble_bricks", {
description = "Marble Bricks",
tiles = { "technic_marble_bricks.png" },
--tiles = {"default_sandstone_brick.png^[colorize:#CDB79E:182^(default_acacia_leaves.png^[colorize:#CDB79E:152)" },
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
--NOW WE ADD SOME RADIOACTIVITY FROM THE TECHNIC MOD
--20151206 DECIDED TO EVENTUALLY MOVE THIS INTO THE RADIATION HUD.
--MOVED AND TESTING NEW RADIATION HUD.
--KEEPING THIS CODE FOR POSSIBLE HUD FAILURE.
--UPDATE: Hud never worked like it should.
----------------------------------------
if not vector.length_square then
vector.length_square = function (v)
return v.x*v.x + v.y*v.y + v.z*v.z
end
end
-- radioactivity
-- Radiation resistance represents the extent to which a material
-- attenuates radiation passing through it; i.e., how good a radiation
-- shield it is. This is identified per node type. For materials that
-- exist in real life, the radiation resistance value that this system
-- uses for a node type consisting of a solid cube of that material is the
-- (approximate) number of halvings of ionising radiation that is achieved
-- by a metre of the material in real life. This is approximately
-- proportional to density, which provides a good way to estimate it.
-- Homogeneous mixtures of materials have radiation resistance computed
-- by a simple weighted mean. Note that the amount of attenuation that
-- a material achieves in-game is not required to be (and is not) the
-- same as the attenuation achieved in real life.
--
-- Radiation resistance for a node type may be specified in the node
-- definition, under the key "radiation_resistance". As an interim
-- measure, until node definitions widely include this, this code
-- knows a bunch of values for particular node types in several mods,
-- and values for groups of node types. The node definition takes
-- precedence if it specifies a value. Nodes for which no value at
-- all is known are taken to provide no radiation resistance at all;
-- this is appropriate for the majority of node types. Only node types
-- consisting of a fairly homogeneous mass of material should report
-- non-zero radiation resistance; anything with non-uniform geometry
-- or complex internal structure should show no radiation resistance.
-- Fractional resistance values are permitted; two significant figures
-- is the recommended precision.
local default_radiation_resistance_per_node = {
["default:brick"] = 13,
["default:bronzeblock"] = 45,
["default:clay"] = 15,
["default:coalblock"] = 9.6,
["default:cobble"] = 15,
["default:copperblock"] = 46,
["default:desert_cobble"] = 15,
["default:desert_sand"] = 10,
["default:desert_stone"] = 17,
["default:desert_stonebrick"] = 17,
["default:diamondblock"] = 24,
["default:dirt"] = 8.2,
["default:dirt_with_grass"] = 8.2,
["default:dry_dirt"] = 8.2,
["default:dirt_with_dry_grass"] = 8.2,
["default:dirt_with_grass_footsteps"] = 8.2,
["default:dirt_with_snow"] = 8.2,
["default:glass"] = 17,
["default:goldblock"] = 170,
["default:gravel"] = 10,
["default:ice"] = 5.6,
["default:lava_flowing"] = 8.5,
["default:lava_source"] = 17,
["default:mese"] = 21,
["default:mossycobble"] = 15,
["default:nyancat"] = 1000,
["default:nyancat_rainbow"] = 1000,
["default:obsidian"] = 18,
["default:obsidian_glass"] = 18,
["default:sand"] = 10,
["default:sandstone"] = 15,
["default:sandstonebrick"] = 15,
["default:snowblock"] = 1.7,
["default:steelblock"] = 40,
["default:stone"] = 17,
["default:stone_with_coal"] = 16,
["default:stone_with_copper"] = 20,
["default:stone_with_diamond"] = 18,
["default:stone_with_gold"] = 34,
["default:stone_with_iron"] = 20,
["default:stone_with_mese"] = 17,
["default:stonebrick"] = 17,
["default:water_flowing"] = 2.8,
["default:water_source"] = 5.6,
["farming:desert_sand_soil"] = 10,
["farming:desert_sand_soil_wet"] = 10,
["farming:soil"] = 8.2,
["farming:soil_wet"] = 8.2,
["glooptest:akalin_crystal_glass"] = 21,
["glooptest:akalinblock"] = 40,
["glooptest:alatro_crystal_glass"] = 21,
["glooptest:alatroblock"] = 40,
["glooptest:amethystblock"] = 18,
["glooptest:arol_crystal_glass"] = 21,
["glooptest:crystal_glass"] = 21,
["glooptest:emeraldblock"] = 19,
["glooptest:heavy_crystal_glass"] = 21,
["glooptest:mineral_akalin"] = 20,
["glooptest:mineral_alatro"] = 20,
["glooptest:mineral_amethyst"] = 17,
["glooptest:mineral_arol"] = 20,
["glooptest:mineral_desert_coal"] = 16,
["glooptest:mineral_desert_iron"] = 20,
["glooptest:mineral_emerald"] = 17,
["glooptest:mineral_kalite"] = 20,
["glooptest:mineral_ruby"] = 18,
["glooptest:mineral_sapphire"] = 18,
["glooptest:mineral_talinite"] = 20,
["glooptest:mineral_topaz"] = 18,
["glooptest:reinforced_crystal_glass"] = 21,
["glooptest:rubyblock"] = 27,
["glooptest:sapphireblock"] = 27,
["glooptest:talinite_crystal_glass"] = 21,
["glooptest:taliniteblock"] = 40,
["glooptest:topazblock"] = 24,
["mesecons_extrawires:mese_powered"] = 21,
["moreblocks:cactus_brick"] = 13,
["moreblocks:cactus_checker"] = 8.5,
["moreblocks:circle_stone_bricks"] = 17,
["moreblocks:clean_glass"] = 17,
["moreblocks:coal_checker"] = 9.0,
["moreblocks:coal_glass"] = 17,
["moreblocks:coal_stone"] = 17,
["moreblocks:coal_stone_bricks"] = 17,
["moreblocks:glow_glass"] = 17,
["moreblocks:grey_bricks"] = 15,
["moreblocks:iron_checker"] = 11,
["moreblocks:iron_glass"] = 17,
["moreblocks:iron_stone"] = 17,
["moreblocks:iron_stone_bricks"] = 17,
["moreblocks:plankstone"] = 9.3,
["moreblocks:split_stone_tile"] = 15,
["moreblocks:split_stone_tile_alt"] = 15,
["moreblocks:stone_tile"] = 15,
["moreblocks:super_glow_glass"] = 17,
["moreblocks:tar"] = 7.0,
["moreblocks:wood_tile"] = 1.7,
["moreblocks:wood_tile_center"] = 1.7,
["moreblocks:wood_tile_down"] = 1.7,
["moreblocks:wood_tile_flipped"] = 1.7,
["moreblocks:wood_tile_full"] = 1.7,
["moreblocks:wood_tile_left"] = 1.7,
["moreblocks:wood_tile_right"] = 1.7,
["moreblocks:wood_tile_up"] = 1.7,
["moreores:mineral_mithril"] = 18,
["moreores:mineral_silver"] = 21,
["moreores:mineral_tin"] = 19,
["moreores:mithril_block"] = 26,
["moreores:silver_block"] = 53,
["moreores:tin_block"] = 37,
["snow:snow_brick"] = 2.8,
["technic:brass_block"] = 43,
["technic:carbon_steel_block"] = 40,
["technic:cast_iron_block"] = 40,
["technic:chernobylite_block"] = 40,
["technic:chromium_block"] = 37,
["technic:corium_flowing"] = 40,
["technic:corium_source"] = 80,
["technic:granite"] = 18,
["technic:marble"] = 18,
["technic:marble_bricks"] = 18,
["technic:mineral_chromium"] = 19,
["technic:mineral_uranium"] = 71,
["technic:mineral_zinc"] = 19,
["technic:stainless_steel_block"] = 40,
["technic:uranium_block"] = 500,
["technic:zinc_block"] = 36,
["tnt:tnt"] = 11,
["tnt:tnt_burning"] = 11,
}
local default_radiation_resistance_per_group = {
concrete = 16,
tree = 3.4,
wood = 1.7,
}
local cache_radiation_resistance = {}
local function node_radiation_resistance(nodename)
local eff = cache_radiation_resistance[nodename]
if eff then return eff end
local def = minetest.registered_nodes[nodename] or {groups={}}
eff = def.radiation_resistance or default_radiation_resistance_per_node[nodename]
if not eff then
for g, v in pairs(def.groups) do
if v > 0 and default_radiation_resistance_per_group[g] then
eff = default_radiation_resistance_per_group[g]
break
end
end
end
if not eff then eff = 0 end
cache_radiation_resistance[nodename] = eff
return eff
end
-- Radioactive nodes cause damage to nearby players. The damage
-- effect depends on the intrinsic strength of the radiation source,
-- the distance between the source and the player, and the shielding
-- effect of the intervening material. These determine a rate of damage;
-- total damage caused is the integral of this over time.
--
-- In the absence of effective shielding, for a specific source the
-- damage rate varies realistically in inverse proportion to the square
-- of the distance. (Distance is measured to the player's abdomen,
-- not to the nominal player position which corresponds to the foot.)
-- However, if the player is inside a non-walkable (liquid or gaseous)
-- radioactive node, the nominal distance could go to zero, yielding
-- infinite damage. In that case, the player's body is displacing the
-- radioactive material, so the effective distance should remain non-zero.
-- We therefore apply a lower distance bound of sqrt(0.75) m, which is
-- the maximum distance one can get from the node centre within the node.
--
-- A radioactive node is identified by being in the "radioactive" group,
-- and the group value signifies the strength of the radiation source.
-- The group value is the distance in metres from a node at which an
-- unshielded player will be damaged by 0.25 HP/s. Or, equivalently, it
-- is half the square root of the damage rate in HP/s that an unshielded
-- player 1 m away will take.
--
-- Shielding is assessed by sampling every 0.25 m along the path
-- from the source to the player, ignoring the source node itself.
-- The summed radiation resistance values from the sampled nodes yield
-- a measure of the total amount of radiation resistance on the path.
-- As in reality, shielding causes exponential attenuation of radiation.
-- However, the effect is scaled down relative to real life: each
-- metre-point of shielding, corresponding to a real-life halving of
-- radiation, reduces radiation by 0.01 nepers (a factor of about 1.01).
-- This scales down the difference between shielded and unshielded safe
-- distances, avoiding the latter becoming impractically large.
--
-- Damage is processed at rates down to 0.25 HP/s, which in the absence of
-- shielding is attained at the distance specified by the "radioactive"
-- group value. Computed damage rates below 0.25 HP/s result in no
-- damage at all to the player. This gives the player an opportunity
-- to be safe, and limits the range at which source/player interactions
-- need to be considered.
local assumed_abdomen_offset = vector.new(0, 1, 0)
local assumed_abdomen_offset_length = vector.length(assumed_abdomen_offset)
minetest.register_abm({
nodenames = {"group:radioactive"},
interval = 1,
chance = 1,
action = function (pos, node)
local strength = minetest.registered_nodes[node.name].groups.radioactive
for _, o in ipairs(minetest.get_objects_inside_radius(pos, strength + assumed_abdomen_offset_length)) do
if o:is_player() then
local rel = vector.subtract(vector.add(o:getpos(), assumed_abdomen_offset), pos)
local dist_sq = vector.length_square(rel)
local dist = math.sqrt(dist_sq)
local dirstep = dist == 0 and vector.new(0,0,0) or vector.divide(rel, dist*4)
local intpos = pos
local resistance = 0
for intdist = 0.25, dist, 0.25 do
intpos = vector.add(intpos, dirstep)
local intnodepos = vector.round(intpos)
if not vector.equals(intnodepos, pos) then
resistance = resistance + node_radiation_resistance(minetest.get_node(intnodepos).name)
end
end
local dmg_rate = 0.25 * strength*strength * math.exp(-0.0025*resistance) / math.max(0.75, dist_sq)
if dmg_rate >= 0.25 then
local dmg_int = math.floor(dmg_rate)
if math.random() < dmg_rate-dmg_int then
dmg_int = dmg_int + 1
end
if dmg_int > 0 then
o:set_hp(math.max(o:get_hp() - dmg_int, 0))
end
end
end
end
end,
})
--ES Node Definition
minetest.register_node("es:stone_with_emerald", {
description = "Emerald Ore",
tiles = {"default_stone.png^(default_mineral_mese.png^[colorize:#008000:134)"},
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^(default_mineral_mese.png^[colorize:#FF0000:144)"},
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^(default_mineral_mese.png^[colorize:#0000FF:134)"},
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)},
drop = "es:infinium_goo",
sounds = default.node_sound_stone_defaults(),
})
--Emerald located at -1000
minetest.register_node("es:emeraldblock", {
description = "Emerald Block",
tiles = {"default_diamond_block.png^[colorize:#008000:134"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("es:emerald_crystal", {
description = "Emerald Crystal",
inventory_image = "default_diamond.png^[colorize:#008000:134",
})
--Ruby located at -3000
minetest.register_node("es:rubyblock", {
description = "Ruby Block",
tiles = {"default_diamond_block.png^[colorize:#FF0000:194"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("es:ruby_crystal", {
description = "Ruby Crystal",
inventory_image = "default_diamond.png^[colorize:#FF0000:144",
})
--Aikerum located at -4000
minetest.register_node("es:aikerumblock", {
description = "Aikerum Block",
tiles = {"default_diamond_block.png^[colorize:#0000FF:134"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("es:aikerum_crystal", {
description = "Aikerum Crystal",
inventory_image = "default_diamond.png^[colorize:#0000FF:134",
})
--Infinium located at -4300
minetest.register_node("es:infiniumblock", {
description = "infinium Block",
tiles = {"infinium_block.png"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("es:infinium_goo", {
description = "Infinium Goo--Need to craft with vessel to contain.",
inventory_image = "infinium.png",
})
minetest.register_craftitem("es:infinium_ingot", {
description = "Infinium Ingot--TBD CRAFTING Special Armour and Lab Equipment",
--inventory_image = "infinium_ingot.png",
inventory_image = "default_steel_ingot.png^[colorize:#B0171F:215",
})
minetest.register_craftitem("es:infinium_container", {
description = "Infinium Container--Cook to get Infinium Ingot",
inventory_image = "infinium_container.png",
})
--BONEBLOCK
minetest.register_node("es:boneblock", {
description = "Bone Blox",
tiles = {
"bones_top.png",
"bones_bottom.png",
"bones_side.png",
"bones_side.png",
"bones_rear.png",
"bones_front.png"
},
paramtype2 = "facedir",
groups = {dig_immediate=2},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_gravel_footstep", gain=0.5},
dug = {name="default_gravel_footstep", gain=1.0},
}),
})
--INPERVIOUS NODES CANNOT BREAK- Great for prison walls.
minetest.register_node("es:hgglass", {
description = "High Density Glass",
drawtype = "glasslike_framed_optional",
tiles = {"default_glass.png", "default_glass_detail.png"},
inventory_image = minetest.inventorycube("default_glass.png"),
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_node("es:steelblock", {
description = "High Density Steel Block",
tiles = {"default_steel_block.png"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:stoneblock", {
description = "High Density Stone Block",
tiles = {"default_stone.png"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:sandstonebrick", {
description = "High Density Sandstone Brick",
tiles = {"default_sandstone_brick.png"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:stonebrick", {
description = "High Density Stone Brick",
tiles = {"default_stone_brick.png"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:junglewood", {
description = "High Density Junglewood Planks",
tiles = {"default_junglewood.png"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_wood_defaults(),
})
--A simple way to store your cookable Mese, and it gives off light!
minetest.register_node("es:messymese", {
description = "Messy MESE Block",
tiles = {"default_clay.png^bubble.png^mese_cook_mese_crystal.png"},
light_source = 14,
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:what", {
description = "The What Block - Dig for random gift",
drawtype = "glasslike_framed_optional^bubble.png",
tiles = {"default_glass.png^bubble.png", "default_glass_detail.png^bubble.png"},
inventory_image = minetest.inventorycube("default_glass.png"),
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
groups = {crumbly=3,},
drop = {
max_items = 2,
items = {
{items = {'es:what'}, rarity = 80},
{items = {'es:sword_aikerum'}, rarity = 50},
{items = {'es:sword_ruby'}, rarity = 40},
{items = {'es:sword_emerald'}, rarity = 30},
{items = {'es:pick_aikerum'}, rarity = 50},
{items = {'es:pick_ruby'}, rarity = 40},
{items = {'es:pick_emerald'}, rarity = 30},
{items = {'farming:bread 20'}, rarity = 3},
{items = {'default:cobble 10'}, rarity = 3},
{items = {'default:gold_lump 10'}, rarity = 10},
{items = {'default:iron_lump 10'}, rarity = 5},
{items = {'default:apple 10'}, rarity = 5},
{items = {'default:coal_lump 10'}, rarity = 1},
{items = {'es:depleted_uranium_ingot 3'}}
}
},
sounds = default.node_sound_glass_defaults(),
})
--Default addons as they should be. I changed ore generation to keep unique for compatibility.
--Dry dirt added
minetest.register_node("es:dry_dirt", {
description = "Some dry dirt",
--tiles = {"default_dry_dirt.png"},
tiles = {"default_dirt.png^[colorize:#B8860B:95"},
groups = {crumbly = 3},
drop = 'es:dry_dirt',
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25},
}),
})
minetest.register_node("es:stone_with_mese", {
description = "Cookable Mese Ore",
tiles = {"default_stone.png^(default_mineral_mese.png^[colorize:#F0E68C:195)"},
paramtype = "light",
groups = {cracky = 1},
drop = "es:mesecook_crystal",
sounds = default.node_sound_stone_defaults(),
light_source = 1,
})
minetest.register_node("es:desert_stone_with_gold", {
description = "Gold Ore",
tiles = {"default_desert_stone.png^default_mineral_gold.png"},
groups = {cracky = 2},
drop = "default:gold_lump",
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:desert_stone_with_iron", {
description = "Iron Ore",
tiles = {"default_desert_stone.png^default_mineral_iron.png"},
groups = {cracky = 2},
drop = 'default:iron_lump',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:desert_stone_with_coal", {
description = "Coal Ore",
tiles = {"default_desert_stone.png^default_mineral_coal.png"},
groups = {cracky = 3},
drop = 'default:coal_lump',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("es:depleted_uranium", {
description = "Depleted Uranium Ore RADIOACTIVE",
tiles = {"default_stone.png^(default_mineral_gold.png^[colorize:#00FF00:195)"},
groups = {cracky = 3, radioactive = (state == "source" and 3 or 2)},
drop = 'es:depleted_uranium_lump',
sounds = default.node_sound_stone_defaults(),
light_source = 1,
})
minetest.register_craftitem("es:depleted_uranium_lump", {
description = "Depleted Uranium use for long term fuel, first cook the lump into an ingot, then use ingot for fuel.",
inventory_image = "default_mineral_mese.png^[colorize:#7CFC00:195",
})

287
nodes.lua
View File

@ -32,7 +32,6 @@ hurt_cactus();
minetest.register_node( "es:granite", {
description = "Granite",
tiles = { "technic_granite.png" },
--tiles = { "default_coal_block.png^[colorize:#696969:142^(default_acacia_leaves.png^[colorize:#5E2612:152)" },
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
@ -41,7 +40,6 @@ minetest.register_node( "es:granite", {
minetest.register_node( "es:marble", {
description = "Marble",
tiles = { "technic_marble.png" },
--tiles = {"default_sand.png^[colorize:#CDB79E:142^(default_acacia_leaves.png^[colorize:#CDB79E:152)"},
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
@ -50,7 +48,6 @@ minetest.register_node( "es:marble", {
minetest.register_node( "es:marble_bricks", {
description = "Marble Bricks",
tiles = { "technic_marble_bricks.png" },
--tiles = {"default_sandstone_brick.png^[colorize:#CDB79E:182^(default_acacia_leaves.png^[colorize:#CDB79E:152)" },
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
@ -341,7 +338,7 @@ minetest.register_abm({
--ES Node Definition
minetest.register_node("es:stone_with_emerald", {
description = "Emerald Ore",
tiles = {"default_stone.png^(default_mineral_mese.png^[colorize:#008000:134)"},
tiles = {"default_stone.png^emerald_ore.png"},
is_ground_content = true,
groups = {cracky=1},
drop = "es:emerald_crystal",
@ -350,7 +347,7 @@ minetest.register_node("es:stone_with_emerald", {
minetest.register_node("es:stone_with_ruby", {
description = "Ruby Ore",
tiles = {"default_stone.png^(default_mineral_mese.png^[colorize:#FF0000:144)"},
tiles = {"default_stone.png^ruby_ore.png"},
is_ground_content = true,
groups = {cracky=1},
drop = "es:ruby_crystal",
@ -359,7 +356,7 @@ minetest.register_node("es:stone_with_ruby", {
minetest.register_node("es:stone_with_aikerum", {
description = "Aikerum Ore",
tiles = {"default_stone.png^(default_mineral_mese.png^[colorize:#0000FF:134)"},
tiles = {"default_stone.png^aikerum_ore.png"},
is_ground_content = true,
groups = {cracky=1,level = 2},
drop = "es:aikerum_crystal",
@ -375,10 +372,19 @@ minetest.register_node("es:stone_with_infinium", {
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, radioactive = (state == "source" and 2 or 2)},
drop = "es:purpellium_lump",
sounds = default.node_sound_stone_defaults(),
})
--Emerald located at -1000
minetest.register_node("es:emeraldblock", {
description = "Emerald Block",
tiles = {"default_diamond_block.png^[colorize:#008000:134"},
tiles = {"emerald_block.png"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
@ -386,13 +392,13 @@ minetest.register_node("es:emeraldblock", {
minetest.register_craftitem("es:emerald_crystal", {
description = "Emerald Crystal",
inventory_image = "default_diamond.png^[colorize:#008000:134",
inventory_image = "emerald.png",
})
--Ruby located at -3000
minetest.register_node("es:rubyblock", {
description = "Ruby Block",
tiles = {"default_diamond_block.png^[colorize:#FF0000:194"},
tiles = {"ruby_block.png"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
@ -400,13 +406,13 @@ minetest.register_node("es:rubyblock", {
minetest.register_craftitem("es:ruby_crystal", {
description = "Ruby Crystal",
inventory_image = "default_diamond.png^[colorize:#FF0000:144",
inventory_image = "ruby.png",
})
--Aikerum located at -4000
minetest.register_node("es:aikerumblock", {
description = "Aikerum Block",
tiles = {"default_diamond_block.png^[colorize:#0000FF:134"},
tiles = {"aikerum_block.png"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
@ -414,7 +420,7 @@ minetest.register_node("es:aikerumblock", {
minetest.register_craftitem("es:aikerum_crystal", {
description = "Aikerum Crystal",
inventory_image = "default_diamond.png^[colorize:#0000FF:134",
inventory_image = "aikerum.png",
})
@ -435,7 +441,7 @@ minetest.register_craftitem("es:infinium_goo", {
minetest.register_craftitem("es:infinium_ingot", {
description = "Infinium Ingot--TBD CRAFTING Special Armour and Lab Equipment",
--inventory_image = "infinium_ingot.png",
inventory_image = "default_steel_ingot.png^[colorize:#B0171F:215",
inventory_image = "infinium_ingot.png",
})
minetest.register_craftitem("es:infinium_container", {
@ -443,6 +449,26 @@ minetest.register_craftitem("es:infinium_container", {
inventory_image = "infinium_container.png",
})
--Purpellium located at -4000
minetest.register_node("es:purpelliumblock", {
description = "Purpellium Block",
tiles = {"purpellium_block.png"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("es:purpellium_lump", {
description = "Purpellium Lump",
inventory_image = "purpellium_lump.png",
})
minetest.register_craftitem("es:purpellium_ingot", {
description = "Purpellium Ingot",
inventory_image = "purpellium_ingot.png",
})
--BONEBLOCK
minetest.register_node("es:boneblock", {
@ -495,7 +521,7 @@ minetest.register_node("es:stoneblock", {
minetest.register_node("es:sandstonebrick", {
description = "High Density Sandstone Brick",
tiles = {"default_sandstone_brick.png"},
tiles = {"default_stone_brick.png^[colorize:#CCCC99:150"},
is_ground_content = false,
groups = {immortal=1,cracky=0,not_in_creative_inventory = 1},
sounds = default.node_sound_stone_defaults(),
@ -567,8 +593,8 @@ minetest.register_node("es:what", {
--Dry dirt added
minetest.register_node("es:dry_dirt", {
description = "Some dry dirt",
--tiles = {"default_dry_dirt.png"},
tiles = {"default_dirt.png^[colorize:#B8860B:95"},
tiles = {"default_dry_dirt.png"},
--tiles = {"dry_dirt.png"},
groups = {crumbly = 3},
drop = 'es:dry_dirt',
sounds = default.node_sound_dirt_defaults({
@ -578,7 +604,7 @@ minetest.register_node("es:dry_dirt", {
minetest.register_node("es:stone_with_mese", {
description = "Cookable Mese Ore",
tiles = {"default_stone.png^(default_mineral_mese.png^[colorize:#F0E68C:195)"},
tiles = {"default_stone.png^default_mineral_mese.png"},
paramtype = "light",
groups = {cracky = 1},
drop = "es:mesecook_crystal",
@ -612,14 +638,235 @@ minetest.register_node("es:desert_stone_with_coal", {
minetest.register_node("es:depleted_uranium", {
description = "Depleted Uranium Ore RADIOACTIVE",
tiles = {"default_stone.png^(default_mineral_gold.png^[colorize:#00FF00:195)"},
tiles = {"default_stone.png^uranium_ore.png"},
groups = {cracky = 3, radioactive = (state == "source" and 3 or 2)},
drop = 'es:depleted_uranium_lump',
sounds = default.node_sound_stone_defaults(),
light_source = 1,
light_source = 12,
})
minetest.register_craftitem("es:depleted_uranium_lump", {
description = "Depleted Uranium use for long term fuel, first cook the lump into an ingot, then use ingot for fuel.",
inventory_image = "default_mineral_mese.png^[colorize:#7CFC00:195",
inventory_image = "uranium_lump.png",
})
--ES CUSTOM LIQUIDS:
minetest.register_node("es:toxic_water_source", {
description = "Toxic_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,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "source",
liquid_alternative_flowing = "es:toxic_water_flowing",
liquid_alternative_source = "es:toxic_water_source",
liquid_viscosity =3,
damage_per_second = 3*2,
post_effect_color = {a = 255, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1, radioactive = (state == "source" and 2 or 2),},
})
--NOTES:
-- radioactive = (state == "source" and 32 or 16),
--THIS IS DEFAULT SETTING FROM TECHNIC
minetest.register_node("es:toxic_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 = "es:toxic_water_flowing",
liquid_alternative_source = "es:toxic_water_source",
liquid_viscosity = 2,
damage_per_second = 2*2,
post_effect_color = {a = 255, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1,
not_in_creative_inventory = 1, radioactive = (state == "source" and 2 or 2),},
})
--FOR REF
-- Quicksand (old style, sinking inside shows black instead of yellow effect,
-- works ok with noclip enabled though)
minetest.register_node("es:mud", {
description = "Mud",
tiles = {"es_mud.png"},
--drop = "es:mud",
liquid_viscosity = 19,
liquidtype = "source",
liquid_alternative_flowing = "es:mud",
liquid_alternative_source = "es:mud",
liquid_renewable = false,
liquid_range = 0,
drowning = 1,
walkable = false,
climbable = false,
post_effect_color = { r=230, g=210, b=160, a=245 },
groups = {crumbly=3, falling_node=1, sand=1, liquid=3, disable_jump=1},
sounds = default.node_sound_sand_defaults(),
})
--this code is broken and makes the server not allow kindle players
--[[
minetest.register_node("es:mud_source", {
description = "Mud Source",
inventory_image = minetest.inventorycube("es_mud.png"),
drawtype = "liquid",
tiles = {"es_mud.png"},
tiles = {
{
name = "default_mud_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 = "default_mud_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
backface_culling = false,
},
},
alpha = 255,
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
--damage_per_second = 3*2,
liquidtype = "source",
liquid_alternative_flowing = "es:mud_flowing",
liquid_alternative_source = "es:mud_source",
liquid_viscosity = 18,
post_effect_color = {a = 255, r = 43, g = 23, b = 9},
groups = {water = 3, liquid = 3, puts_out_fire = 1, },
})
minetest.register_node("es:mud_flowing", {
description = "Flowing mud",
inventory_image = minetest.inventorycube("es_mud.png"),
drawtype = "liquid",--change to liquid for a solid look
tiles = {"es_mud.png"},
special_tiles = {
{
name = "es_mud_flowing_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
{
name = "es_mud_flowing_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
},
alpha = 250,
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
--damage_per_second = 3*2,
liquidtype = "flowing",
liquid_alternative_flowing = "es:mud_flowing",
liquid_alternative_source = "es:mud_source",
liquid_viscosity = 19,
post_effect_color = {a = 255, r = 43, g = 23, b = 9},
groups = {water = 3, liquid = 3, puts_out_fire = 1,
not_in_creative_inventory = 1, },
})
]]

View File

@ -40,6 +40,31 @@ minetest.register_ore({
noise_params = {offset=0, scale=15, spread={x=130, y=130, z=130}, seed=24, octaves=3, persist=0.70}
})
--ES LIQUIDS
minetest.register_ore({
ore_type = "scatter",
ore = "es:toxic_water_source",
wherein = {"default:dry_dirt", "default:dirt_with_dry_grass","default:dirt", "default:stone"},
clust_scarcity = 24*24*24,
clust_num_ores = 4,
clust_size = 4,
y_min = -9000,
y_max = 50,
})
minetest.register_ore({
ore_type = "scatter",
ore = "es:mud",
wherein = {"default:dry_dirt", "default:dirt_with_dry_grass", "default:dirt"},
clust_scarcity = 11*5*10,
clust_num_ores = 4,
clust_size = 12,
y_min = -31,
y_max = 75,
})
--ES Node Registration and location
@ -131,7 +156,19 @@ minetest.register_ore({
height_min = -31000,
height_max = -190,
})
minetest.register_ore({
ore_type = "scatter",
ore = "es:stone_with_purpellium",
wherein = "default:stone",
clust_scarcity = 16*18*16,
clust_num_ores = 5,
clust_size = 5,
height_min = -31000,
height_max = -4090,
})
minetest.register_ore({
ore_type = "scatter",
ore = "es:stone_with_mese",
@ -150,8 +187,8 @@ minetest.register_ore({
clust_scarcity = 54 * 14 * 54,
clust_num_ores = 3,
clust_size = 8,
y_min = -310,
y_max = -256,
y_min = -14210,
y_max = -156,
})
minetest.register_ore({
@ -161,8 +198,8 @@ minetest.register_ore({
clust_scarcity = 14 * 14 * 14,
clust_num_ores = 6,
clust_size = 8,
y_min = -500,
y_max = -1256,
y_min = -15000,
y_max = -256,
})
minetest.register_ore({
@ -172,8 +209,8 @@ minetest.register_ore({
clust_scarcity = 15*15*10,
clust_num_ores = 2,
clust_size = 2,
y_min = 31,
y_max = -1140,
y_min = -31000,
y_max = 1140,
})
minetest.register_ore({
@ -183,7 +220,7 @@ minetest.register_ore({
clust_scarcity = 15*15*10,
clust_num_ores = 2,
clust_size = 2,
y_min = 21,
y_min = -31000,
y_max = 1140,
})
@ -194,12 +231,12 @@ minetest.register_ore({
clust_scarcity = 15*15*10,
clust_num_ores = 2,
clust_size = 2,
y_min = 2,
y_min = -20000,
y_max = 1140,
})
minetest.register_ore({
ore_type = "scatter",
ore = "es:desert_stone_with_coal",

View File

@ -20,13 +20,13 @@ es = {}
--Modified by maikerumine
-- Time to shut down server.
-- Default is twice a day: at 06:05 and 18:05
local H = 23
local X = 05
local Y = 11
local Z = 17
local H = 00
local X = 06
local Y = 12
local Z = 18
local M = 58
local N = 59
local M = 01
local N = 02
-- Day to shut down server.
-- Default is daily shutdown

View File

@ -47,21 +47,21 @@ stairs.register_stair_and_slab("marble bricks", "es:marble_bricks",
--Extreme Survival Stairs
stairs.register_stair_and_slab("Ruby", "es:rubyblock",
{cracky = 1},
{"default_diamond_block.png^[colorize:#FF0000:200"},
{"ruby_block.png"},
"Ruby Block Stair",
"Ruby Block Slab",
default.node_sound_stone_defaults())
stairs.register_stair_and_slab("Emerald", "es:emeraldblock",
{cracky = 1},
{"default_diamond_block.png^[colorize:#7CFC00:195"},
{"emerald_block.png"},
"Emerald Block Stair",
"Emerald Block Slab",
default.node_sound_stone_defaults())
stairs.register_stair_and_slab("Aikerum", "es:aikerumblock",
{cracky = 1},
{"default_diamond_block.png^[colorize:#0000CD:195"},
{"aikerum_block.png"},
"Aikerum Block Stair",
"Aikerum Block Slab",
default.node_sound_stone_defaults())
@ -72,8 +72,16 @@ stairs.register_stair_and_slab("Infinium", "es:infiniumblock",
"Infinium Block Stair",
"Infinium Block Slab",
default.node_sound_stone_defaults())
stairs.register_stair_and_slab("Dirt", "default:dirt",
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,},
{"default_dirt.png"},
"Dirt Block Stair",
"Dirt Block Slab",

18
thaw.lua Normal file
View File

@ -0,0 +1,18 @@
-- melt snow cover and ice around light sources
minetest.register_abm({
nodenames = {"default:snow", "default:ice"},
interval = 3,
chance = 10,
action = function(pos, node, active_object_count, active_object_count_wider)
if minetest.get_node_light(pos, 0) >= 5 then
if node.name == "default:snow" then
minetest.remove_node(pos)
if minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name == "default:dirt_with_snow" then
minetest.set_node({x=pos.x, y=pos.y-1, z=pos.z}, {name="default:dirt_with_grass"})
end
elseif node.name == "default:ice" then
minetest.set_node(pos, {name="default:water_source"})
end
end
end,
})

156
tools.lua
View File

@ -13,24 +13,9 @@
--(c) Copyright (2014-2015) maikerumine; CC-BY-SA 3.0
--es_tool_emeraldsword
--es_tool_rubysword
--es_tool_aikerumsword
--es_tool_emeraldpick
--es_tool_rubypick
--es_tool_aikerumpick
--SWORDS
minetest.register_tool("es:sword_emerald", {
description = "Extreme Survival Emerald Sword",
--inventory_image = "default_tool_diamondsword.png^[colorize:#008000:177",
inventory_image = "es_tool_emeraldsword.png",
tool_capabilities = {
full_punch_interval = 0.5,
@ -44,7 +29,6 @@ minetest.register_tool("es:sword_emerald", {
minetest.register_tool("es:sword_ruby", {
description = "Extreme Survival Ruby Sword",
--inventory_image = "default_tool_diamondsword.png^[colorize:#FF0000:177",
inventory_image = "es_tool_rubysword.png",
tool_capabilities = {
full_punch_interval = 0.4,
@ -58,7 +42,6 @@ minetest.register_tool("es:sword_ruby", {
minetest.register_tool("es:sword_aikerum", {
description = "Extreme Survival Aikerum Sword",
--inventory_image = "default_tool_diamondsword.png^[colorize:#0000CD:177",
inventory_image = "es_tool_aikerumsword.png",
tool_capabilities = {
full_punch_interval = 0.3,
@ -74,7 +57,7 @@ minetest.register_tool("es:sword_aikerum", {
--PICKS
minetest.register_tool("es:pick_emerald", {
description = "Extreme Survival Emerald Pickaxe",
inventory_image = "default_tool_diamondpick.png^[colorize:#008000:177",
inventory_image = "es_tool_emeraldpick.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=3,
@ -87,7 +70,7 @@ minetest.register_tool("es:pick_emerald", {
minetest.register_tool("es:pick_ruby", {
description = "Extreme Survival Ruby Pickaxe",
inventory_image = "default_tool_diamondpick.png^[colorize:#FF0000:177",
inventory_image = "es_tool_rubypick.png",
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level=3,
@ -100,7 +83,7 @@ minetest.register_tool("es:pick_ruby", {
minetest.register_tool("es:pick_aikerum", {
description = "Extreme Survival Aikerum Pickaxe",
inventory_image = "default_tool_diamondpick.png^[colorize:#0000FF:177",
inventory_image = "es_tool_aikerumpick.png",
tool_capabilities = {
full_punch_interval = 0.25,
max_drop_level=4,
@ -115,7 +98,7 @@ minetest.register_tool("es:pick_aikerum", {
--AXES
minetest.register_tool("es:axe_emerald", {
description = "Extreme Survival Emerald Axe",
inventory_image = "default_tool_diamondaxe.png^[colorize:#008000:177",
inventory_image = "es_tool_emeraldaxe.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=2,
@ -127,7 +110,7 @@ minetest.register_tool("es:axe_emerald", {
})
minetest.register_tool("es:axe_ruby", {
description = "Extreme Survival Ruby Axe",
inventory_image = "default_tool_diamondaxe.png^[colorize:#FF0000:177",
inventory_image = "es_tool_rubyaxe.png",
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level=3,
@ -139,7 +122,7 @@ minetest.register_tool("es:axe_ruby", {
})
minetest.register_tool("es:axe_aikerum", {
description = "Extreme Survival Aikerum Axe",
inventory_image = "default_tool_diamondaxe.png^[colorize:#0000FF:177",
inventory_image = "es_tool_aikerumaxe.png",
tool_capabilities = {
full_punch_interval = 0.25,
max_drop_level=4,
@ -149,13 +132,13 @@ minetest.register_tool("es:axe_aikerum", {
damage_groups = {fleshy=24},
},
})
--SHOVELS
minetest.register_tool("es:shovel_emerald", {
description = "Extreme Survival Emerald Shovel",
inventory_image = "default_tool_diamondaxe.png^[colorize:#008000:177",
--wield_image = "es_tool_emeraldshovel.png^[transformR90",
inventory_image = "es_tool_emeraldshovel.png",
wield_image = "es_tool_emeraldshovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=2,
@ -167,8 +150,8 @@ minetest.register_tool("es:shovel_emerald", {
})
minetest.register_tool("es:shovel_ruby", {
description = "Extreme Survival Ruby Shovel",
inventory_image = "default_tool_diamondshovel.png^[colorize:#FF0000:177",
--wield_image = "es_tool_rubyshovel.png^[transformR90",
inventory_image = "es_tool_rubyshovel.png",
wield_image = "es_tool_rubyshovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level=3,
@ -180,8 +163,8 @@ minetest.register_tool("es:shovel_ruby", {
})
minetest.register_tool("es:shovel_aikerum", {
description = "Extreme Survival Aikerum Shovel",
inventory_image = "default_tool_diamondshovel.png^[colorize:#0000FF:177",
--wield_image = "es_tool_aikerumshovel.png^[transformR90",
inventory_image = "es_tool_aikerumshovel.png",
wield_image = "es_tool_aikerumshovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 0.25,
max_drop_level=4,
@ -191,3 +174,114 @@ minetest.register_tool("es:shovel_aikerum", {
damage_groups = {fleshy=24},
},
})
--[[
--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]]