12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880 |
- minetest.register_node("xocean:ocean_cobble", {
- description = "Ocean Cobblestone",
- tile_images = {"xocean_cobble.png"},
- groups = {cracky=3},
- })
- minetest.register_node("xocean:ocean_stone", {
- description = "Ocean Stone",
- tile_images = {"xocean_stone.png"},
- groups = {cracky=3},
- drop= "xocean:ocean_cobble",
- })
- minetest.register_craft({
- type = "cooking",
- output = "xocean:ocean_stone",
- recipe = "xocean:ocean_cobble",
- })
- ---Spawn the stone
- minetest.register_ore({
- ore_type = "blob",
- ore = "xocean:ocean_stone",
- wherein = {"default:sand"},
- clust_scarcity = 32 * 32 * 32,
- clust_size = 8,
- y_min = -15,
- y_max = 0,
- noise_threshold = 0.0,
- noise_params = {
- offset = 0.5,
- scale = 0.2,
- spread = {x = 8, y = 5, z = 8},
- seed = -316,
- octaves = 1,
- persist = 0.0
- },
- })
- minetest.register_node("xocean:ocean_carved", {
- description = "Carved Ocean Stone",
- tile_images = {"xocean_carved.png"},
- groups = {cracky=2},
- })
- minetest.register_craft({
- output = '"xocean:ocean_carved" 4',
- recipe = {
- {'xocean:ocean_stone', 'xocean:ocean_stone',},
- {'xocean:ocean_stone', 'xocean:ocean_stone',},
- },
- })
- minetest.register_node("xocean:ocean_circular", {
- description = "Circular Ocean Stone",
- tile_images = {"xocean_circular.png"},
- groups = {cracky=2},
- })
- minetest.register_craft({
- output = '"xocean:ocean_circular" 4',
- recipe = {
- {'xocean:ocean_carved', 'xocean:ocean_carved',},
- {'xocean:ocean_carved', 'xocean:ocean_carved',},
- },
- })
- minetest.register_node("xocean:ocean_pillar", {
- description = "Ocean Pillar",
- tile_images = {"xocean_pillar.png"},
- groups = {cracky=2},
- })
- minetest.register_craft({
- output = '"xocean:ocean_pillar" 4',
- recipe = {
- {'xocean:ocean_brick', 'xocean:ocean_brick',},
- {'xocean:ocean_brick', 'xocean:ocean_brick',},
- },
- })
- minetest.register_node("xocean:ocean_brick", {
- description = "Ocean Brick",
- tile_images = {"xocean_brick.png"},
- groups = {cracky=2},
- })
- minetest.register_craft({
- output = '"xocean:ocean_brick" 4',
- recipe = {
- {'xocean:ocean_cobble', 'xocean:ocean_cobble',},
- {'xocean:ocean_cobble', 'xocean:ocean_cobble',},
- },
- })
- minetest.register_node("xocean:sea_lantern", {
- description = "Sea Lantern",
- drawtype = "glasslike",
- light_source = 30,
- tiles = {"xocean_lantern.png"},
- paramtype = "light",
- is_ground_content = true,
- sunlight_propagates = true,
- sounds = default.node_sound_glass_defaults(),
- groups = {cracky=3,oddly_breakable_by_hand=3},
- })
- minetest.register_craft({
- output = '"xocean:sea_lantern" 4',
- recipe = {
- {'default:torch', 'default:glass', 'default:torch', },
- {'default:glass', 'bucket:bucket_water', 'default:glass', },
- {'default:torch', 'default:glass', 'default:torch', },
- },
- replacements = {{ "bucket:bucket_water", "bucket:bucket_empty"}}
- })
- ---Sea stuff
- minetest.register_node("xocean:kelp_block", {
- description = "Dried Kelp Block",
- tile_images = {"xocean_kelp_block.png"},
- groups = {snappy=3},
- drop= "xocean:kelp 9",
- })
- minetest.register_craft({
- output = '"xocean:kelp_block" 1',
- recipe = {
- {'xocean:kelp', 'xocean:kelp', 'xocean:kelp', },
- {'xocean:kelp', 'xocean:kelp', 'xocean:kelp', },
- {'xocean:kelp', 'xocean:kelp', 'xocean:kelp', },
- },
- })
- minetest.override_item("default:sand_with_kelp", {
- description = "Kelp",
- drawtype = "plantlike_rooted",
- waving = 1,
- tiles = {"default_sand.png"},
- special_tiles = {{name = "default_kelp.png", tileable_vertical = true}},
- inventory_image = "xocean_kelp.png",
- wield_image = "xocean_kelp.png",
- paramtype = "light",
- paramtype2 = "leveled",
- groups = {snappy = 3},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- {-2/16, 0.5, -2/16, 2/16, 3.5, 2/16},
- },
- },
- node_dig_prediction = "default:sand",
- node_placement_prediction = "",
- sounds = default.node_sound_sand_defaults({
- dig = {name = "default_dig_snappy", gain = 0.2},
- dug = {name = "default_grass_footstep", gain = 0.25},
- }),
- on_place = function(itemstack, placer, pointed_thing)
- -- Call on_rightclick if the pointed node defines it
- if pointed_thing.type == "node" and placer and
- not placer:get_player_control().sneak then
- local node_ptu = minetest.get_node(pointed_thing.under)
- local def_ptu = minetest.registered_nodes[node_ptu.name]
- if def_ptu and def_ptu.on_rightclick then
- return def_ptu.on_rightclick(pointed_thing.under, node_ptu, placer,
- itemstack, pointed_thing)
- end
- end
- local pos = pointed_thing.under
- if minetest.get_node(pos).name ~= "default:sand" then
- return itemstack
- end
- local height = math.random(4, 6)
- local pos_top = {x = pos.x, y = pos.y + height, z = pos.z}
- local node_top = minetest.get_node(pos_top)
- local def_top = minetest.registered_nodes[node_top.name]
- local player_name = placer:get_player_name()
- if def_top and def_top.liquidtype == "source" and
- minetest.get_item_group(node_top.name, "water") > 0 then
- if not minetest.is_protected(pos, player_name) and
- not minetest.is_protected(pos_top, player_name) then
- minetest.set_node(pos, {name = "default:sand_with_kelp",
- param2 = height * 16})
- if not (creative and creative.is_enabled_for
- and creative.is_enabled_for(player_name)) then
- itemstack:take_item()
- end
- else
- minetest.chat_send_player(player_name, "Node is protected")
- minetest.record_protection_violation(pos, player_name)
- end
- end
- return itemstack
- end,
- after_destruct = function(pos, oldnode)
- minetest.set_node(pos, {name = "default:sand"})
- end
- })
- minetest.register_craft({
- type = "cooking",
- output = "xocean:kelp",
- recipe = "default:sand_with_kelp",
- })
- minetest.register_craftitem("xocean:kelp", {
- description = "Dried Kelp",
- on_use = minetest.item_eat(1),
- inventory_image = "xocean_dried_kelp.png",
- })
- minetest.register_craftitem("xocean:sushi", {
- description = "Sushi",
- on_use = minetest.item_eat(6),
- inventory_image = "xocean_sushi.png",
- })
- minetest.register_craft({
- output = '"xocean:sushi" 1',
- recipe = {
- {'xocean:fish_edible'},
- {'xocean:kelp' },
- },
- })
- minetest.register_node("xocean:seagrass", {
- description = "Seagrass",
- drawtype = "plantlike_rooted",
- waving = 1,
- paramtype = "light",
- tiles = {"default_sand.png"},
- special_tiles = {{name = "xocean_grass.png", tileable_vertical = true}},
- inventory_image = "xocean_grass.png",
- groups = {snappy = 3},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- {-4/16, 0.5, -4/16, 4/16, 1.5, 4/16},
- },
- },
- node_dig_prediction = "default:sand",
- node_placement_prediction = "",
- sounds = default.node_sound_stone_defaults({
- dig = {name = "default_dig_snappy", gain = 0.2},
- dug = {name = "default_grass_footstep", gain = 0.25},
- }),
- on_place = function(itemstack, placer, pointed_thing)
- if pointed_thing.type ~= "node" or not placer then
- return itemstack
- end
- local player_name = placer:get_player_name()
- local pos_under = pointed_thing.under
- local pos_above = pointed_thing.above
- if minetest.get_node(pos_under).name ~= "default:sand" or
- minetest.get_node(pos_above).name ~= "default:water_source" then
- return itemstack
- end
- if minetest.is_protected(pos_under, player_name) or
- minetest.is_protected(pos_above, player_name) then
- minetest.chat_send_player(player_name, "Node is protected")
- minetest.record_protection_violation(pos_under, player_name)
- return itemstack
- end
- minetest.set_node(pos_under, {name = "xocean:seagrass"})
- if not (creative and creative.is_enabled_for(player_name)) then
- itemstack:take_item()
- end
- return itemstack
- end,
- after_destruct = function(pos, oldnode)
- minetest.set_node(pos, {name = "default:sand"})
- end,
- })
- minetest.register_craftitem("xocean:fish_edible", {
- description = "Tropical Fish",
- on_use = minetest.item_eat(3),
- inventory_image = "xocean_fish_edible.png",
- })
- minetest.register_node("xocean:pickle", {
- description = "Sea Pickle",
- drawtype = "plantlike_rooted",
- waving = 1,
- paramtype = "light",
- tiles = {"default_sand.png"},
- special_tiles = {{name = "xocean_pickle.png", tileable_vertical = true}},
- inventory_image = "xocean_pickle.png",
- groups = {snappy = 3},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- {-4/16, 0.5, -4/16, 4/16, 1.5, 4/16},
- },
- },
- light_source = 3,
- node_dig_prediction = "default:sand",
- node_placement_prediction = "",
- sounds = default.node_sound_stone_defaults({
- dig = {name = "default_dig_snappy", gain = 0.2},
- dug = {name = "default_grass_footstep", gain = 0.25},
- }),
- on_place = function(itemstack, placer, pointed_thing)
- if pointed_thing.type ~= "node" or not placer then
- return itemstack
- end
- local player_name = placer:get_player_name()
- local pos_under = pointed_thing.under
- local pos_above = pointed_thing.above
- if minetest.get_node(pos_under).name ~= "default:sand" or
- minetest.get_node(pos_above).name ~= "default:water_source" then
- return itemstack
- end
- if minetest.is_protected(pos_under, player_name) or
- minetest.is_protected(pos_above, player_name) then
- minetest.chat_send_player(player_name, "Node is protected")
- minetest.record_protection_violation(pos_under, player_name)
- return itemstack
- end
- minetest.set_node(pos_under, {name = "xocean:pickle"})
- if not (creative and creative.is_enabled_for(player_name)) then
- itemstack:take_item()
- end
- return itemstack
- end,
- after_destruct = function(pos, oldnode)
- minetest.set_node(pos, {name = "default:sand"})
- end,
- })
- ---Corals
- minetest.register_node("xocean:brain_block", {
- description = "Brain Coral Block",
- tiles = {"xocean_coral_brain.png"},
- groups = {cracky = 3},
- drop = "xocean:brain_skeleton",
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.override_item("default:coral_pink", {
- description = "Brain Coral",
- drawtype = "plantlike_rooted",
- waving = 1,
- paramtype = "light",
- tiles = {"xocean_coral_brain.png"},
- special_tiles = {{name = "xocean_brain.png", tileable_vertical = true}},
- inventory_image = "xocean_brain.png",
- groups = {snappy = 3},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- {-4/16, 0.5, -4/16, 4/16, 1.5, 4/16},
- },
- },
- node_dig_prediction = "xocean:brain_block",
- node_placement_prediction = "",
- sounds = default.node_sound_stone_defaults({
- dig = {name = "default_dig_snappy", gain = 0.2},
- dug = {name = "default_grass_footstep", gain = 0.25},
- }),
- on_place = function(itemstack, placer, pointed_thing)
- if pointed_thing.type ~= "node" or not placer then
- return itemstack
- end
- local player_name = placer:get_player_name()
- local pos_under = pointed_thing.under
- local pos_above = pointed_thing.above
- if minetest.get_node(pos_under).name ~= "xocean:brain_block" or
- minetest.get_node(pos_above).name ~= "default:water_source" then
- return itemstack
- end
- if minetest.is_protected(pos_under, player_name) or
- minetest.is_protected(pos_above, player_name) then
- minetest.chat_send_player(player_name, "Node is protected")
- minetest.record_protection_violation(pos_under, player_name)
- return itemstack
- end
- minetest.set_node(pos_under, {name = "default:coral_pink"})
- if not (creative and creative.is_enabled_for(player_name)) then
- itemstack:take_item()
- end
- return itemstack
- end,
- after_destruct = function(pos, oldnode)
- minetest.set_node(pos, {name = "xocean:brain_block"})
- end,
- })
- minetest.register_node("xocean:brain_skeleton", {
- description = "Brain Coral Skeleton Block",
- tiles = {"xocean_coral_brain_skeleton.png"},
- groups = {cracky = 3},
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.register_node("xocean:skeleton_brain", {
- description = "Brain Coral Skeleton",
- drawtype = "plantlike_rooted",
- waving = 1,
- paramtype = "light",
- tiles = {"xocean_coral_brain_skeleton.png"},
- special_tiles = {{name = "xocean_brain_skeleton.png", tileable_vertical = true}},
- inventory_image = "xocean_brain_skeleton.png",
- groups = {snappy = 3},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- {-4/16, 0.5, -4/16, 4/16, 1.5, 4/16},
- },
- },
- node_dig_prediction = "xocean:brain_skeleton",
- node_placement_prediction = "",
- sounds = default.node_sound_stone_defaults({
- dig = {name = "default_dig_snappy", gain = 0.2},
- dug = {name = "default_grass_footstep", gain = 0.25},
- }),
- on_place = function(itemstack, placer, pointed_thing)
- if pointed_thing.type ~= "node" or not placer then
- return itemstack
- end
- local player_name = placer:get_player_name()
- local pos_under = pointed_thing.under
- local pos_above = pointed_thing.above
- if minetest.get_node(pos_under).name ~= "xocean:brain_skeleton" or
- minetest.get_node(pos_above).name ~= "default:water_source" then
- return itemstack
- end
- if minetest.is_protected(pos_under, player_name) or
- minetest.is_protected(pos_above, player_name) then
- minetest.chat_send_player(player_name, "Node is protected")
- minetest.record_protection_violation(pos_under, player_name)
- return itemstack
- end
- minetest.set_node(pos_under, {name = "xocean:skeleton_brain"})
- if not (creative and creative.is_enabled_for(player_name)) then
- itemstack:take_item()
- end
- return itemstack
- end,
- after_destruct = function(pos, oldnode)
- minetest.set_node(pos, {name = "xocean:brain_skeleton"})
- end,
- })
- minetest.register_node("xocean:tube_block", {
- description = "Tube Coral Block",
- tiles = {"xocean_coral_tube.png"},
- groups = {cracky = 3},
- drop = "xocean:tube_skeleton",
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.override_item("default:coral_cyan", {
- description = "Tube Coral",
- drawtype = "plantlike_rooted",
- waving = 1,
- paramtype = "light",
- tiles = {"xocean_coral_tube.png"},
- special_tiles = {{name = "xocean_tube.png", tileable_vertical = true}},
- inventory_image = "xocean_tube.png",
- groups = {snappy = 3},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- {-4/16, 0.5, -4/16, 4/16, 1.5, 4/16},
- },
- },
- drop = "xocean:skeleton_tube",
- node_dig_prediction = "xocean:tube_block",
- node_placement_prediction = "",
- sounds = default.node_sound_stone_defaults({
- dig = {name = "default_dig_snappy", gain = 0.2},
- dug = {name = "default_grass_footstep", gain = 0.25},
- }),
- on_place = function(itemstack, placer, pointed_thing)
- if pointed_thing.type ~= "node" or not placer then
- return itemstack
- end
- local player_name = placer:get_player_name()
- local pos_under = pointed_thing.under
- local pos_above = pointed_thing.above
- if minetest.get_node(pos_under).name ~= "xocean:tube_block" or
- minetest.get_node(pos_above).name ~= "default:water_source" then
- return itemstack
- end
- if minetest.is_protected(pos_under, player_name) or
- minetest.is_protected(pos_above, player_name) then
- minetest.chat_send_player(player_name, "Node is protected")
- minetest.record_protection_violation(pos_under, player_name)
- return itemstack
- end
- minetest.set_node(pos_under, {name = "default:coral_cyan"})
- if not (creative and creative.is_enabled_for(player_name)) then
- itemstack:take_item()
- end
- return itemstack
- end,
- after_destruct = function(pos, oldnode)
- minetest.set_node(pos, {name = "xocean:tube_block"})
- end,
- })
- minetest.register_node("xocean:tube_skeleton", {
- description = "Tube Coral Skeleton Block",
- tiles = {"xocean_coral_tube_skeleton.png"},
- groups = {cracky = 3},
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.register_node("xocean:skeleton_tube", {
- description = "Tube Coral Skeleton",
- drawtype = "plantlike_rooted",
- waving = 1,
- paramtype = "light",
- tiles = {"xocean_coral_tube_skeleton.png"},
- special_tiles = {{name = "xocean_tube_skeleton.png", tileable_vertical = true}},
- inventory_image = "xocean_tube_skeleton.png",
- groups = {snappy = 3},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- {-4/16, 0.5, -4/16, 4/16, 1.5, 4/16},
- },
- },
- node_dig_prediction = "xocean:tube_skeleton",
- node_placement_prediction = "",
- sounds = default.node_sound_stone_defaults({
- dig = {name = "default_dig_snappy", gain = 0.2},
- dug = {name = "default_grass_footstep", gain = 0.25},
- }),
- on_place = function(itemstack, placer, pointed_thing)
- if pointed_thing.type ~= "node" or not placer then
- return itemstack
- end
- local player_name = placer:get_player_name()
- local pos_under = pointed_thing.under
- local pos_above = pointed_thing.above
- if minetest.get_node(pos_under).name ~= "xocean:tube_skeleton" or
- minetest.get_node(pos_above).name ~= "default:water_source" then
- return itemstack
- end
- if minetest.is_protected(pos_under, player_name) or
- minetest.is_protected(pos_above, player_name) then
- minetest.chat_send_player(player_name, "Node is protected")
- minetest.record_protection_violation(pos_under, player_name)
- return itemstack
- end
- minetest.set_node(pos_under, {name = "xocean:skeleton_tube"})
- if not (creative and creative.is_enabled_for(player_name)) then
- itemstack:take_item()
- end
- return itemstack
- end,
- after_destruct = function(pos, oldnode)
- minetest.set_node(pos, {name = "xocean:tube_skeleton"})
- end,
- })
- minetest.register_node("xocean:bubble_block", {
- description = "Bubble Coral Block",
- tiles = {"xocean_coral_bubble.png"},
- groups = {cracky = 3},
- drop = "xocean:bubble_skeleton",
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.register_node("xocean:bubble", {
- description = "Bubble Coral",
- drawtype = "plantlike_rooted",
- waving = 1,
- drop = "xocean:skeleton_bubble",
- paramtype = "light",
- tiles = {"xocean_coral_bubble.png"},
- special_tiles = {{name = "xocean_bubble.png", tileable_vertical = true}},
- inventory_image = "xocean_bubble.png",
- groups = {snappy = 3},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- {-4/16, 0.5, -4/16, 4/16, 1.5, 4/16},
- },
- },
- node_dig_prediction = "xocean:bubble_block",
- node_placement_prediction = "",
- sounds = default.node_sound_stone_defaults({
- dig = {name = "default_dig_snappy", gain = 0.2},
- dug = {name = "default_grass_footstep", gain = 0.25},
- }),
- on_place = function(itemstack, placer, pointed_thing)
- if pointed_thing.type ~= "node" or not placer then
- return itemstack
- end
- local player_name = placer:get_player_name()
- local pos_under = pointed_thing.under
- local pos_above = pointed_thing.above
- if minetest.get_node(pos_under).name ~= "xocean:bubble_block" or
- minetest.get_node(pos_above).name ~= "default:water_source" then
- return itemstack
- end
- if minetest.is_protected(pos_under, player_name) or
- minetest.is_protected(pos_above, player_name) then
- minetest.chat_send_player(player_name, "Node is protected")
- minetest.record_protection_violation(pos_under, player_name)
- return itemstack
- end
- minetest.set_node(pos_under, {name = "xocean:bubble"})
- if not (creative and creative.is_enabled_for(player_name)) then
- itemstack:take_item()
- end
- return itemstack
- end,
- after_destruct = function(pos, oldnode)
- minetest.set_node(pos, {name = "xocean:bubble_block"})
- end,
- })
- minetest.register_node("xocean:bubble_skeleton", {
- description = "Bubble Coral Skeleton Block",
- tiles = {"xocean_coral_bubble_skeleton.png"},
- groups = {cracky = 3},
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.register_node("xocean:skeleton_bubble", {
- description = "Bubble Coral Skeleton",
- drawtype = "plantlike_rooted",
- waving = 1,
- paramtype = "light",
- tiles = {"xocean_coral_bubble_skeleton.png"},
- special_tiles = {{name = "xocean_bubble_skeleton.png", tileable_vertical = true}},
- inventory_image = "xocean_bubble_skeleton.png",
- groups = {snappy = 3},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- {-4/16, 0.5, -4/16, 4/16, 1.5, 4/16},
- },
- },
- drop = "xocean:skeleton_bubble",
- node_dig_prediction = "xocean:bubble_skeleton",
- node_placement_prediction = "",
- sounds = default.node_sound_stone_defaults({
- dig = {name = "default_dig_snappy", gain = 0.2},
- dug = {name = "default_grass_footstep", gain = 0.25},
- }),
- on_place = function(itemstack, placer, pointed_thing)
- if pointed_thing.type ~= "node" or not placer then
- return itemstack
- end
- local player_name = placer:get_player_name()
- local pos_under = pointed_thing.under
- local pos_above = pointed_thing.above
- if minetest.get_node(pos_under).name ~= "xocean:bubble_skeleton" or
- minetest.get_node(pos_above).name ~= "default:water_source" then
- return itemstack
- end
- if minetest.is_protected(pos_under, player_name) or
- minetest.is_protected(pos_above, player_name) then
- minetest.chat_send_player(player_name, "Node is protected")
- minetest.record_protection_violation(pos_under, player_name)
- return itemstack
- end
- minetest.set_node(pos_under, {name = "xocean:skeleton_bubble"})
- if not (creative and creative.is_enabled_for(player_name)) then
- itemstack:take_item()
- end
- return itemstack
- end,
- after_destruct = function(pos, oldnode)
- minetest.set_node(pos, {name = "xocean:bubble_skeleton"})
- end,
- })
- minetest.override_item("default:coral_brown", {
- description = "Horn Coral Block",
- tiles = {"xocean_coral_horn.png"},
- groups = {cracky = 3},
- drop = "default:coral_skeleton",
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.register_node("xocean:horn", {
- description = "Horn Coral",
- drawtype = "plantlike_rooted",
- waving = 1,
- paramtype = "light",
- tiles = {"xocean_coral_horn.png"},
- special_tiles = {{name = "xocean_horn.png", tileable_vertical = true}},
- inventory_image = "xocean_horn.png",
- groups = {snappy = 3},
- drop = "xocean:skeleton_horn",
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- {-4/16, 0.5, -4/16, 4/16, 1.5, 4/16},
- },
- },
- node_dig_prediction = "default:coral_brown",
- node_placement_prediction = "",
- sounds = default.node_sound_stone_defaults({
- dig = {name = "default_dig_snappy", gain = 0.2},
- dug = {name = "default_grass_footstep", gain = 0.25},
- }),
- on_place = function(itemstack, placer, pointed_thing)
- if pointed_thing.type ~= "node" or not placer then
- return itemstack
- end
- local player_name = placer:get_player_name()
- local pos_under = pointed_thing.under
- local pos_above = pointed_thing.above
- if minetest.get_node(pos_under).name ~= "default:coral_brown" or
- minetest.get_node(pos_above).name ~= "default:water_source" then
- return itemstack
- end
- if minetest.is_protected(pos_under, player_name) or
- minetest.is_protected(pos_above, player_name) then
- minetest.chat_send_player(player_name, "Node is protected")
- minetest.record_protection_violation(pos_under, player_name)
- return itemstack
- end
- minetest.set_node(pos_under, {name = "xocean:horn"})
- if not (creative and creative.is_enabled_for(player_name)) then
- itemstack:take_item()
- end
- return itemstack
- end,
- after_destruct = function(pos, oldnode)
- minetest.set_node(pos, {name = "default:coral_brown"})
- end,
- })
- minetest.override_item("default:coral_skeleton", {
- description = "Horn Coral Skeleton Block",
- tiles = {"xocean_coral_horn_skeleton.png"},
- groups = {cracky = 3},
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.register_node("xocean:skeleton_horn", {
- description = "Horn Coral Skeleton",
- drawtype = "plantlike_rooted",
- waving = 1,
- paramtype = "light",
- tiles = {"xocean_coral_horn_skeleton.png"},
- special_tiles = {{name = "xocean_horn_skeleton.png", tileable_vertical = true}},
- inventory_image = "xocean_horn_skeleton.png",
- groups = {snappy = 3},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- {-4/16, 0.5, -4/16, 4/16, 1.5, 4/16},
- },
- },
- drop = "xocean:skeleton:horn",
- node_dig_prediction = "xocean:horn_skeleton",
- node_placement_prediction = "",
- sounds = default.node_sound_stone_defaults({
- dig = {name = "default_dig_snappy", gain = 0.2},
- dug = {name = "default_grass_footstep", gain = 0.25},
- }),
- on_place = function(itemstack, placer, pointed_thing)
- if pointed_thing.type ~= "node" or not placer then
- return itemstack
- end
- local player_name = placer:get_player_name()
- local pos_under = pointed_thing.under
- local pos_above = pointed_thing.above
- if minetest.get_node(pos_under).name ~= "xocean:horn_skeleton" or
- minetest.get_node(pos_above).name ~= "default:water_source" then
- return itemstack
- end
- if minetest.is_protected(pos_under, player_name) or
- minetest.is_protected(pos_above, player_name) then
- minetest.chat_send_player(player_name, "Node is protected")
- minetest.record_protection_violation(pos_under, player_name)
- return itemstack
- end
- minetest.set_node(pos_under, {name = "xocean:skeleton_horn"})
- if not (creative and creative.is_enabled_for(player_name)) then
- itemstack:take_item()
- end
- return itemstack
- end,
- after_destruct = function(pos, oldnode)
- minetest.set_node(pos, {name = "xocean:horn_skeleton"})
- end,
- })
- minetest.override_item("default:coral_orange", {
- description = "Fire Coral Block",
- tiles = {"xocean_coral_fire.png"},
- groups = {cracky = 3},
- drop = "xocean:fire_skeleton",
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.register_node("xocean:fire", {
- description = "Fire Coral",
- drawtype = "plantlike_rooted",
- waving = 1,
- paramtype = "light",
- tiles = {"xocean_coral_fire.png"},
- special_tiles = {{name = "xocean_fire.png", tileable_vertical = true}},
- inventory_image = "xocean_fire.png",
- groups = {snappy = 3},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- {-4/16, 0.5, -4/16, 4/16, 1.5, 4/16},
- },
- },
- drop = "xocean:skeleton_fire",
- node_dig_prediction = "xocean:default:coral_orange",
- node_placement_prediction = "",
- sounds = default.node_sound_stone_defaults({
- dig = {name = "default_dig_snappy", gain = 0.2},
- dug = {name = "default_grass_footstep", gain = 0.25},
- }),
- on_place = function(itemstack, placer, pointed_thing)
- if pointed_thing.type ~= "node" or not placer then
- return itemstack
- end
- local player_name = placer:get_player_name()
- local pos_under = pointed_thing.under
- local pos_above = pointed_thing.above
- if minetest.get_node(pos_under).name ~= "default:coral_orange" or
- minetest.get_node(pos_above).name ~= "default:water_source" then
- return itemstack
- end
- if minetest.is_protected(pos_under, player_name) or
- minetest.is_protected(pos_above, player_name) then
- minetest.chat_send_player(player_name, "Node is protected")
- minetest.record_protection_violation(pos_under, player_name)
- return itemstack
- end
- minetest.set_node(pos_under, {name = "xocean:fire"})
- if not (creative and creative.is_enabled_for(player_name)) then
- itemstack:take_item()
- end
- return itemstack
- end,
- after_destruct = function(pos, oldnode)
- minetest.set_node(pos, {name = "default:coral_orange"})
- end,
- })
- minetest.register_node("xocean:fire_skeleton", {
- description = "Fire Coral Skeleton Block",
- tiles = {"xocean_coral_fire_skeleton.png"},
- groups = {cracky = 3},
- sounds = default.node_sound_stone_defaults(),
- })
- minetest.register_node("xocean:skeleton_fire", {
- description = "Fire Coral Skeleton",
- drawtype = "plantlike_rooted",
- waving = 1,
- paramtype = "light",
- tiles = {"xocean_coral_fire_skeleton.png"},
- special_tiles = {{name = "xocean_fire_skeleton.png", tileable_vertical = true}},
- inventory_image = "xocean_fire_skeleton.png",
- groups = {snappy = 3},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- {-4/16, 0.5, -4/16, 4/16, 1.5, 4/16},
- },
- },
- node_dig_prediction = "xocean:fire_skeleton",
- node_placement_prediction = "",
- sounds = default.node_sound_stone_defaults({
- dig = {name = "default_dig_snappy", gain = 0.2},
- dug = {name = "default_grass_footstep", gain = 0.25},
- }),
- on_place = function(itemstack, placer, pointed_thing)
- if pointed_thing.type ~= "node" or not placer then
- return itemstack
- end
- local player_name = placer:get_player_name()
- local pos_under = pointed_thing.under
- local pos_above = pointed_thing.above
- if minetest.get_node(pos_under).name ~= "xocean:fire_skeleton" or
- minetest.get_node(pos_above).name ~= "default:water_source" then
- return itemstack
- end
- if minetest.is_protected(pos_under, player_name) or
- minetest.is_protected(pos_above, player_name) then
- minetest.chat_send_player(player_name, "Node is protected")
- minetest.record_protection_violation(pos_under, player_name)
- return itemstack
- end
- minetest.set_node(pos_under, {name = "xocean:skeleton_fire"})
- if not (creative and creative.is_enabled_for(player_name)) then
- itemstack:take_item()
- end
- return itemstack
- end,
- after_destruct = function(pos, oldnode)
- minetest.set_node(pos, {name = "xocean:fire_skeleton"})
- end,
- })
- ---Mapgen
- minetest.register_decoration({
- name = "xocean:brain",
- deco_type = "schematic",
- place_on = {"default:sand"},
- place_offset_y = -1,
- sidelen = 2,
- noise_params = {
- offset = 0.0001,
- scale = 0.0001,
- spread = {x = 100000, y = 100000, z = 100000},
- seed = 87112,
- octaves = 20,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -6,
- y_min = -16,
- flags = "force_placement",
- schematic = minetest.get_modpath("xocean") .. "/schems/brain.mts",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:horn",
- deco_type = "schematic",
- place_on = {"default:sand"},
- place_offset_y = -1,
- sidelen = 2,
- noise_params = {
- offset = 0.0001,
- scale = 0.0001,
- spread = {x = 100000, y = 100000, z = 100000},
- seed = 87112,
- octaves = 20,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -6,
- y_min = -16,
- flags = "force_placement",
- schematic = minetest.get_modpath("xocean") .. "/schems/horn.mts",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:bubble",
- deco_type = "schematic",
- place_on = {"default:sand"},
- place_offset_y = -1,
- sidelen = 2,
- noise_params = {
- offset = 0.0001,
- scale = 0.0001,
- spread = {x = 100000, y = 100000, z = 100000},
- seed = 87112,
- octaves = 20,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -6,
- y_min = -16,
- flags = "force_placement",
- schematic = minetest.get_modpath("xocean") .. "/schems/bubble.mts",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:tube",
- deco_type = "schematic",
- place_on = {"default:sand"},
- place_offset_y = -1,
- sidelen = 2,
- noise_params = {
- offset = 0.0001,
- scale = 0.0001,
- spread = {x = 100000, y = 100000, z = 100000},
- seed = 87112,
- octaves = 20,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -6,
- y_min = -16,
- flags = "force_placement",
- schematic = minetest.get_modpath("xocean") .. "/schems/tube.mts",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:fire",
- deco_type = "schematic",
- place_on = {"default:sand"},
- place_offset_y = -1,
- sidelen = 2,
- noise_params = {
- offset = 0.0001,
- scale = 0.0001,
- spread = {x = 100000, y = 100000, z = 100000},
- seed = 87112,
- octaves = 20,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -6,
- y_min = -16,
- flags = "force_placement",
- schematic = minetest.get_modpath("xocean") .. "/schems/fire.mts",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:brain2",
- deco_type = "schematic",
- place_on = {"default:sand"},
- place_offset_y = -1,
- sidelen = 2,
- noise_params = {
- offset = 0.0001,
- scale = 0.001,
- spread = {x = 100000, y = 100000, z = 100000},
- seed = 87112,
- octaves = 28,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -6,
- y_min = -16,
- flags = "force_placement",
- schematic = minetest.get_modpath("xocean") .. "/schems/brain2.mts",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:horn2",
- deco_type = "schematic",
- place_on = {"default:sand"},
- place_offset_y = -1,
- sidelen = 2,
- noise_params = {
- offset = 0.0001,
- scale = 0.001,
- spread = {x = 100000, y = 100000, z = 100000},
- seed = 87112,
- octaves = 28,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -6,
- y_min = -16,
- flags = "force_placement",
- schematic = minetest.get_modpath("xocean") .. "/schems/horn2.mts",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:bubble2",
- deco_type = "schematic",
- place_on = {"default:sand"},
- place_offset_y = -1,
- sidelen = 2,
- noise_params = {
- offset = 0.0001,
- scale = 0.001,
- spread = {x = 100000, y = 100000, z = 100000},
- seed = 87112,
- octaves = 28,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -6,
- y_min = -16,
- flags = "force_placement",
- schematic = minetest.get_modpath("xocean") .. "/schems/bubble2.mts",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:tube2",
- deco_type = "schematic",
- place_on = {"default:sand"},
- place_offset_y = -1,
- sidelen = 2,
- noise_params = {
- offset = 0.0001,
- scale = 0.001,
- spread = {x = 100000, y = 100000, z = 100000},
- seed = 87112,
- octaves = 28,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -6,
- y_min = -16,
- flags = "force_placement",
- schematic = minetest.get_modpath("xocean") .. "/schems/tube2.mts",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:fire2",
- deco_type = "schematic",
- place_on = {"default:sand"},
- place_offset_y = -1,
- sidelen = 2,
- noise_params = {
- offset = 0.0001,
- scale = 0.001,
- spread = {x = 100000, y = 100000, z = 100000},
- seed = 87112,
- octaves = 12,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -6,
- y_min = -16,
- flags = "force_placement",
- schematic = minetest.get_modpath("xocean") .. "/schems/fire2.mts",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:tube3",
- deco_type = "schematic",
- place_on = {"default:sand"},
- place_offset_y = -1,
- sidelen = 1 ,
- noise_params = {
- offset = 0.0001,
- scale = 0.000001,
- spread = {x = 100000, y = 100000, z = 100000},
- seed = 87112,
- octaves = 20,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -6,
- y_min = -16,
- flags = "force_placement",
- schematic = minetest.get_modpath("xocean") .. "/schems/tube3.mts",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:brain3",
- deco_type = "schematic",
- place_on = {"default:sand"},
- place_offset_y = -1,
- sidelen = 1,
- noise_params = {
- offset = 0.0001,
- scale = 0.000001,
- spread = {x = 100000, y = 100000, z = 100000},
- seed = 87112,
- octaves = 25,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -6,
- y_min = -16,
- flags = "force_placement",
- schematic = minetest.get_modpath("xocean") .. "/schems/brain3.mts",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:seagrass",
- deco_type = "simple",
- place_on = {"default:sand"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = -0.04,
- scale = 0.4,
- spread = {x = 200, y = 200, z = 200},
- seed = 87112,
- octaves = 3,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -5,
- y_min = -50,
- flags = "force_placement",
- decoration = "xocean:seagrass",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:fire_plant_dead",
- deco_type = "simple",
- place_on = {"xocean:brain_block","xocean:tube_block","default:coral_orange","default:coral_brown","xocean:bubble_block"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = -0.04,
- scale = 1.0,
- spread = {x = 20, y = 20, z = 20},
- seed = 87112,
- octaves = 3,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -5,
- y_min = -50,
- flags = "force_placement",
- decoration = "xocean:skeleton_fire",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:horn_plant_dead",
- deco_type = "simple",
- place_on = {"xocean:brain_block","xocean:tube_block","default:coral_orange","default:coral_brown","xocean:bubble_block"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = -0.04,
- scale = 1.0,
- spread = {x = 20, y = 20, z = 20},
- seed = 87112,
- octaves = 3,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -5,
- y_min = -50,
- flags = "force_placement",
- decoration = "xocean:skeleton_horn",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:bubble_plant_skeleton",
- deco_type = "simple",
- place_on = {"xocean:brain_block","xocean:tube_block","default:coral_orange","default:coral_brown","xocean:bubble_block"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = -0.04,
- scale = 1.0,
- spread = {x = 20, y = 20, z = 20},
- seed = 87112,
- octaves = 3,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -5,
- y_min = -50,
- flags = "force_placement",
- decoration = "xocean:skeleton_bubble",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:brain_plant_skeleton",
- deco_type = "simple",
- place_on = {"xocean:brain_block","xocean:tube_block","default:coral_orange","default:coral_brown","xocean:bubble_block"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = -0.04,
- scale = 1.0,
- spread = {x = 20, y = 20, z = 20},
- seed = 87112,
- octaves = 3,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -5,
- y_min = -50,
- flags = "force_placement",
- decoration = "xocean:skeleton_brain",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:tube_plant",
- deco_type = "simple",
- place_on = {"xocean:brain_block","xocean:tube_block","default:coral_orange","default:coral_brown","xocean:bubble_block"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = -0.04,
- scale = 1.0,
- spread = {x = 20, y = 20, z = 20},
- seed = 87112,
- octaves = 3,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -5,
- y_min = -50,
- flags = "force_placement",
- decoration = "xocean:skeleton_tube",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:fire_plant",
- deco_type = "simple",
- place_on = {"xocean:brain_block","xocean:tube_block","default:coral_orange","default:coral_brown","xocean:bubble_block"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = -0.04,
- scale = 1.0,
- spread = {x = 20, y = 20, z = 20},
- seed = 87112,
- octaves = 3,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -5,
- y_min = -50,
- flags = "force_placement",
- decoration = "xocean:fire",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:horn_plant",
- deco_type = "simple",
- place_on = {"xocean:brain_block","xocean:tube_block","default:coral_orange","default:coral_brown","xocean:bubble_block"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = -0.04,
- scale = 1.0,
- spread = {x = 20, y = 20, z = 20},
- seed = 87112,
- octaves = 3,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -5,
- y_min = -50,
- flags = "force_placement",
- decoration = "xocean:horn",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:bubble_plant",
- deco_type = "simple",
- place_on = {"xocean:brain_block","xocean:tube_block","default:coral_orange","default:coral_brown","xocean:bubble_block"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = -0.04,
- scale = 1.0,
- spread = {x = 20, y = 20, z = 20},
- seed = 87112,
- octaves = 3,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -5,
- y_min = -50,
- flags = "force_placement",
- decoration = "xocean:bubble",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:brain_plant",
- deco_type = "simple",
- place_on = {"xocean:brain_block","xocean:tube_block","default:coral_orange","default:coral_brown","xocean:bubble_block"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = -0.04,
- scale = 1.0,
- spread = {x = 20, y = 20, z = 20},
- seed = 87112,
- octaves = 3,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -5,
- y_min = -50,
- flags = "force_placement",
- decoration = "default:coral_pink",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:tube_plant",
- deco_type = "simple",
- place_on = {"xocean:brain_block","xocean:tube_block","default:coral_orange","default:coral_brown","xocean:bubble_block"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = -0.04,
- scale = 1.0,
- spread = {x = 20, y = 20, z = 20},
- seed = 87112,
- octaves = 3,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -5,
- y_min = -50,
- flags = "force_placement",
- decoration = "default:coral_cyan",
- param2 = 48,
- param2_max = 96,
- })
- minetest.register_decoration({
- name = "xocean:pickle",
- deco_type = "simple",
- place_on = {"default:sand"},
- place_offset_y = -1,
- sidelen = 16,
- noise_params = {
- offset = -0.04,
- scale = 0.04,
- spread = {x = 200, y = 200, z = 200},
- seed = 87112,
- octaves = 3,
- persist = 0.7
- },
- biomes = {
- "taiga_ocean",
- "snowy_grassland_ocean",
- "grassland_ocean",
- "coniferous_forest_ocean",
- "deciduous_forest_ocean",
- "sandstone_desert_ocean",
- "cold_desert_ocean"},
- y_max = -8,
- y_min = -50,
- flags = "force_placement",
- decoration = "xocean:pickle",
- param2 = 48,
- param2_max = 96,
- })
- ---Mobs
- if minetest.get_modpath("mobs") then
- local l_water_level = minetest.setting_get("water_level") - 2
- mobs:register_mob("xocean:dolphin", {
- type = "animal",
- attack_type = "dogfight",
- damage = 1,
- visual_size = {x = 15, y = 15, z= 15},
- reach = 3,
- hp_min = 20,
- hp_max = 20,
- armor = 100,
- collisionbox = {-0.75, -0.5, -0.75, 0.75, 0.5, 0.75},
- visual = "mesh",
- mesh = "dolphin.b3d",
- textures = {
- {"mobs_dolphin.png"}
- },
- drops = {
- {name = "mobs:meat_raw", chance = 1, min = 2, max = 4},
- },
- makes_footstep_sound = false,
- walk_velocity = 4,
- run_velocity = 6,
- fly = true,
- fly_in = "default:water_source",
- fall_speed = 0,
- rotate = 90,
- view_range = 30,
- water_damage = 0,
- lava_damage = 10,
- jump = false,
- stepheight = 0.1,
- light_damage = 0,
- animation = {
- speed_normal = 15,
- speed_run = 25,
- stand_start = 40,
- stand_end = 100,
- walk_start = 40,
- walk_end = 100,
- run_start = 40,
- run_end = 100,
- },
- })
- mobs:spawn_specific("xocean:dolphin", {"default:water_source"}, {"default:water_flowing","default:water_source"}, 5, 20, 30, 10000, 2, -31000, l_water_level)
- mobs:register_egg("xocean:dolphin", "Dolphin", "xocean_stone.png", 1)
- mobs:register_mob("xocean:fish", {
- type = "animal",
- hp_min = 5,
- hp_max = 5,
- armor = 100,
- visual_size = {x = 2, y = 2, z= 2},
- collisionbox = {-0.25, -0.2, -0.25, 0.25, 0.2, 0.25},
- visual = "mesh",
- mesh = "fishy.b3d",
- textures = {
- {"mobs_fishy.png"},
- {"mobs_fishy1.png"},
- {"mobs_fishy2.png"},
- {"mobs_fishy3.png"}
- },
- drops = {
- {name = "xocean:fish_edible", chance = 1, min = 1, max = 1},
- },
- makes_footstep_sound = false,
- walk_velocity = 2,
- run_velocity = 3,
- fly = true,
- fly_in = "default:water_source",
- fall_speed = 0,
- view_range = 30,
- water_damage = 0,
- lava_damage = 10,
- light_damage = 0,
- animation = {
- speed_normal = 15,
- speed_run = 25,
- stand_start = 40,
- stand_end = 100,
- walk_start = 40,
- walk_end = 100,
- run_start = 40,
- run_end = 100,
- },
- })
- mobs:spawn_specific("xocean:fish", {"default:water_source"}, {"default:water_flowing","default:water_source"}, 2, 20, 30, 10000, 5, -31000, l_water_level)
- mobs:register_egg("xocean:fish", "Tropical Fish (Kob)", "xocean_fish.png", 0)
- mobs:register_mob("xocean:fish2", {
- type = "animal",
- hp_min = 5,
- hp_max = 5,
- armor = 100,
- visual_size = {x = 2, y = 2, z= 2},
- collisionbox = {-0.25, -0.2, -0.25, 0.25, 0.2, 0.25},
- visual = "mesh",
- mesh = "fishy.b3d",
- textures = {
- {"mobs_fishy4.png"},
- {"mobs_fishy5.png"},
- {"mobs_fishy6.png"}
- },
- drops = {
- {name = "xocean:fish_edible", chance = 2, min = 1, max = 2},
- },
- makes_footstep_sound = false,
- walk_velocity = 2,
- run_velocity = 3,
- fly = true,
- fly_in = "default:water_source",
- fall_speed = 0,
- view_range = 30,
- water_damage = 0,
- lava_damage = 10,
- light_damage = 0,
- animation = {
- speed_normal = 15,
- speed_run = 25,
- stand_start = 40,
- stand_end = 100,
- walk_start = 40,
- walk_end = 100,
- run_start = 40,
- run_end = 100,
- },
- })
- mobs:spawn_specific("xocean:fish2", {"default:water_source"}, {"default:water_flowing","default:water_source"}, 2, 20, 30, 10000, 5, -31000, l_water_level)
- mobs:register_egg("xocean:fish2", "Tropical Fish (SunStreak)", "xocean_fish2.png", 0)
- mobs:register_mob("xocean:fish3", {
- type = "animal",
- hp_min = 5,
- hp_max = 5,
- armor = 100,
- visual_size = {x = 2, y = 2, z= 2},
- collisionbox = {-0.25, -0.2, -0.25, 0.25, 0.2, 0.25},
- visual = "mesh",
- mesh = "fishy.b3d",
- textures = {
- {"mobs_fishy7.png"},
- {"mobs_fishy8.png"},
- {"mobs_fishy9.png"}
- },
- drops = {
- {name = "xocean:fish_edible", chance = 2, min = 1, max = 2},
- },
- makes_footstep_sound = false,
- walk_velocity = 2,
- run_velocity = 3,
- fly = true,
- fly_in = "default:water_source",
- fall_speed = 0,
- view_range = 30,
- water_damage = 0,
- lava_damage = 10,
- light_damage = 0,
- animation = {
- speed_normal = 15,
- speed_run = 25,
- stand_start = 40,
- stand_end = 100,
- walk_start = 40,
- walk_end = 100,
- run_start = 40,
- run_end = 100,
- },
- })
- mobs:spawn_specific("xocean:fish3", {"default:water_source"}, {"default:water_flowing","default:water_source"}, 2, 20, 30, 10000, 5, -31000, l_water_level)
- mobs:register_egg("xocean:fish3", "Tropical Fish (Dasher)", "xocean_fish3.png", 0)
- mobs:register_mob("xocean:fish4", {
- type = "animal",
- hp_min = 5,
- hp_max = 5,
- armor = 100,
- visual_size = {x = 2, y = 2, z= 2},
- collisionbox = {-0.25, -0.2, -0.25, 0.25, 0.2, 0.25},
- visual = "mesh",
- mesh = "fishy.b3d",
- textures = {
- {"mobs_fishy10.png"},
- {"mobs_fishy11.png"},
- {"mobs_fishy12.png"}
- },
- drops = {
- {name = "xocean:fish_edible", chance = 2, min = 1, max = 2},
- },
- makes_footstep_sound = false,
- walk_velocity = 2,
- run_velocity = 3,
- fly = true,
- fly_in = "default:water_source",
- fall_speed = 0,
- view_range = 30,
- water_damage = 0,
- lava_damage = 10,
- light_damage = 0,
- animation = {
- speed_normal = 15,
- speed_run = 25,
- stand_start = 40,
- stand_end = 100,
- walk_start = 40,
- walk_end = 100,
- run_start = 40,
- run_end = 100,
- },
- })
- mobs:spawn_specific("xocean:fish4", {"default:water_source"}, {"default:water_flowing","default:water_source"}, 2, 20, 30, 10000, 5, -31000, l_water_level)
- mobs:register_egg("xocean:fish4", "Tropical Fish (Snapper)", "xocean_fish4.png", 0)
- end
|