mg v7 Here We Come!
Before Width: | Height: | Size: 169 B After Width: | Height: | Size: 169 B |
Before Width: | Height: | Size: 174 B After Width: | Height: | Size: 174 B |
Before Width: | Height: | Size: 156 B After Width: | Height: | Size: 156 B |
Before Width: | Height: | Size: 554 B After Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 536 B After Width: | Height: | Size: 536 B |
Before Width: | Height: | Size: 527 B After Width: | Height: | Size: 527 B |
Before Width: | Height: | Size: 164 B After Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 139 B After Width: | Height: | Size: 139 B |
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 201 B |
Before Width: | Height: | Size: 160 B After Width: | Height: | Size: 160 B |
Before Width: | Height: | Size: 155 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 601 B |
Before Width: | Height: | Size: 205 B After Width: | Height: | Size: 205 B |
Before Width: | Height: | Size: 514 B After Width: | Height: | Size: 514 B |
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 173 B |
Before Width: | Height: | Size: 160 B After Width: | Height: | Size: 160 B |
Before Width: | Height: | Size: 159 B After Width: | Height: | Size: 159 B |
Before Width: | Height: | Size: 490 B After Width: | Height: | Size: 490 B |
|
@ -17,6 +17,5 @@ dofile(minetest.get_modpath("default").."/nodes.lua")
|
|||
dofile(minetest.get_modpath("default").."/tools.lua")
|
||||
dofile(minetest.get_modpath("default").."/craftitems.lua")
|
||||
dofile(minetest.get_modpath("default").."/crafting.lua")
|
||||
-- dofile(minetest.get_modpath("default").."/mapgen.lua")
|
||||
dofile(minetest.get_modpath("default").."/player.lua")
|
||||
dofile(minetest.get_modpath("default").."/trees.lua")
|
||||
|
|
1
mods/mapgen/depends.txt
Normal file
|
@ -0,0 +1 @@
|
|||
default
|
451
mods/mapgen/init.lua
Normal file
|
@ -0,0 +1,451 @@
|
|||
dofile(minetest.get_modpath("mapgen").."/mapgen.lua")
|
||||
|
||||
minetest.register_alias("mapgen_water_source", "mapgen:vacuum")
|
||||
minetest.register_alias("mapgen_lava_source", "default:lava_source")
|
||||
minetest.register_alias("mapgen_stone", "default:stone")
|
||||
minetest.register_alias("mapgen_dirt", "default:dirt")
|
||||
minetest.register_alias("mapgen_dirt_with_grass", "default:dirt_with_grass")
|
||||
|
||||
minetest.register_node("mapgen:stone", {
|
||||
description = "Moon Stone",
|
||||
tiles = {"mapgen_stone.png"},
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:ironore", {
|
||||
description = "MR Iron Ore",
|
||||
tiles = {"mapgen_stone.png^default_mineral_iron.png"},
|
||||
groups = {cracky=2},
|
||||
drop = "default:iron_lump",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:copperore", {
|
||||
description = "MR Copper Ore",
|
||||
tiles = {"mapgen_stone.png^default_mineral_copper.png"},
|
||||
groups = {cracky=2},
|
||||
drop = "default:copper_lump",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:goldore", {
|
||||
description = "MR Gold Ore",
|
||||
tiles = {"mapgen_stone.png^default_mineral_gold.png"},
|
||||
groups = {cracky=2},
|
||||
drop = "default:gold_lump",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:diamondore", {
|
||||
description = "MR Diamond Ore",
|
||||
tiles = {"mapgen_stone.png^default_mineral_diamond.png"},
|
||||
groups = {cracky=1},
|
||||
drop = "default:diamond",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:dust", {
|
||||
description = "Moon Dust",
|
||||
tiles = {"mapgen_dust.png"},
|
||||
groups = {crumbly=3, falling_node=1},
|
||||
sounds = default.node_sound_sand_defaults({
|
||||
footstep = {name="default_sand_footstep", gain=0.1},
|
||||
}),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:dustprint1", {
|
||||
description = "Moon Dust Footprint1",
|
||||
tiles = {"mapgen_dustprint1.png", "mapgen_dust.png"},
|
||||
groups = {crumbly=3, falling_node=1},
|
||||
drop = "mapgen:dust",
|
||||
sounds = default.node_sound_sand_defaults({
|
||||
footstep = {name="default_sand_footstep", gain=0.1},
|
||||
}),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:dustprint2", {
|
||||
description = "Moon Dust Footprint2",
|
||||
tiles = {"mapgen_dustprint2.png", "mapgen_dust.png"},
|
||||
groups = {crumbly=3, falling_node=1},
|
||||
drop = "mapgen:dust",
|
||||
sounds = default.node_sound_sand_defaults({
|
||||
footstep = {name="default_sand_footstep", gain=0.1},
|
||||
}),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:vacuum", {
|
||||
description = "Vacuum",
|
||||
drawtype = "airlike",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
drowning = 1,
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:air", {
|
||||
description = "Life Support Air",
|
||||
drawtype = "glasslike",
|
||||
tiles = {"mapgen_air.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:airgen", {
|
||||
description = "Air Generator",
|
||||
tiles = {"mapgen_airgen.png"},
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_construct = function(pos)
|
||||
local x = pos.x
|
||||
local y = pos.y
|
||||
local z = pos.z
|
||||
for i = -1,1 do
|
||||
for j = -1,1 do
|
||||
for k = -1,1 do
|
||||
if not (i == 0 and j == 0 and k == 0) then
|
||||
local nodename = minetest.get_node({x=x+i,y=y+j,z=z+k}).name
|
||||
if nodename == "mapgen:vacuum" then
|
||||
minetest.add_node({x=x+i,y=y+j,z=z+k},{name="mapgen:air"})
|
||||
minetest.get_meta({x=x+i,y=y+j,z=z+k}):set_int("spread", 16)
|
||||
print ("[mapgen] Added MR air node")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:waterice", {
|
||||
description = "Water Ice",
|
||||
tiles = {"mapgen_waterice.png"},
|
||||
light_source = 1,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {cracky=3,melts=1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:hlflowing", {
|
||||
description = "Flowing Hydroponics",
|
||||
inventory_image = minetest.inventorycube("mapgen_hl.png"),
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"mapgen_hl.png"},
|
||||
special_tiles = {
|
||||
{
|
||||
image="mapgen_hlflowing_animated.png",
|
||||
backface_culling=false,
|
||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2}
|
||||
},
|
||||
{
|
||||
image="mapgen_hlflowing_animated.png",
|
||||
backface_culling=true,
|
||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2}
|
||||
},
|
||||
},
|
||||
alpha = 224,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "mapgen:hlflowing",
|
||||
liquid_alternative_source = "mapgen:hlsource",
|
||||
liquid_viscosity = 1,
|
||||
post_effect_color = {a=224, r=115, g=55, b=24},
|
||||
groups = {water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1},
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:hlsource", {
|
||||
description = "Hydroponic Source",
|
||||
inventory_image = minetest.inventorycube("mapgen_hl.png"),
|
||||
drawtype = "liquid",
|
||||
tiles = {"mapgen_hl.png"},
|
||||
alpha = 224,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
buildable_to = true,
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "mapgen:hlflowing",
|
||||
liquid_alternative_source = "mapgen:hlsource",
|
||||
liquid_viscosity = 1,
|
||||
post_effect_color = {a=224, r=115, g=55, b=24},
|
||||
groups = {water=3, liquid=3, puts_out_fire=1},
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:soil", {
|
||||
description = "Moonsoil",
|
||||
tiles = {"mapgen_soil.png"},
|
||||
groups = {crumbly=3, falling_node=1, soil=3},
|
||||
drop = "mapgen:dust",
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:airlock", {
|
||||
description = "Airlock",
|
||||
tiles = {"mapgen_airlock.png"},
|
||||
light_source = 14,
|
||||
walkable = false,
|
||||
post_effect_color = {a=255, r=0, g=0, b=0},
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:glass", {
|
||||
description = "MR Glass",
|
||||
drawtype = "glasslike",
|
||||
tiles = {"default_obsidian_glass.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:sapling", {
|
||||
description = "MR Sapling",
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"default_sapling.png"},
|
||||
inventory_image = "default_sapling.png",
|
||||
wield_image = "default_sapling.png",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
groups = {snappy=2,dig_immediate=3,flammable=2},
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:leaves", {
|
||||
description = "MR Leaves",
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles = {"default_leaves.png"},
|
||||
paramtype = "light",
|
||||
groups = {snappy=3, leafdecay=3, flammable=2, leaves=1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"mapgen:sapling"},rarity = 20,},
|
||||
{items = {"mapgen:leaves"},}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:light", {
|
||||
description = "Light",
|
||||
tiles = {"mapgen_light.png"},
|
||||
light_source = 14,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:stonebrick", {
|
||||
description = "Moon Stone Brick",
|
||||
tiles = {"mapgen_stonebricktop.png", "mapgen_stonebrickbot.png", "mapgen_stonebrick.png"},
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:stoneslab", {
|
||||
description = "Moon Stone Slab",
|
||||
tiles = {"mapgen_stonebricktop.png", "mapgen_stonebrickbot.png", "mapgen_stonebrick.png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
buildable_to = true,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
||||
},
|
||||
},
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mapgen:stonestair", {
|
||||
description = "Moon Stone Stair",
|
||||
tiles = {"mapgen_stonebricktop.png", "mapgen_stonebrickbot.png", "mapgen_stonebrick.png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
||||
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
||||
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
||||
},
|
||||
},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
-- Items
|
||||
|
||||
minetest.register_craftitem("mapgen:spacesuit", {
|
||||
description = "MR Spacesuit",
|
||||
inventory_image = "mapgen_spacesuit.png",
|
||||
groups = {not_in_creative_inventory=1},
|
||||
})
|
||||
|
||||
minetest.register_craftitem("mapgen:helmet", {
|
||||
description = "MR Mesetint Helmet",
|
||||
inventory_image = "mapgen_helmet.png",
|
||||
groups = {not_in_creative_inventory=1},
|
||||
})
|
||||
|
||||
minetest.register_craftitem("mapgen:lifesupport", {
|
||||
description = "MR Life Support",
|
||||
inventory_image = "mapgen_lifesupport.png",
|
||||
groups = {not_in_creative_inventory=1},
|
||||
})
|
||||
|
||||
-- Crafting
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mapgen:airlock",
|
||||
recipe = {
|
||||
{"default:steel_ingot", "", "default:steel_ingot"},
|
||||
{"default:steel_ingot", "default:mese", "default:steel_ingot"},
|
||||
{"default:steel_ingot", "", "default:steel_ingot"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mapgen:airgen",
|
||||
recipe = {
|
||||
{"default:steel_ingot", "mapgen:waterice", "default:steel_ingot"},
|
||||
{"mapgen:waterice", "default:mese", "mapgen:waterice"},
|
||||
{"default:steel_ingot", "mapgen:waterice", "default:steel_ingot"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:water_source",
|
||||
recipe = {
|
||||
{"mapgen:waterice"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mapgen:hlsource",
|
||||
recipe = {
|
||||
{"mapgen:leaves", "mapgen:leaves", "mapgen:leaves"},
|
||||
{"mapgen:leaves", "mapgen:waterice", "mapgen:leaves"},
|
||||
{"mapgen:leaves", "mapgen:leaves", "mapgen:leaves"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mapgen:stonebrick 4",
|
||||
recipe = {
|
||||
{"mapgen:stone", "mapgen:stone"},
|
||||
{"mapgen:stone", "mapgen:stone"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:furnace",
|
||||
recipe = {
|
||||
{"mapgen:stone", "mapgen:stone", "mapgen:stone"},
|
||||
{"mapgen:stone", "", "mapgen:stone"},
|
||||
{"mapgen:stone", "mapgen:stone", "mapgen:stone"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mapgen:stoneslab 4",
|
||||
recipe = {
|
||||
{"mapgen:stone", "mapgen:stone"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mapgen:stonestair 4",
|
||||
recipe = {
|
||||
{"mapgen:stone", ""},
|
||||
{"mapgen:stone", "mapgen:stone"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mapgen:helmet",
|
||||
recipe = {
|
||||
{"default:mese_crystal"},
|
||||
{"default:glass"},
|
||||
{"default:steel_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mapgen:lifesupport",
|
||||
recipe = {
|
||||
{"default:steel_ingot","default:steel_ingot" , "default:steel_ingot"},
|
||||
{"default:steel_ingot", "", "default:steel_ingot"},
|
||||
{"default:steel_ingot", "default:mese", "default:steel_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mapgen:spacesuit",
|
||||
recipe = {
|
||||
{"wool:white", "mapgen:helmet", "wool:white"},
|
||||
{"", "mapgen:lifesupport", ""},
|
||||
{"wool:white", "", "wool:white"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mapgen:light 8",
|
||||
recipe = {
|
||||
{"mapgen:glass", "mapgen:glass", "mapgen:glass"},
|
||||
{"mapgen:glass", "default:mese", "mapgen:glass"},
|
||||
{"mapgen:glass", "mapgen:glass", "mapgen:glass"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mapgen:sapling",
|
||||
recipe = {
|
||||
{"default:mese_crystal"},
|
||||
{"default:sapling"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Cooking
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "mapgen:glass",
|
||||
recipe = "mapgen:dust",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "default:mese_crystal",
|
||||
burntime = 50,
|
||||
})
|
11
mods/mapgen/mapgen.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
minetest.register_biome({
|
||||
name = "plains",
|
||||
node_top = "mapgen:dust",
|
||||
depth_top = 7,
|
||||
node_dust = "air",
|
||||
height_min = -10,
|
||||
height_max = 160,
|
||||
heat_point = 45,
|
||||
humidity_point = 45,
|
||||
})
|
||||
|
BIN
mods/mapgen/textures/mapgen_air.png
Normal file
After Width: | Height: | Size: 169 B |
BIN
mods/mapgen/textures/mapgen_airgen.png
Normal file
After Width: | Height: | Size: 174 B |
BIN
mods/mapgen/textures/mapgen_airlock.png
Normal file
After Width: | Height: | Size: 156 B |
BIN
mods/mapgen/textures/mapgen_dust.png
Normal file
After Width: | Height: | Size: 554 B |
BIN
mods/mapgen/textures/mapgen_dustprint1.png
Normal file
After Width: | Height: | Size: 536 B |
BIN
mods/mapgen/textures/mapgen_dustprint2.png
Normal file
After Width: | Height: | Size: 527 B |
BIN
mods/mapgen/textures/mapgen_helmet.png
Normal file
After Width: | Height: | Size: 164 B |
BIN
mods/mapgen/textures/mapgen_hl.png
Normal file
After Width: | Height: | Size: 139 B |
BIN
mods/mapgen/textures/mapgen_hlflowing_animated.png
Normal file
After Width: | Height: | Size: 201 B |
BIN
mods/mapgen/textures/mapgen_lifesupport.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
mods/mapgen/textures/mapgen_light.png
Normal file
After Width: | Height: | Size: 155 B |
BIN
mods/mapgen/textures/mapgen_soil.png
Normal file
After Width: | Height: | Size: 601 B |
BIN
mods/mapgen/textures/mapgen_spacesuit.png
Normal file
After Width: | Height: | Size: 205 B |
BIN
mods/mapgen/textures/mapgen_stone.png
Normal file
After Width: | Height: | Size: 514 B |
BIN
mods/mapgen/textures/mapgen_stonebrick.png
Normal file
After Width: | Height: | Size: 173 B |
BIN
mods/mapgen/textures/mapgen_stonebrickbot.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
mods/mapgen/textures/mapgen_stonebricktop.png
Normal file
After Width: | Height: | Size: 159 B |
BIN
mods/mapgen/textures/mapgen_waterice.png
Normal file
After Width: | Height: | Size: 490 B |
8
mods/spacetime/init.lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
spacetime = {}
|
||||
|
||||
-- On joinplayer
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
minetest.set_timeofday(0)
|
||||
minetest.setting_set("time_speed", 0)
|
||||
end)
|