ikea_mapgen - start working on spawn
parent
f923c3ee4b
commit
25e9a4bf37
|
@ -2,6 +2,6 @@
|
|||
active_block_range = 4
|
||||
|
||||
world_start_time = 9000
|
||||
static_spawnpoint = -1,1,-3
|
||||
static_spawnpoint = 0,10001,0
|
||||
movement_speed_walk = 3
|
||||
default_stack_max = 1
|
||||
|
|
|
@ -29,6 +29,39 @@ minetest.register_node("ikea_mapgen:skylight", {
|
|||
pointable = false,
|
||||
ikea_fx_dust_amount = 1,
|
||||
ikea_fx_dust_spawner_chance = 32,
|
||||
|
||||
})
|
||||
|
||||
minetest.register_node("ikea_mapgen:spawn_blacktop", {
|
||||
description = "Blacktop node for spawn (you hacker you!)",
|
||||
tiles = {{name = "ikea_spawn_blacktop.png", scale = 16, align_style = "world" }},
|
||||
paramtype = "light",
|
||||
groups = {static = 1},
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
|
||||
minetest.register_node("ikea_mapgen:spawn_parking", {
|
||||
description = "Blacktop node for the parking lot (you hacker you!)",
|
||||
tiles = {{name = "ikea_spawn_parking.png", scale = 16, align_style = "world" }},
|
||||
paramtype = "light",
|
||||
groups = {static = 1},
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
|
||||
minetest.register_node("ikea_mapgen:spawn_blue", {
|
||||
description = "Blue node for the spawn building (you hacker you!)",
|
||||
tiles = {{name = "ikea_spawn_blue.png", scale = 16, align_style = "world" }},
|
||||
paramtype = "light",
|
||||
groups = {static = 1},
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
|
||||
minetest.register_node("ikea_mapgen:spawn_yellow", {
|
||||
description = "Yellow node for the spawn building (you hacker you!)",
|
||||
tiles = {{name = "ikea_spawn_yellow.png", scale = 16, align_style = "world" }},
|
||||
paramtype = "light",
|
||||
groups = {static = 1},
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
|
||||
-- Registration Function --
|
||||
|
@ -145,6 +178,10 @@ do -- Map Generation --
|
|||
-- Content IDs --
|
||||
local c_ceiling = get_content_id("ikea_mapgen:ceiling")
|
||||
local c_skylight = get_content_id("ikea_mapgen:skylight")
|
||||
local c_parking = get_content_id("ikea_mapgen:spawn_parking")
|
||||
local c_blacktop = get_content_id("ikea_mapgen:spawn_blacktop")
|
||||
local c_blue = get_content_id("ikea_mapgen:spawn_blue")
|
||||
local c_yellow = get_content_id("ikea_mapgen:spawn_yellow")
|
||||
|
||||
-- Local Functions --
|
||||
function get_department(depth, median)
|
||||
|
@ -224,10 +261,23 @@ do -- Map Generation --
|
|||
c_skylight
|
||||
)
|
||||
end
|
||||
elseif va:contains(x, 10000, z) then
|
||||
-- Add parking/blacktop --
|
||||
if z < 0 then
|
||||
fill_vmanip_area(data, va, v_new(x, 10000, z), v_new(x + 15, 10000, z + 15), c_parking)
|
||||
else
|
||||
fill_vmanip_area(data, va, v_new(x, 10000, z), v_new(x + 15, 10000, z + 15), c_blacktop)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- Spawn Building --
|
||||
if va:contains(0, 10000, 100) then
|
||||
fill_vmanip_area(data, va, v_new(-25, 10001, 50), v_new(25, 10025, 100), c_blue)
|
||||
fill_vmanip_area(data, va, v_new(-25, 10001, 10), v_new(-50, 10015, 100), c_yellow)
|
||||
end
|
||||
|
||||
vm:set_data(data)
|
||||
vm:set_param2_data(param2s)
|
||||
minetest.generate_decorations(vm, minp, maxp)
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 587 B |
Binary file not shown.
After Width: | Height: | Size: 839 B |
Binary file not shown.
After Width: | Height: | Size: 759 B |
Binary file not shown.
After Width: | Height: | Size: 842 B |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue