Move coral to sea mod
parent
590f95bfbf
commit
8dda867031
|
@ -56,26 +56,6 @@ minetest.register_decoration({
|
|||
flags = "force_placement",
|
||||
})
|
||||
|
||||
-- Coral
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:sand"},
|
||||
noise_params = {
|
||||
offset = -0.004,
|
||||
scale = 0.1,
|
||||
spread = {x = 200, y = 200, z = 200},
|
||||
seed = 7013,
|
||||
octaves = 3,
|
||||
persist = 0.7,
|
||||
},
|
||||
biomes = {"great_barrier_reef"},
|
||||
y_min = -12,
|
||||
y_max = -2,
|
||||
schematic = minetest.get_modpath("default") .. "/schematics/coral_reef.mts",
|
||||
flags = "place_center_x, place_center_z",
|
||||
rotation = "random",
|
||||
})
|
||||
|
||||
|
||||
--[[
|
||||
Trees
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
australia
|
|
@ -0,0 +1,69 @@
|
|||
--[[
|
||||
Sea
|
||||
--]]
|
||||
|
||||
|
||||
|
||||
--
|
||||
-- Corals
|
||||
--
|
||||
|
||||
minetest.register_node("sea:coral_brown", {
|
||||
description = "Brown Coral",
|
||||
tiles = {"sea_coral_brown.png"},
|
||||
groups = {cracky = 3},
|
||||
drop = "sea:coral_skeleton",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("sea:coral_orange", {
|
||||
description = "Orange Coral",
|
||||
tiles = {"sea_coral_orange.png"},
|
||||
groups = {cracky = 3},
|
||||
drop = "sea:coral_skeleton",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("sea:coral_skeleton", {
|
||||
description = "Coral Skeleton",
|
||||
tiles = {"sea_coral_skeleton.png"},
|
||||
groups = {cracky = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
--
|
||||
-- Coral death near air
|
||||
--
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"sea:coral_brown", "sea:coral_orange"},
|
||||
neighbors = {"air"},
|
||||
interval = 17,
|
||||
chance = 5,
|
||||
catch_up = false,
|
||||
action = function(pos, node)
|
||||
minetest.set_node(pos, {name = "sea:coral_skeleton"})
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
-- Coral
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:sand"},
|
||||
noise_params = {
|
||||
offset = -0.004,
|
||||
scale = 0.1,
|
||||
spread = {x = 200, y = 200, z = 200},
|
||||
seed = 7013,
|
||||
octaves = 3,
|
||||
persist = 0.7,
|
||||
},
|
||||
biomes = {"great_barrier_reef"},
|
||||
y_min = -12,
|
||||
y_max = -2,
|
||||
schematic = minetest.get_modpath("sea") .. "/schematics/corals.mts",
|
||||
flags = "place_center_x, place_center_z",
|
||||
rotation = "random",
|
||||
})
|
|
@ -0,0 +1 @@
|
|||
name = sea
|
0
mods/default/schematics/corals.mts → mods/MAPGEN/sea/schematics/corals.mts
Executable file → Normal file
0
mods/default/schematics/corals.mts → mods/MAPGEN/sea/schematics/corals.mts
Executable file → Normal file
0
mods/default/textures/default_coral_brown.png → mods/MAPGEN/sea/textures/sea_coral_brown.png
Executable file → Normal file
0
mods/default/textures/default_coral_brown.png → mods/MAPGEN/sea/textures/sea_coral_brown.png
Executable file → Normal file
Before Width: | Height: | Size: 401 B After Width: | Height: | Size: 401 B |
0
mods/default/textures/default_coral_orange.png → mods/MAPGEN/sea/textures/sea_coral_orange.png
Executable file → Normal file
0
mods/default/textures/default_coral_orange.png → mods/MAPGEN/sea/textures/sea_coral_orange.png
Executable file → Normal file
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 358 B |
0
mods/default/textures/default_coral_skeleton.png → mods/MAPGEN/sea/textures/sea_coral_skeleton.png
Executable file → Normal file
0
mods/default/textures/default_coral_skeleton.png → mods/MAPGEN/sea/textures/sea_coral_skeleton.png
Executable file → Normal file
Before Width: | Height: | Size: 256 B After Width: | Height: | Size: 256 B |
|
@ -496,19 +496,3 @@ function default.intersects_protection(minp, maxp, player_name, interval)
|
|||
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
--
|
||||
-- Coral death near air
|
||||
--
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"default:coral_brown", "default:coral_orange"},
|
||||
neighbors = {"air"},
|
||||
interval = 17,
|
||||
chance = 5,
|
||||
catch_up = false,
|
||||
action = function(pos, node)
|
||||
minetest.set_node(pos, {name = "default:coral_skeleton"})
|
||||
end,
|
||||
})
|
||||
|
|
|
@ -137,13 +137,6 @@ default:bush_leaves
|
|||
default:acacia_bush_stem
|
||||
default:acacia_bush_leaves
|
||||
|
||||
Corals
|
||||
------
|
||||
|
||||
default:coral_brown
|
||||
default:coral_orange
|
||||
default:coral_skeleton
|
||||
|
||||
Liquids
|
||||
-------
|
||||
(1. Source 2. Flowing)
|
||||
|
@ -1285,34 +1278,6 @@ minetest.register_node("default:acacia_bush_leaves", {
|
|||
})
|
||||
|
||||
|
||||
--
|
||||
-- Corals
|
||||
--
|
||||
|
||||
minetest.register_node("default:coral_brown", {
|
||||
description = "Brown Coral",
|
||||
tiles = {"default_coral_brown.png"},
|
||||
groups = {cracky = 3},
|
||||
drop = "default:coral_skeleton",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("default:coral_orange", {
|
||||
description = "Orange Coral",
|
||||
tiles = {"default_coral_orange.png"},
|
||||
groups = {cracky = 3},
|
||||
drop = "default:coral_skeleton",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("default:coral_skeleton", {
|
||||
description = "Coral Skeleton",
|
||||
tiles = {"default_coral_skeleton.png"},
|
||||
groups = {cracky = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
--
|
||||
-- Liquids
|
||||
--
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue