diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 index c20909f..dcc64ce --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Australia -A mod for Minetest 0.4.13-dev. Work in progress. +A mod for Minetest 0.4.14. Work in progress. Created by vlapsley. ![Screenshot](https://raw.githubusercontent.com/vlapsley/australia/master/screenshot.png) @@ -76,19 +76,19 @@ The highest parts of the Great Dividing Range. ## To-do list * Redo some tree textures, especially wood. Some of them are great, some are awful. -* Finish corals in Great Barrier Reef. * Opals in Central Australia biome. -* Work out way to place some tree and plants along rivers. +* Work out way to place some trees and plants along rivers. * Salt lakes in Central Australia biome. * Adjust tree and plant distribution. * Adjust tree size and leaf functions. * Add some rocky beaches. * Add some river/lake plants, especially to Arnhem land biome. -* Add red terra rossa soil and grape vines in the Flinders-Lofty biome. Red/white wine. +* Add terra rossa soil and grape vines in the Flinders-Lofty biome. Red/white wine. * Add more logs. * Add moss on trees. * Palm trees in FNQ and Arnhem land beaches. * Add support for survival mod/game. +* Add support for a mobs mod - Great White Shark, Tiger Shark, Saltwater Crocodile, Brown Snake, Tiger Snake, Emu, Kangaroo. ## Installation @@ -104,7 +104,7 @@ The highest parts of the Great Dividing Range. ## Use ### Mapgen compatibility -The Australia mod has been designed specifically for the Valleys mapgen, currently in Minetest 0.4.13-dev. +The Australia mod has been designed specifically for the Valleys mapgen, currently in Minetest 0.4.14. It will work with mapgens v5, v7, flat and fractal, but it won't be as visually appealing. The rivers and temperature/humidity of the Valleys mapgen play a vital role in getting the feel of the Australia mod just right. @@ -114,6 +114,12 @@ This will also disable plants, trees and more that are unique to that biome. All biomes are enabled by default. Currently, disabling the *Underground* biome will have no effect. ## Changelog +### 0.4 (2016-05-24) +* Added new corals and sea grass. +* Replaced coral sand with coral stone. +* Added sunken woodships and submarines with variable "loot". +* Fixed an issue with the rainforest tree schematic causing Minetest 0.4.14 to crash on startup. + ### 0.3.1 (2016-04-22) * Changed ore distribution to use minetest.register_ore function. * Added uranium in two biomes if technic_worldgen mod is enabled. @@ -139,8 +145,9 @@ All biomes are enabled by default. Currently, disabling the *Underground* biome ## Credits ### Code * Original tree code adapted from Gael-de-Sailly [GNU GPLv3](http://www.gnu.org/licenses/gpl-3.0.en.html), original source can be found at [](https://github.com/Gael-de-Sailly/valleys_mapgen) and duane-r [BSD license](https://en.wikipedia.org/wiki/Bsd_license). -* Tree schematic creation code by duane-r [BSD license](https://en.wikipedia.org/wiki/Bsd_license). -* noairblocks.lua : Code modified from Duane Robertson's [valleys_c](https://github.com/duane-r/valleys_c) mod. Original code modified from Perttu Ahola's [noairblocks](https://forum.minetest.net/viewtopic.php?id=4627) mod and released as LGPL 2.1. +* Original tree schematic creation code modified by vlapsley and orginal by duane-r [BSD license](https://en.wikipedia.org/wiki/Bsd_license). +* noairblocks.lua : Code modified from Duane Robertson's [valleys_c](https://github.com/duane-r/valleys_c) mod. Original code modified from Perttu Ahola's [noairblocks](https://forum.minetest.net/viewtopic.php?id=4627) mod and released as [LGPL 2.1](http://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html). +* Sunken woodship and submarine code modified by vlapsley and original copyright (C) 2011-2012 by celeron55, Perttu Ahola , (https://creativecommons.org/licenses/by-sa/3.0/legalcode) [GNU Lesser General Public License](http://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html) as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. ### Sounds * [Mangrove mud](http://www.freesound.org/people/dobroide/sounds/16771) copyright (C) 2006 by dobroide, [CC by 3.0](https://creativecommons.org/licenses/by/3.0/legalcode) @@ -148,6 +155,5 @@ All biomes are enabled by default. Currently, disabling the *Underground* biome ### Textures * Moss textures by Neuromancer, [WTFPL](https://en.wikipedia.org/wiki/WTFPL). * Fern textures by Mossmanikin, [WTFPL](https://en.wikipedia.org/wiki/WTFPL). -* Giant Kelp textures copyright (C) 2012 by Perttu Ahola, [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/legalcode). -* Coral sand by duane-r [BSD license](https://en.wikipedia.org/wiki/Bsd_license). +* Giant Kelp textures copyright (C) 2012 by celeron55, Perttu Ahola, [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/legalcode). * All other textures by demon_boy [github](https://github.com/vlapsley), except those from default game. diff --git a/biome_arnhem_land.lua b/biome_arnhem_land.lua old mode 100644 new mode 100755 diff --git a/biome_australian_alps.lua b/biome_australian_alps.lua old mode 100644 new mode 100755 diff --git a/biome_central_australia.lua b/biome_central_australia.lua old mode 100644 new mode 100755 diff --git a/biome_eastern_coasts.lua b/biome_eastern_coasts.lua old mode 100644 new mode 100755 diff --git a/biome_far_north_queensland.lua b/biome_far_north_queensland.lua old mode 100644 new mode 100755 index 94081b5..b7b65be --- a/biome_far_north_queensland.lua +++ b/biome_far_north_queensland.lua @@ -399,7 +399,6 @@ end -- Merbau aus.schematics.merbau_tree = {} local max_ht = 12 -local ht = 8 local r = 8 local tree = "australia:merbau_tree" local leaves = "australia:merbau_leaves" diff --git a/biome_flinders_lofty.lua b/biome_flinders_lofty.lua old mode 100644 new mode 100755 diff --git a/biome_goldfields_esperence.lua b/biome_goldfields_esperence.lua old mode 100644 new mode 100755 diff --git a/biome_great_australian_bight.lua b/biome_great_australian_bight.lua old mode 100644 new mode 100755 index 45f6e88..8755ce2 --- a/biome_great_australian_bight.lua +++ b/biome_great_australian_bight.lua @@ -39,6 +39,18 @@ minetest.register_ore({ y_max = -3, }) +minetest.register_ore({ + ore_type = "scatter", + ore = "australia:woodship", + wherein = "default:sandstone", + clust_scarcity = 30*30*30, + clust_num_ores = 1, + clust_size = 12, + biomes = {"great_australian_bight"}, + y_min = -64, + y_max = -6, +}) + -- @@ -66,3 +78,180 @@ action = function(pos, node, active_object_count, active_object_count_wider) end }) +minetest.register_abm({ +nodenames = {"australia:woodship"}, +interval = 1, +chance = 1, +action = function(pos, node, active_object_count, active_object_count_wider) +local yp = {x = pos.x, y = pos.y + 3, z = pos.z} + if minetest.get_node(pos).name == "australia:woodship" and + (minetest.get_node(yp).name == "default:water_source" or + minetest.get_node(yp).name == "australia:water_source") then + minetest.add_node(pos, {name = "default:sand"}) + + pos.y = pos.y + 1 + pos.x = pos.x - 6 + + for a = 1, 11 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + pos.z = pos.z + 1 + pos.x = pos.x - 10 + + for a = 1, 9 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + pos.z = pos.z - 2 + pos.x = pos.x - 9 + + for a = 1, 9 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + + pos.y = pos.y + 1 + pos.x = pos.x - 8 + pos.z = pos.z - 1 + + for a = 1, 7 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + pos.z = pos.z + 4 + pos.x = pos.x - 7 + + for a = 1, 7 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + pos.z = pos.z - 1 + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z - 1 + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 2 + minetest.add_node(pos, {name = "default:tree"}) + + pos.z = pos.z + 2 + pos.x = pos.x - 8 + minetest.add_node(pos, {name = "default:tree"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:tree"}) + + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:tree"}) + + pos.z = pos.z - 1 + pos.x = pos.x + 2 + minetest.add_node(pos, {name = "default:tree"}) + + + pos.y = pos.y + 1 + pos.z = pos.z - 1 + + for a = 1, 7 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.z = pos.z + 4 + pos.x = pos.x - 7 + + for a = 1, 7 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.z = pos.z - 1 + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z - 1 + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z + 2 + pos.x = pos.x - 8 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:wood"}) + + for a = 1, 3 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.z = pos.z - 1 + pos.x = pos.x + 4 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z + 1 + pos.x = pos.x + 3 + minetest.add_node(pos, {name = "default:wood"}) + + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.y = pos.y - 2 + minetest.add_node(pos, {name = "default:wood"}) + + pos.y = pos.y + 3 + pos.z = pos.z - 4 + + for a = 1, 7 do + pos.z = pos.z + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.z = pos.z - 3 + + for a = 1, 2 do + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.y = pos.y + 1 + pos.z = pos.z - 3 + + for a = 1, 5 do + pos.z = pos.z + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.y = pos.y + 1 + pos.z = pos.z - 2 + minetest.add_node(pos, {name = "default:wood"}) + + pos.y = pos.y - 7 + pos.z = pos.z + 1 + pos.x = pos.x - 2 + minetest.add_node(pos, {name = "australia:woodshipchest"}) + + else + return + end +end +}) + diff --git a/biome_great_barrier_reef.lua b/biome_great_barrier_reef.lua old mode 100644 new mode 100755 index e10a8bd..2b44957 --- a/biome_great_barrier_reef.lua +++ b/biome_great_barrier_reef.lua @@ -27,6 +27,18 @@ minetest.register_biome({ -- All mapgens except singlenode -- Blob ore first to avoid other ores inside blobs +minetest.register_ore({ + ore_type = "scatter", + ore = "australia:coral_stone_brain", + wherein = "default:sand", + clust_scarcity = 20*20*20, + clust_num_ores = 8, + clust_size = 3, + biomes = {"great_barrier_reef"}, + y_min = -12, + y_max = -3, +}) + minetest.register_ore({ ore_type = "scatter", ore = "australia:coral_stone_cauliflower_brown", @@ -65,7 +77,67 @@ minetest.register_ore({ minetest.register_ore({ ore_type = "scatter", - ore = "australia:coral_sand_staghorn_blue", + ore = "australia:coral_stone_cluster_green", + wherein = "default:sand", + clust_scarcity = 15*15*15, + clust_num_ores = 20, + clust_size = 4, + biomes = {"great_barrier_reef"}, + y_min = -8, + y_max = -2, +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "australia:coral_stone_cluster_orange", + wherein = "default:sand", + clust_scarcity = 15*15*15, + clust_num_ores = 20, + clust_size = 4, + biomes = {"great_barrier_reef"}, + y_min = -8, + y_max = -2, +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "australia:coral_stone_cluster_purple", + wherein = "default:sand", + clust_scarcity = 15*15*15, + clust_num_ores = 20, + clust_size = 4, + biomes = {"great_barrier_reef"}, + y_min = -8, + y_max = -2, +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "australia:coral_stone_hammer", + wherein = "default:sand", + clust_scarcity = 64*64*64, + clust_num_ores = 20, + clust_size = 12, + biomes = {"great_barrier_reef"}, + y_min = -10, + y_max = -2, +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "australia:coral_stone_seafan", + wherein = "default:sand", + clust_scarcity = 24*24*24, + clust_num_ores = 9, + clust_size = 3, + biomes = {"great_barrier_reef"}, + y_min = -10, + y_max = -5, +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "australia:coral_stone_staghorn_blue", wherein = "default:sand", clust_scarcity = 10*10*10, clust_num_ores = 24, @@ -77,7 +149,7 @@ minetest.register_ore({ minetest.register_ore({ ore_type = "scatter", - ore = "australia:coral_sand_staghorn_pink", + ore = "australia:coral_stone_staghorn_pink", wherein = "default:sand", clust_scarcity = 9*9*9, clust_num_ores = 25, @@ -89,7 +161,7 @@ minetest.register_ore({ minetest.register_ore({ ore_type = "scatter", - ore = "australia:coral_sand_staghorn_purple", + ore = "australia:coral_stone_staghorn_purple", wherein = "default:sand", clust_scarcity = 13*13*13, clust_num_ores = 20, @@ -101,7 +173,7 @@ minetest.register_ore({ minetest.register_ore({ ore_type = "scatter", - ore = "australia:coral_sand_staghorn_yellow", + ore = "australia:coral_stone_staghorn_yellow", wherein = "default:sand", clust_scarcity = 12*12*12, clust_num_ores = 22, @@ -111,22 +183,46 @@ minetest.register_ore({ y_max = -2, }) +minetest.register_ore({ + ore_type = "scatter", + ore = "australia:coral_stone_tube_sponge", + wherein = "default:sand", + clust_scarcity = 21*21*21, + clust_num_ores = 10, + clust_size = 2, + biomes = {"great_barrier_reef"}, + y_min = -15, + y_max = -3, +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "australia:woodship", + wherein = "default:sand", + clust_scarcity = 30*30*30, + clust_num_ores = 1, + clust_size = 12, + biomes = {"great_barrier_reef"}, + y_min = -64, + y_max = -6, +}) + -- -- Decorations -- - -- Brain Coral + -- Narrowleaf Seagrass minetest.register_decoration({ deco_type = "simple", place_on = {"default:sand"}, sidelen = 80, fill_ratio = 0.005, biomes = {"great_barrier_reef"}, - y_min = -12, - y_max = -3, - decoration = "australia:brain_coral", + y_min = -10, + y_max = -2, + decoration = "australia:sea_grass", flags = "force_placement", }) @@ -137,7 +233,7 @@ minetest.register_decoration({ -- minetest.register_abm({ -nodenames = {"australia:coral_sand_staghorn_blue"}, +nodenames = {"australia:coral_stone_brain"}, interval = 15, chance = 5, action = function(pos, node, active_object_count, active_object_count_wider) @@ -145,52 +241,7 @@ action = function(pos, node, active_object_count, active_object_count_wider) if (minetest.get_node(yp).name == "default:water_source" or minetest.get_node(yp).name == "australia:water_source") then pos.y = pos.y + 1 - minetest.add_node(pos, {name = "australia:staghorn_coral_blue"}) else - return - end -end -}) - -minetest.register_abm({ -nodenames = {"australia:coral_sand_staghorn_pink"}, -interval = 15, -chance = 5, -action = function(pos, node, active_object_count, active_object_count_wider) - local yp = {x = pos.x, y = pos.y + 1, z = pos.z} - if (minetest.get_node(yp).name == "default:water_source" or - minetest.get_node(yp).name == "australia:water_source") then - pos.y = pos.y + 1 - minetest.add_node(pos, {name = "australia:staghorn_coral_pink"}) else - return - end -end -}) - -minetest.register_abm({ -nodenames = {"australia:coral_sand_staghorn_purple"}, -interval = 15, -chance = 5, -action = function(pos, node, active_object_count, active_object_count_wider) - local yp = {x = pos.x, y = pos.y + 1, z = pos.z} - if (minetest.get_node(yp).name == "default:water_source" or - minetest.get_node(yp).name == "australia:water_source") then - pos.y = pos.y + 1 - minetest.add_node(pos, {name = "australia:staghorn_coral_purple"}) else - return - end -end -}) - -minetest.register_abm({ -nodenames = {"australia:coral_sand_staghorn_yellow"}, -interval = 15, -chance = 5, -action = function(pos, node, active_object_count, active_object_count_wider) - local yp = {x = pos.x, y = pos.y + 1, z = pos.z} - if (minetest.get_node(yp).name == "default:water_source" or - minetest.get_node(yp).name == "australia:water_source") then - pos.y = pos.y + 1 - minetest.add_node(pos, {name = "australia:staghorn_coral_yellow"}) else + minetest.add_node(pos, {name = "australia:brain_coral"}) else return end end @@ -241,6 +292,156 @@ action = function(pos, node, active_object_count, active_object_count_wider) end }) +minetest.register_abm({ +nodenames = {"australia:coral_stone_cluster_green"}, +interval = 15, +chance = 5, +action = function(pos, node, active_object_count, active_object_count_wider) + local yp = {x = pos.x, y = pos.y + 1, z = pos.z} + if (minetest.get_node(yp).name == "default:water_source" or + minetest.get_node(yp).name == "australia:water_source") then + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "australia:cluster_coral_green"}) else + return + end +end +}) + +minetest.register_abm({ +nodenames = {"australia:coral_stone_cluster_orange"}, +interval = 15, +chance = 5, +action = function(pos, node, active_object_count, active_object_count_wider) + local yp = {x = pos.x, y = pos.y + 1, z = pos.z} + if (minetest.get_node(yp).name == "default:water_source" or + minetest.get_node(yp).name == "australia:water_source") then + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "australia:cluster_coral_orange"}) else + return + end +end +}) + +minetest.register_abm({ +nodenames = {"australia:coral_stone_cluster_purple"}, +interval = 15, +chance = 5, +action = function(pos, node, active_object_count, active_object_count_wider) + local yp = {x = pos.x, y = pos.y + 1, z = pos.z} + if (minetest.get_node(yp).name == "default:water_source" or + minetest.get_node(yp).name == "australia:water_source") then + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "australia:cluster_coral_purple"}) else + return + end +end +}) + +minetest.register_abm({ +nodenames = {"australia:coral_stone_hammer"}, +interval = 15, +chance = 5, +action = function(pos, node, active_object_count, active_object_count_wider) + local yp = {x = pos.x, y = pos.y + 1, z = pos.z} + if (minetest.get_node(yp).name == "default:water_source" or + minetest.get_node(yp).name == "australia:water_source") then + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "australia:hammer_coral"}) else + return + end +end +}) + +minetest.register_abm({ +nodenames = {"australia:coral_stone_seafan"}, +interval = 15, +chance = 5, +action = function(pos, node, active_object_count, active_object_count_wider) + local yp = {x = pos.x, y = pos.y + 1, z = pos.z} + if (minetest.get_node(yp).name == "default:water_source" or + minetest.get_node(yp).name == "australia:water_source") then + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "australia:seafan_coral"}) else + return + end +end +}) + +minetest.register_abm({ +nodenames = {"australia:coral_stone_staghorn_blue"}, +interval = 15, +chance = 5, +action = function(pos, node, active_object_count, active_object_count_wider) + local yp = {x = pos.x, y = pos.y + 1, z = pos.z} + if (minetest.get_node(yp).name == "default:water_source" or + minetest.get_node(yp).name == "australia:water_source") then + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "australia:staghorn_coral_blue"}) else + return + end +end +}) + +minetest.register_abm({ +nodenames = {"australia:coral_stone_staghorn_pink"}, +interval = 15, +chance = 5, +action = function(pos, node, active_object_count, active_object_count_wider) + local yp = {x = pos.x, y = pos.y + 1, z = pos.z} + if (minetest.get_node(yp).name == "default:water_source" or + minetest.get_node(yp).name == "australia:water_source") then + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "australia:staghorn_coral_pink"}) else + return + end +end +}) + +minetest.register_abm({ +nodenames = {"australia:coral_stone_staghorn_purple"}, +interval = 15, +chance = 5, +action = function(pos, node, active_object_count, active_object_count_wider) + local yp = {x = pos.x, y = pos.y + 1, z = pos.z} + if (minetest.get_node(yp).name == "default:water_source" or + minetest.get_node(yp).name == "australia:water_source") then + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "australia:staghorn_coral_purple"}) else + return + end +end +}) + +minetest.register_abm({ +nodenames = {"australia:coral_stone_staghorn_yellow"}, +interval = 15, +chance = 5, +action = function(pos, node, active_object_count, active_object_count_wider) + local yp = {x = pos.x, y = pos.y + 1, z = pos.z} + if (minetest.get_node(yp).name == "default:water_source" or + minetest.get_node(yp).name == "australia:water_source") then + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "australia:staghorn_coral_yellow"}) else + return + end +end +}) + +minetest.register_abm({ +nodenames = {"australia:coral_stone_tube_sponge"}, +interval = 15, +chance = 5, +action = function(pos, node, active_object_count, active_object_count_wider) + local yp = {x = pos.x, y = pos.y + 1, z = pos.z} + if (minetest.get_node(yp).name == "default:water_source" or + minetest.get_node(yp).name == "australia:water_source") then + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "australia:tube_sponge"}) else + return + end +end +}) + minetest.register_abm({ nodenames = {"group:coral"}, interval = 3, diff --git a/biome_great_dividing_range.lua b/biome_great_dividing_range.lua old mode 100644 new mode 100755 diff --git a/biome_gulf_of_carpentaria.lua b/biome_gulf_of_carpentaria.lua old mode 100644 new mode 100755 diff --git a/biome_indian_ocean.lua b/biome_indian_ocean.lua old mode 100644 new mode 100755 index 03245ab..b20744b --- a/biome_indian_ocean.lua +++ b/biome_indian_ocean.lua @@ -39,6 +39,18 @@ minetest.register_ore({ y_max = -3, }) +minetest.register_ore({ + ore_type = "scatter", + ore = "australia:woodship", + wherein = "default:sand", + clust_scarcity = 30*30*30, + clust_num_ores = 1, + clust_size = 12, + biomes = {"indian_ocean"}, + y_min = -64, + y_max = -6, +}) + -- @@ -94,6 +106,19 @@ register_dry_grass_decoration(0.01, 0.05, 5) register_dry_grass_decoration(0.03, 0.03, 4) register_dry_grass_decoration(0.05, 0.01, 3) + -- Narrowleaf Seagrass +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:sand"}, + sidelen = 80, + fill_ratio = 0.01, + biomes = {"indian_ocean"}, + y_min = -10, + y_max = -2, + decoration = "australia:sea_grass", + flags = "force_placement", +}) + -- @@ -115,3 +140,180 @@ action = function(pos, node, active_object_count, active_object_count_wider) end }) +minetest.register_abm({ +nodenames = {"australia:woodship"}, +interval = 1, +chance = 1, +action = function(pos, node, active_object_count, active_object_count_wider) +local yp = {x = pos.x, y = pos.y + 3, z = pos.z} + if minetest.get_node(pos).name == "australia:woodship" and + (minetest.get_node(yp).name == "default:water_source" or + minetest.get_node(yp).name == "australia:water_source") then + minetest.add_node(pos, {name = "default:sand"}) + + pos.y = pos.y + 1 + pos.x = pos.x - 6 + + for a = 1, 11 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + pos.z = pos.z + 1 + pos.x = pos.x - 10 + + for a = 1, 9 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + pos.z = pos.z - 2 + pos.x = pos.x - 9 + + for a = 1, 9 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + + pos.y = pos.y + 1 + pos.x = pos.x - 8 + pos.z = pos.z - 1 + + for a = 1, 7 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + pos.z = pos.z + 4 + pos.x = pos.x - 7 + + for a = 1, 7 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + pos.z = pos.z - 1 + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z - 1 + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 2 + minetest.add_node(pos, {name = "default:tree"}) + + pos.z = pos.z + 2 + pos.x = pos.x - 8 + minetest.add_node(pos, {name = "default:tree"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:tree"}) + + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:tree"}) + + pos.z = pos.z - 1 + pos.x = pos.x + 2 + minetest.add_node(pos, {name = "default:tree"}) + + + pos.y = pos.y + 1 + pos.z = pos.z - 1 + + for a = 1, 7 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.z = pos.z + 4 + pos.x = pos.x - 7 + + for a = 1, 7 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.z = pos.z - 1 + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z - 1 + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z + 2 + pos.x = pos.x - 8 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:wood"}) + + for a = 1, 3 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.z = pos.z - 1 + pos.x = pos.x + 4 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z + 1 + pos.x = pos.x + 3 + minetest.add_node(pos, {name = "default:wood"}) + + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.y = pos.y - 2 + minetest.add_node(pos, {name = "default:wood"}) + + pos.y = pos.y + 3 + pos.z = pos.z - 4 + + for a = 1, 7 do + pos.z = pos.z + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.z = pos.z - 3 + + for a = 1, 2 do + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.y = pos.y + 1 + pos.z = pos.z - 3 + + for a = 1, 5 do + pos.z = pos.z + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.y = pos.y + 1 + pos.z = pos.z - 2 + minetest.add_node(pos, {name = "default:wood"}) + + pos.y = pos.y - 7 + pos.z = pos.z + 1 + pos.x = pos.x - 2 + minetest.add_node(pos, {name = "australia:woodshipchest"}) + + else + return + end +end +}) + diff --git a/biome_jarrah_karri_forests.lua b/biome_jarrah_karri_forests.lua old mode 100644 new mode 100755 diff --git a/biome_kimberley.lua b/biome_kimberley.lua old mode 100644 new mode 100755 diff --git a/biome_mangroves.lua b/biome_mangroves.lua old mode 100644 new mode 100755 diff --git a/biome_mulga_lands.lua b/biome_mulga_lands.lua old mode 100644 new mode 100755 diff --git a/biome_murray_darling_basin.lua b/biome_murray_darling_basin.lua old mode 100644 new mode 100755 diff --git a/biome_pilbara.lua b/biome_pilbara.lua old mode 100644 new mode 100755 diff --git a/biome_simpson_desert.lua b/biome_simpson_desert.lua old mode 100644 new mode 100755 diff --git a/biome_tasman_sea.lua b/biome_tasman_sea.lua old mode 100644 new mode 100755 index 65dd20d..b43d238 --- a/biome_tasman_sea.lua +++ b/biome_tasman_sea.lua @@ -51,6 +51,18 @@ minetest.register_ore({ y_max = -8, }) +minetest.register_ore({ + ore_type = "scatter", + ore = "australia:woodship", + wherein = "default:sand", + clust_scarcity = 60*60*60, + clust_num_ores = 1, + clust_size = 12, + biomes = {"tasman_sea"}, + y_min = -64, + y_max = -6, +}) + -- @@ -167,3 +179,181 @@ action = function(pos, node, active_object_count, active_object_count_wider) end end }) + +minetest.register_abm({ +nodenames = {"australia:woodship"}, +interval = 1, +chance = 1, +action = function(pos, node, active_object_count, active_object_count_wider) +local yp = {x = pos.x, y = pos.y + 3, z = pos.z} + if minetest.get_node(pos).name == "australia:woodship" and + (minetest.get_node(yp).name == "default:water_source" or + minetest.get_node(yp).name == "australia:water_source") then + minetest.add_node(pos, {name = "default:sand"}) + + pos.y = pos.y + 1 + pos.x = pos.x - 6 + + for a = 1, 11 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + pos.z = pos.z + 1 + pos.x = pos.x - 10 + + for a = 1, 9 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + pos.z = pos.z - 2 + pos.x = pos.x - 9 + + for a = 1, 9 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + + pos.y = pos.y + 1 + pos.x = pos.x - 8 + pos.z = pos.z - 1 + + for a = 1, 7 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + pos.z = pos.z + 4 + pos.x = pos.x - 7 + + for a = 1, 7 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + end + + pos.z = pos.z - 1 + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z - 1 + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:tree"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 2 + minetest.add_node(pos, {name = "default:tree"}) + + pos.z = pos.z + 2 + pos.x = pos.x - 8 + minetest.add_node(pos, {name = "default:tree"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:tree"}) + + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:tree"}) + + pos.z = pos.z - 1 + pos.x = pos.x + 2 + minetest.add_node(pos, {name = "default:tree"}) + + + pos.y = pos.y + 1 + pos.z = pos.z - 1 + + for a = 1, 7 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.z = pos.z + 4 + pos.x = pos.x - 7 + + for a = 1, 7 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.z = pos.z - 1 + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z - 1 + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z + 2 + pos.x = pos.x - 8 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:wood"}) + + for a = 1, 3 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.z = pos.z - 1 + pos.x = pos.x + 4 + minetest.add_node(pos, {name = "default:wood"}) + + pos.z = pos.z + 1 + pos.x = pos.x + 3 + minetest.add_node(pos, {name = "default:wood"}) + + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "default:wood"}) + + pos.y = pos.y - 2 + minetest.add_node(pos, {name = "default:wood"}) + + pos.y = pos.y + 3 + pos.z = pos.z - 4 + + for a = 1, 7 do + pos.z = pos.z + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.z = pos.z - 3 + + for a = 1, 2 do + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.y = pos.y + 1 + pos.z = pos.z - 3 + + for a = 1, 5 do + pos.z = pos.z + 1 + minetest.add_node(pos, {name = "default:wood"}) + end + + pos.y = pos.y + 1 + pos.z = pos.z - 2 + minetest.add_node(pos, {name = "default:wood"}) + + pos.y = pos.y - 7 + pos.z = pos.z + 1 + pos.x = pos.x - 2 + minetest.add_node(pos, {name = "australia:woodshipchest"}) + + else + return + end +end +}) + diff --git a/biome_tasmania.lua b/biome_tasmania.lua old mode 100644 new mode 100755 diff --git a/biome_timor_sea.lua b/biome_timor_sea.lua old mode 100644 new mode 100755 index 682eedc..9f1b4d4 --- a/biome_timor_sea.lua +++ b/biome_timor_sea.lua @@ -27,6 +27,18 @@ minetest.register_biome({ -- All mapgens except singlenode -- Blob ore first to avoid other ores inside blobs +minetest.register_ore({ + ore_type = "scatter", + ore = "australia:submarine", + wherein = "default:sand", + clust_scarcity = 80*80*80, + clust_num_ores = 1, + clust_size = 12, + biomes = {"timor_sea"}, + y_min = -64, + y_max = -8, +}) + -- @@ -60,3 +72,591 @@ register_grass_decoration(0, 0.06, 3) register_grass_decoration(0.015, 0.045, 2) register_grass_decoration(0.03, 0.03, 1) + -- Narrowleaf Seagrass +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:sand"}, + sidelen = 80, + fill_ratio = 0.02, + biomes = {"timor_sea"}, + y_min = -10, + y_max = -2, + decoration = "australia:sea_grass", + flags = "force_placement", +}) + + + +-- +-- ABM'S +-- + +local function place_submarine(pos) + minetest.add_node(pos, {name = "default:dirt"}) + + pos.y = pos.y + 1 + pos.x = pos.x - 15 + + for a = 1, 31 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z + 1 + pos.x = pos.x + 1 + + for a = 1, 31 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z + 1 + pos.x = pos.x +1 + + for a = 1, 27 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z - 3 + pos.x = pos.x + 1 + + for a = 1, 27 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z - 1 + pos.x = pos.x + 2 + + for a = 1, 21 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z + 5 + pos.x = pos.x + 1 + + for a = 1, 21 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.y = pos.y + 1 + pos.z = pos.z + 1 + pos.x = pos.x - 1 + + for a = 1, 21 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z - 7 + pos.x = pos.x + 1 + + for a = 1, 21 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z + 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x + 24 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.z = pos.z + 5 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x - 22 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x + 29 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.z = pos.z - 3 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x - 28 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.z = pos.z + 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x + 32 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.z = pos.z + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x - 32 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.y = pos.y + 1 + minetest.add_node(pos, {name = "default:steelblock"}) + + pos.x = pos.x + 32 + minetest.add_node(pos, {name = "default:steelblock"}) + + pos.z = pos.z - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + + pos.x = pos.x - 32 + minetest.add_node(pos, {name = "default:steelblock"}) + + pos.z = pos.z - 1 + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:steelblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:steelblock"}) + + pos.x = pos.x + 28 + minetest.add_node(pos, {name = "default:steelblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:steelblock"}) + + pos.z = pos.z + 3 + minetest.add_node(pos, {name = "default:steelblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + + pos.x = pos.x - 28 + minetest.add_node(pos, {name = "default:steelblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + + pos.z = pos.z + 1 + pos.x = pos.x + 2 + minetest.add_node(pos, {name = "default:steelblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:obsidian_glass"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:steelblock"}) + + pos.x = pos.x + 22 + minetest.add_node(pos, {name = "default:steelblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:obsidian_glass"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:steelblock"}) + + pos.z = pos.z + 1 + pos.x = pos.x - 2 + for a = 1, 3 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:obsidian_glass"}) + + for a = 1, 3 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:obsidian_glass"}) + + for a = 1, 3 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:obsidian_glass"}) + + for a = 1, 9 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.z = pos.z - 6 + pos.x = pos.x - 3 + minetest.add_node(pos, {name = "default:steelblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:obsidian_glass"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:steelblock"}) + + pos.x = pos.x + 22 + minetest.add_node(pos, {name = "default:steelblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:obsidian_glass"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:steelblock"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 2 + + for a = 1, 3 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:obsidian_glass"}) + + for a = 1, 3 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:obsidian_glass"}) + + for a = 1, 3 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:obsidian_glass"}) + + for a = 1, 9 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.y = pos.y + 1 + pos.z = pos.z + 7 + pos.x = pos.x - 1 + for a = 1, 21 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z - 7 + pos.x = pos.x + 1 + + for a = 1, 21 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z + 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x + 24 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.z = pos.z + 5 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x - 22 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.z = pos.z - 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x + 29 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.z = pos.z - 3 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x - 28 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.z = pos.z + 1 + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x + 32 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.z = pos.z + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x - 32 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.y = pos.y + 1 + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x + 28 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.z = pos.z - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x - 28 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.z = pos.z - 1 + pos.x = pos.x + 2 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x + 22 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.z = pos.z + 3 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.x = pos.x - 22 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + + pos.z = pos.z + 1 + pos.x = pos.x + 2 + for a = 1, 21 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z - 5 + pos.x = pos.x + 1 + for a = 1, 21 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.y = pos.y + 1 + pos.z = pos.z + 2 + pos.x = pos.x - 4 + for a = 1, 3 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.x = pos.x + 21 + for a = 1, 3 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z + 1 + pos.x = pos.x + 1 + for a = 1, 3 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.x = pos.x - 21 + for a = 1, 3 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z + 2 + pos.x = pos.x + 3 + for a = 1, 4 do + pos.z = pos.z - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z - 1 + pos.x = pos.x + 1 + for a = 1, 4 do + pos.z = pos.z + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.x = pos.x + 6 + for a = 1, 13 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z - 3 + pos.x = pos.x + 1 + for a = 1, 13 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:copperblock"}) + end + + pos.z = pos.z + 1 + pos.x = pos.x - 1 + for a = 1, 13 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:bronzeblock"}) + end + + pos.z = pos.z + 1 + pos.x = pos.x + 1 + for a = 1, 13 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:bronzeblock"}) + end + + pos.z = pos.z - 3 + for a = 1, 6 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.z = pos.z + 5 + pos.x = pos.x - 1 + for a = 1, 6 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.y = pos.y + 1 + for a = 1, 4 do + pos.z = pos.z - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.x = pos.x - 5 + pos.z = pos.z - 1 + for a = 1, 4 do + pos.z = pos.z + 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + for a = 1, 4 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.x = pos.x + 1 + pos.z = pos.z - 3 + for a = 1, 4 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.y = pos.y + 1 + pos.x = pos.x - 1 + pos.z = pos.z - 1 + for a = 1, 4 do + pos.z = pos.z + 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.x = pos.x + 5 + pos.z = pos.z + 1 + for a = 1, 4 do + pos.z = pos.z - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + for a = 1, 4 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.x = pos.x - 1 + pos.z = pos.z + 3 + for a = 1, 4 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.y = pos.y + 1 + pos.x = pos.x - 1 + pos.z = pos.z - 1 + for a = 1, 2 do + pos.x = pos.x - 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.x = pos.x - 1 + pos.z = pos.z - 1 + for a = 1, 2 do + pos.x = pos.x + 1 + minetest.add_node(pos, {name = "default:steelblock"}) + end + + pos.y = pos.y - 7 + pos.x = pos.x +16 + pos.z = pos.z +3 + minetest.add_node(pos, {name = "australia:submarinechest"}) +end + +minetest.register_abm({ + nodenames = {"australia:submarine"}, + interval = 1, + chance = 1, + action = function(pos, node) + local yp = {x = pos.x, y = pos.y + 8, z = pos.z} + if node.name == "australia:submarine" + and ( + minetest.get_node(yp).name == "default:water_source" + or minetest.get_node(yp).name == "australia:water_source" + ) then + place_submarine(pos) + end + end +}) diff --git a/biome_underground.lua b/biome_underground.lua old mode 100644 new mode 100755 diff --git a/biome_victorian_forests.lua b/biome_victorian_forests.lua old mode 100644 new mode 100755 diff --git a/crafting.lua b/crafting.lua old mode 100644 new mode 100755 diff --git a/craftitems.lua b/craftitems.lua old mode 100644 new mode 100755 diff --git a/depends.txt b/depends.txt old mode 100644 new mode 100755 diff --git a/functions.lua b/functions.lua old mode 100644 new mode 100755 diff --git a/init.lua b/init.lua old mode 100644 new mode 100755 index dd21cc9..a37a331 --- a/init.lua +++ b/init.lua @@ -2,7 +2,7 @@ -- MOD: australia -- See README.md for licensing and other information. --- Designed for valleys mapgen in Minetest 0.4.13-dev, but will work with mgv5, +-- Designed for valleys mapgen in Minetest 0.4.14, but will work with mgv5, -- mgv7, flat and fractal with limitations. -- Check for necessary mod functions and abort if they aren't available. @@ -22,11 +22,11 @@ aus.schematics = {} -- Set the following to 1 to enable biome or 0 to disable aus.biome_underground = 1 -aus.biome_mangroves = 1 -aus.biome_tasman_sea = 1 -aus.biome_great_australian_bight = 1 -aus.biome_indian_ocean = 1 -aus.biome_great_barrier_reef = 1 +aus.biome_mangroves = 0 +aus.biome_tasman_sea = 0 +aus.biome_great_australian_bight = 0 +aus.biome_indian_ocean = 0 +aus.biome_great_barrier_reef = 0 aus.biome_timor_sea = 1 aus.biome_jarrah_karri_forests = 1 aus.biome_eastern_coasts = 1 diff --git a/mapgen.lua b/mapgen.lua old mode 100644 new mode 100755 diff --git a/mod.conf b/mod.conf old mode 100644 new mode 100755 diff --git a/noairblocks.lua b/noairblocks.lua old mode 100644 new mode 100755 diff --git a/nodes.lua b/nodes.lua old mode 100644 new mode 100755 index 4979998..7fcceac --- a/nodes.lua +++ b/nodes.lua @@ -53,6 +53,69 @@ minetest.register_node("australia:bluestone_brick", { sounds = default.node_sound_stone_defaults(), }) +minetest.register_node("australia:coral_stone_brain", { + description = "Sea coral stone", + tiles = {"aus_coral_stone.png"}, + is_ground_content = true, + groups = {cracky=3, stone=1, not_in_creative_inventory=1}, + drop = 'default:stone', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("australia:coral_stone_cluster_green", { + description = "Sea coral stone", + tiles = {"aus_coral_stone.png"}, + is_ground_content = true, + groups = {cracky=3, stone=1, not_in_creative_inventory=1}, + drop = 'default:stone', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("australia:coral_stone_cluster_orange", { + description = "Sea coral stone", + tiles = {"aus_coral_stone.png"}, + is_ground_content = true, + groups = {cracky=3, stone=1, not_in_creative_inventory=1}, + drop = 'default:stone', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("australia:coral_stone_cluster_purple", { + description = "Sea coral stone", + tiles = {"aus_coral_stone.png"}, + is_ground_content = true, + groups = {cracky=3, stone=1, not_in_creative_inventory=1}, + drop = 'default:stone', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("australia:coral_stone_hammer", { + description = "Sea coral stone", + tiles = {"aus_coral_stone.png"}, + is_ground_content = true, + groups = {cracky=3, stone=1, not_in_creative_inventory=1}, + drop = 'default:stone', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("australia:coral_stone_seafan", { + description = "Sea coral stone", + tiles = {"aus_coral_stone.png"}, + is_ground_content = true, + groups = {cracky=3, stone=1, not_in_creative_inventory=1}, + drop = 'default:stone', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("australia:coral_stone_tube_sponge", { + description = "Sea coral stone", + tiles = {"aus_coral_stone.png"}, + is_ground_content = true, + groups = {cracky=3, stone=1, not_in_creative_inventory=1}, + drop = 'default:stone', + sounds = default.node_sound_stone_defaults(), +}) + minetest.register_node("australia:coral_stone_cauliflower_brown", { description = "Sea coral stone", tiles = {"aus_coral_stone.png"}, @@ -80,6 +143,42 @@ minetest.register_node("australia:coral_stone_cauliflower_pink", { sounds = default.node_sound_stone_defaults(), }) +minetest.register_node("australia:coral_stone_staghorn_blue", { + description = "Sea coral stone", + tiles = {"aus_coral_stone.png"}, + is_ground_content = true, + groups = {cracky=3, stone=1, not_in_creative_inventory=1}, + drop = 'default:stone', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("australia:coral_stone_staghorn_pink", { + description = "Sea coral stone", + tiles = {"aus_coral_stone.png"}, + is_ground_content = true, + groups = {cracky=3, stone=1, not_in_creative_inventory=1}, + drop = 'default:stone', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("australia:coral_stone_staghorn_purple", { + description = "Sea coral stone", + tiles = {"aus_coral_stone.png"}, + is_ground_content = true, + groups = {cracky=3, stone=1, not_in_creative_inventory=1}, + drop = 'default:stone', + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("australia:coral_stone_staghorn_yellow", { + description = "Sea coral stone", + tiles = {"aus_coral_stone.png"}, + is_ground_content = true, + groups = {cracky=3, stone=1, not_in_creative_inventory=1}, + drop = 'default:stone', + sounds = default.node_sound_stone_defaults(), +}) + minetest.register_node("australia:stone_kelp_brown", { description = "Sea stone", tiles = {"aus_coral_stone.png"}, @@ -138,44 +237,22 @@ minetest.register_node("australia:mangrove_mud", { }), }) -minetest.register_node("australia:coral_sand_staghorn_blue", { - description = "Sea coral sand", - tiles = {"aus_coral_sand.png"}, +minetest.register_node("australia:woodship", { + description = "Sand for the wooden ship", + tiles = {"default_sand.png"}, is_ground_content = true, groups = {crumbly=3, falling_node=1, sand=1, soil=1, not_in_creative_inventory=1}, - drop = 'default:sand', sounds = default.node_sound_sand_defaults(), }) -minetest.register_node("australia:coral_sand_staghorn_pink", { - description = "Sea coral sand", - tiles = {"aus_coral_sand.png"}, +minetest.register_node("australia:submarine", { + description = "Dirt for the submarine", + tiles = {"default_dirt.png"}, is_ground_content = true, - groups = {crumbly=3, falling_node=1, sand=1, soil=1, not_in_creative_inventory=1}, - drop = 'default:sand', - sounds = default.node_sound_sand_defaults(), + groups = {crumbly=3,soil=1, not_in_creative_inventory=1}, + sounds = default.node_sound_dirt_defaults(), }) -minetest.register_node("australia:coral_sand_staghorn_purple", { - description = "Sea coral sand", - tiles = {"aus_coral_sand.png"}, - is_ground_content = true, - groups = {crumbly=3, falling_node=1, sand=1, soil=1, not_in_creative_inventory=1}, - drop = 'default:sand', - sounds = default.node_sound_sand_defaults(), -}) - -minetest.register_node("australia:coral_sand_staghorn_yellow", { - description = "Sea coral sand", - tiles = {"aus_coral_sand.png"}, - is_ground_content = true, - groups = {crumbly=3, falling_node=1, sand=1, soil=1, not_in_creative_inventory=1}, - drop = 'default:sand', - sounds = default.node_sound_sand_defaults(), -}) - - - -- -- Trees -- @@ -1085,6 +1162,66 @@ minetest.register_node("australia:cauliflower_coral_pink", { }, }) + -- Acropora millepora: Cluster Coral (green) +minetest.register_node("australia:cluster_coral_green", { + description = "Acropora millepora: Cluster Coral", + drawtype = "plantlike", + tiles = {"aus_cluster_coral_green.png"}, + inventory_image = "aus_cluster_coral_green.png", + wield_image = "aus_cluster_coral_green.png", + paramtype = "light", + walkable = false, + climable = true, + drowning = 1, + is_ground_content = true, + groups = {cracky = 3, coral = 1, stone = 1, attached_node = 1, sea = 1}, + sounds = default.node_sound_stone_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5}, + }, +}) + + -- Acropora millepora: Cluster Coral (orange) +minetest.register_node("australia:cluster_coral_orange", { + description = "Acropora millepora: Cluster Coral", + drawtype = "plantlike", + tiles = {"aus_cluster_coral_orange.png"}, + inventory_image = "aus_cluster_coral_orange.png", + wield_image = "aus_cluster_coral_orange.png", + paramtype = "light", + walkable = false, + climable = true, + drowning = 1, + is_ground_content = true, + groups = {cracky = 3, coral = 1, stone = 1, attached_node = 1, sea = 1}, + sounds = default.node_sound_stone_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5}, + }, +}) + + -- Acropora millepora: Cluster Coral (purple) +minetest.register_node("australia:cluster_coral_purple", { + description = "Acropora millepora: Cluster Coral", + drawtype = "plantlike", + tiles = {"aus_cluster_coral_purple.png"}, + inventory_image = "aus_cluster_coral_purple.png", + wield_image = "aus_cluster_coral_purple.png", + paramtype = "light", + walkable = false, + climable = true, + drowning = 1, + is_ground_content = true, + groups = {cracky = 3, coral = 1, stone = 1, attached_node = 1, sea = 1}, + sounds = default.node_sound_stone_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5}, + }, +}) + -- Acropora cervicornis: Staghorn Coral (blue) minetest.register_node("australia:staghorn_coral_blue", { description = "Acropora cervicornis: Staghorn Coral", @@ -1177,6 +1314,102 @@ minetest.register_node("australia:staghorn_coral_yellow", { }, }) + -- Acabaria sp.: Sea Fan +minetest.register_node("australia:seafan_coral", { + description = "Acabaria sp.: Sea Fan", + drawtype = "plantlike", + waving = 0, + visual_scale = 1.0, + tiles = {"aus_seafan_coral.png"}, + inventory_image = "aus_seafan_coral.png", + wield_image = "aus_seafan_coral.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + climable = true, + buildable_to = false, + drowning = 1, + is_ground_content = true, + groups = {snappy = 3, coral = 1, attached_node = 1, sea = 1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5}, + }, +}) + + -- Euphyllia ancora: Hammer coral +minetest.register_node("australia:hammer_coral", { + description = "Euphyllia ancora: Hammer coral", + drawtype = "plantlike", + waving = 0, + visual_scale = 1.0, + tiles = {"aus_hammer_coral.png"}, + inventory_image = "aus_hammer_coral.png", + wield_image = "aus_hammer_coral.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + climable = true, + buildable_to = false, + drowning = 1, + is_ground_content = true, + groups = {snappy = 3, coral = 1, attached_node = 1, sea = 1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5}, + }, +}) + + -- Pipestela candelabra: Bob Marley Sponge +minetest.register_node("australia:tube_sponge", { + description = "Pipestela candelabra: Bob Marley Sponge", + drawtype = "plantlike", + waving = 0, + visual_scale = 1.0, + tiles = {"aus_tube_sponge.png"}, + inventory_image = "aus_tube_sponge.png", + wield_image = "aus_tube_sponge.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + climable = true, + buildable_to = false, + drowning = 1, + is_ground_content = true, + groups = {snappy = 3, coral = 1, attached_node = 1, sea = 1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5}, + }, +}) + + -- Halodule uninervis: Narrowleaf Seagrass +minetest.register_node("australia:sea_grass", { + description = "Halodule uninervis: Narrowleaf Seagrass", + drawtype = "plantlike", + waving = 1, + visual_scale = 1.0, + tiles = {"aus_sea_grass.png"}, + inventory_image = "aus_sea_grass.png", + wield_image = "aus_sea_grass.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + climable = true, + buildable_to = false, + drowning = 1, + is_ground_content = true, + groups = {snappy = 3, attached_node = 1, sea = 1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5}, + }, +}) + -- @@ -1280,6 +1513,124 @@ minetest.register_node("australia:muddy_river_water_flowing", { -- Tools / "Advanced" crafting / Non-"natural" -- +minetest.register_node("australia:woodshipchest", { + description = "Wooden ship chest", + tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png", + "default_chest_side.png", "default_chest_side.png", "default_chest_front.png"}, + paramtype2 = "facedir", + groups = {choppy=2,oddly_breakable_by_hand=2, not_in_creative_inventory=1}, + drop = 'default:chest', + legacy_facedir_simple = true, + is_ground_content = false, + sounds = default.node_sound_wood_defaults(), + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", + "size[8,9]".. + "list[current_name;main;0,0;8,4;]".. + "list[current_player;main;0,5;8,4;]") + meta:set_string("infotext", "Woodship chest") + local inv = meta:get_inventory() + inv:set_size("main", 8*4) + local contents = {} + if math.random(1,100) <= 25 then + contents = {main = {[1] = "default:coal_lump 36"}} + elseif math.random(1,100) >= 26 or math.random(1,100) <= 40 then + contents = {main = {[1] = "default:iron_lump 24"}} + elseif math.random(1,100) >= 41 or math.random(1,100) <= 45 then + contents = {main = {[1] = "default:gold_lump 24"}} + elseif math.random(1,100) >= 46 or math.random(1,100) <= 50 then + contents = {main = {[1] = "default:diamond 24"}} + elseif math.random(1,100) >= 51 or math.random(1,100) <= 60 then + contents = {main = {[1] = "australia:huon_pine_tree 18"}} + elseif math.random(1,100) >= 61 or math.random(1,100) <= 70 then + contents = {main = {[1] = "australia:jarrah_tree 18"}} + elseif math.random(1,100) >= 71 or math.random(1,100) <= 80 then + contents = {main = {[1] = "australia:marri_tree 18"}} + elseif math.random(1,100) >= 81 or math.random(1,100) <= 90 then + contents = {main = {[1] = "australia:merbau_tree 18"}} + else + contents = {main = {[1] = "australia:river_red_gum_tree 18"}} + end +meta:from_table({ + inventory = contents, + fields = { + formspec = "size[8,9;]list[context;main;0,0;8,4;]list[current_player;main;0,5;8,4;]", + infotext = "Normal chest" + } +}) + end, + can_dig = function(pos,player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + return inv:is_empty("main") + end, + on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + minetest.log("action", player:get_player_name().. + " moves stuff in chest at "..minetest.pos_to_string(pos)) + end, + on_metadata_inventory_put = function(pos, listname, index, stack, player) + minetest.log("action", player:get_player_name().. + " moves stuff to chest at "..minetest.pos_to_string(pos)) + end, + on_metadata_inventory_take = function(pos, listname, index, stack, player) + minetest.log("action", player:get_player_name().. + " takes stuff from chest at "..minetest.pos_to_string(pos)) + end, +}) + +minetest.register_node("australia:submarinechest", { + description = "U-boot chest", + tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png", + "default_chest_side.png", "default_chest_side.png", "default_chest_front.png"}, + paramtype2 = "facedir", + groups = {choppy=2,oddly_breakable_by_hand=2, not_in_creative_inventory=1}, + drop = 'default:chest', + legacy_facedir_simple = true, + is_ground_content = false, + sounds = default.node_sound_wood_defaults(), + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", + "size[8,9]".. + "list[current_name;main;0,0;8,4;]".. + "list[current_player;main;0,5;8,4;]") + meta:set_string("infotext", "U-boot chest") + local inv = meta:get_inventory() + inv:set_size("main", 8*4) + local contents = {} + if math.random(1,2) == 1 and minetest.get_modpath("technic_worldgen") then + contents = {main = {[1] = "technic:mineral_uranium 18", [2] = "default:sword_steel 2"}} + else + contents = {main = {[1] = "tnt:tnt 3", [2] = "default:sword_steel 2"}} + end +meta:from_table({ + inventory = contents, + fields = { + formspec = "size[8,9;]list[context;main;0,0;8,4;]list[current_player;main;0,5;8,4;]", + infotext = "Normal chest" + } +}) + end, + can_dig = function(pos,player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + return inv:is_empty("main") + end, + on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + minetest.log("action", player:get_player_name().. + " moves stuff in chest at "..minetest.pos_to_string(pos)) + end, + on_metadata_inventory_put = function(pos, listname, index, stack, player) + minetest.log("action", player:get_player_name().. + " moves stuff to chest at "..minetest.pos_to_string(pos)) + end, + on_metadata_inventory_take = function(pos, listname, index, stack, player) + minetest.log("action", player:get_player_name().. + " takes stuff from chest at "..minetest.pos_to_string(pos)) + end, +}) + -- diff --git a/saplings.lua b/saplings.lua old mode 100644 new mode 100755 diff --git a/screenshot.png b/screenshot.png old mode 100644 new mode 100755 diff --git a/textures/aus_acacia_sapling.png b/textures/aus_acacia_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_banksia_sapling.png b/textures/aus_banksia_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_berry_sapling.png b/textures/aus_berry_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_black_box_leaves.png b/textures/aus_black_box_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_black_box_tree.png b/textures/aus_black_box_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_black_box_treetop.png b/textures/aus_black_box_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_black_box_wood.png b/textures/aus_black_box_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_black_wattle_leaves.png b/textures/aus_black_wattle_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_black_wattle_tree.png b/textures/aus_black_wattle_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_black_wattle_treetop.png b/textures/aus_black_wattle_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_black_wattle_wood.png b/textures/aus_black_wattle_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_blue_gum_leaves.png b/textures/aus_blue_gum_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_blue_gum_tree.png b/textures/aus_blue_gum_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_blue_gum_treetop.png b/textures/aus_blue_gum_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_blue_gum_wood.png b/textures/aus_blue_gum_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_bluestone.png b/textures/aus_bluestone.png old mode 100644 new mode 100755 diff --git a/textures/aus_bluestone_brick.png b/textures/aus_bluestone_brick.png old mode 100644 new mode 100755 diff --git a/textures/aus_bluestone_cobble.png b/textures/aus_bluestone_cobble.png old mode 100644 new mode 100755 diff --git a/textures/aus_boab_leaves.png b/textures/aus_boab_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_boab_sapling.png b/textures/aus_boab_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_boab_tree.png b/textures/aus_boab_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_boab_treetop.png b/textures/aus_boab_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_boab_wood.png b/textures/aus_boab_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_brain_coral.png b/textures/aus_brain_coral.png old mode 100644 new mode 100755 diff --git a/textures/aus_bucket_muddy_water.png b/textures/aus_bucket_muddy_water.png old mode 100644 new mode 100755 diff --git a/textures/aus_bull_banksia_leaves.png b/textures/aus_bull_banksia_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_bull_banksia_tree.png b/textures/aus_bull_banksia_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_bull_banksia_treetop.png b/textures/aus_bull_banksia_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_bull_banksia_wood.png b/textures/aus_bull_banksia_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_cauliflower_coral_brown.png b/textures/aus_cauliflower_coral_brown.png old mode 100644 new mode 100755 diff --git a/textures/aus_cauliflower_coral_green.png b/textures/aus_cauliflower_coral_green.png old mode 100644 new mode 100755 diff --git a/textures/aus_cauliflower_coral_pink.png b/textures/aus_cauliflower_coral_pink.png old mode 100644 new mode 100755 diff --git a/textures/aus_celery_top_pine_leaves.png b/textures/aus_celery_top_pine_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_celery_top_pine_tree.png b/textures/aus_celery_top_pine_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_celery_top_pine_treetop.png b/textures/aus_celery_top_pine_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_celery_top_pine_wood.png b/textures/aus_celery_top_pine_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_cherry.png b/textures/aus_cherry.png old mode 100644 new mode 100755 diff --git a/textures/aus_cherry_leaves.png b/textures/aus_cherry_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_cherry_tree.png b/textures/aus_cherry_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_cherry_treetop.png b/textures/aus_cherry_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_cherry_wood.png b/textures/aus_cherry_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_cloncurry_box_leaves.png b/textures/aus_cloncurry_box_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_cloncurry_box_tree.png b/textures/aus_cloncurry_box_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_cloncurry_box_treetop.png b/textures/aus_cloncurry_box_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_cloncurry_box_wood.png b/textures/aus_cloncurry_box_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_cluster_coral_green.png b/textures/aus_cluster_coral_green.png new file mode 100755 index 0000000..3a4588d Binary files /dev/null and b/textures/aus_cluster_coral_green.png differ diff --git a/textures/aus_cluster_coral_orange.png b/textures/aus_cluster_coral_orange.png new file mode 100755 index 0000000..4e28810 Binary files /dev/null and b/textures/aus_cluster_coral_orange.png differ diff --git a/textures/aus_cluster_coral_purple.png b/textures/aus_cluster_coral_purple.png new file mode 100755 index 0000000..ab9f6d3 Binary files /dev/null and b/textures/aus_cluster_coral_purple.png differ diff --git a/textures/aus_coast_banksia_leaves.png b/textures/aus_coast_banksia_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_coast_banksia_tree.png b/textures/aus_coast_banksia_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_coast_banksia_treetop.png b/textures/aus_coast_banksia_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_coast_banksia_wood.png b/textures/aus_coast_banksia_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_coolabah_leaves.png b/textures/aus_coolabah_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_coolabah_tree.png b/textures/aus_coolabah_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_coolabah_treetop.png b/textures/aus_coolabah_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_coolabah_wood.png b/textures/aus_coolabah_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_coral_sand.png b/textures/aus_coral_sand.png deleted file mode 100644 index a32cd1c..0000000 Binary files a/textures/aus_coral_sand.png and /dev/null differ diff --git a/textures/aus_coral_stone.png b/textures/aus_coral_stone.png old mode 100644 new mode 100755 diff --git a/textures/aus_couch_honeypot.png b/textures/aus_couch_honeypot.png old mode 100644 new mode 100755 diff --git a/textures/aus_daintree_stringybark_leaves.png b/textures/aus_daintree_stringybark_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_daintree_stringybark_tree.png b/textures/aus_daintree_stringybark_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_daintree_stringybark_treetop.png b/textures/aus_daintree_stringybark_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_daintree_stringybark_wood.png b/textures/aus_daintree_stringybark_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_darling_lily.png b/textures/aus_darling_lily.png old mode 100644 new mode 100755 diff --git a/textures/aus_darwin_woollybutt_leaves.png b/textures/aus_darwin_woollybutt_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_darwin_woollybutt_tree.png b/textures/aus_darwin_woollybutt_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_darwin_woollybutt_treetop.png b/textures/aus_darwin_woollybutt_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_darwin_woollybutt_wood.png b/textures/aus_darwin_woollybutt_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_desert_oak_leaves.png b/textures/aus_desert_oak_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_desert_oak_tree.png b/textures/aus_desert_oak_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_desert_oak_treetop.png b/textures/aus_desert_oak_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_desert_oak_wood.png b/textures/aus_desert_oak_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_eucalyptus_sapling.png b/textures/aus_eucalyptus_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_fan_palm_leaves.png b/textures/aus_fan_palm_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_fan_palm_tree.png b/textures/aus_fan_palm_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_fan_palm_treetop.png b/textures/aus_fan_palm_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_fan_palm_wood.png b/textures/aus_fan_palm_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_fern_tree.png b/textures/aus_fern_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_fern_tree_giant.png b/textures/aus_fern_tree_giant.png old mode 100644 new mode 100755 diff --git a/textures/aus_fern_tree_inv.png b/textures/aus_fern_tree_inv.png old mode 100644 new mode 100755 diff --git a/textures/aus_fern_trunk.png b/textures/aus_fern_trunk.png old mode 100644 new mode 100755 diff --git a/textures/aus_fern_trunk_big.png b/textures/aus_fern_trunk_big.png old mode 100644 new mode 100755 diff --git a/textures/aus_fern_trunk_big_top.png b/textures/aus_fern_trunk_big_top.png old mode 100644 new mode 100755 diff --git a/textures/aus_ferntuber.png b/textures/aus_ferntuber.png old mode 100644 new mode 100755 diff --git a/textures/aus_ferntuber_roasted.png b/textures/aus_ferntuber_roasted.png old mode 100644 new mode 100755 diff --git a/textures/aus_fiddlehead.png b/textures/aus_fiddlehead.png old mode 100644 new mode 100755 diff --git a/textures/aus_fiddlehead_roasted.png b/textures/aus_fiddlehead_roasted.png old mode 100644 new mode 100755 diff --git a/textures/aus_fig_sapling.png b/textures/aus_fig_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_golden_wattle_leaves.png b/textures/aus_golden_wattle_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_golden_wattle_tree.png b/textures/aus_golden_wattle_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_golden_wattle_treetop.png b/textures/aus_golden_wattle_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_golden_wattle_wood.png b/textures/aus_golden_wattle_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_grey_mangrove_leaves.png b/textures/aus_grey_mangrove_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_grey_mangrove_tree.png b/textures/aus_grey_mangrove_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_grey_mangrove_treetop.png b/textures/aus_grey_mangrove_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_grey_mangrove_wood.png b/textures/aus_grey_mangrove_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_hammer_coral.png b/textures/aus_hammer_coral.png new file mode 100755 index 0000000..b1899cb Binary files /dev/null and b/textures/aus_hammer_coral.png differ diff --git a/textures/aus_huon_pine_leaves.png b/textures/aus_huon_pine_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_huon_pine_tree.png b/textures/aus_huon_pine_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_huon_pine_treetop.png b/textures/aus_huon_pine_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_huon_pine_wood.png b/textures/aus_huon_pine_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_illawarra_flame_leaves.png b/textures/aus_illawarra_flame_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_illawarra_flame_sapling.png b/textures/aus_illawarra_flame_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_illawarra_flame_tree.png b/textures/aus_illawarra_flame_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_illawarra_flame_treetop.png b/textures/aus_illawarra_flame_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_illawarra_flame_wood.png b/textures/aus_illawarra_flame_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_jarrah_leaves.png b/textures/aus_jarrah_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_jarrah_tree.png b/textures/aus_jarrah_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_jarrah_treetop.png b/textures/aus_jarrah_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_jarrah_wood.png b/textures/aus_jarrah_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_karri_leaves.png b/textures/aus_karri_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_karri_wood.png b/textures/aus_karri_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_kelp_brown.png b/textures/aus_kelp_brown.png old mode 100644 new mode 100755 diff --git a/textures/aus_kelp_giant_brown.png b/textures/aus_kelp_giant_brown.png old mode 100644 new mode 100755 diff --git a/textures/aus_kelp_giant_brown_middle.png b/textures/aus_kelp_giant_brown_middle.png old mode 100644 new mode 100755 diff --git a/textures/aus_lemon_eucalyptus_leaves.png b/textures/aus_lemon_eucalyptus_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_lemon_eucalyptus_tree.png b/textures/aus_lemon_eucalyptus_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_lemon_eucalyptus_treetop.png b/textures/aus_lemon_eucalyptus_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_lemon_eucalyptus_wood.png b/textures/aus_lemon_eucalyptus_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_lemon_myrtle_leaves.png b/textures/aus_lemon_myrtle_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_lemon_myrtle_tree.png b/textures/aus_lemon_myrtle_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_lemon_myrtle_treetop.png b/textures/aus_lemon_myrtle_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_lemon_myrtle_wood.png b/textures/aus_lemon_myrtle_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_lilly_pilly_berries.png b/textures/aus_lilly_pilly_berries.png old mode 100644 new mode 100755 diff --git a/textures/aus_lilly_pilly_leaves.png b/textures/aus_lilly_pilly_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_lilly_pilly_tree.png b/textures/aus_lilly_pilly_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_lilly_pilly_treetop.png b/textures/aus_lilly_pilly_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_lilly_pilly_wood.png b/textures/aus_lilly_pilly_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_macadamia.png b/textures/aus_macadamia.png old mode 100644 new mode 100755 diff --git a/textures/aus_macadamia_leaves.png b/textures/aus_macadamia_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_macadamia_sapling.png b/textures/aus_macadamia_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_macadamia_tree.png b/textures/aus_macadamia_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_macadamia_treetop.png b/textures/aus_macadamia_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_macadamia_wood.png b/textures/aus_macadamia_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_mangrove_apple.png b/textures/aus_mangrove_apple.png old mode 100644 new mode 100755 diff --git a/textures/aus_mangrove_apple_leaves.png b/textures/aus_mangrove_apple_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_mangrove_apple_sapling.png b/textures/aus_mangrove_apple_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_mangrove_apple_tree.png b/textures/aus_mangrove_apple_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_mangrove_apple_treetop.png b/textures/aus_mangrove_apple_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_mangrove_apple_wood.png b/textures/aus_mangrove_apple_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_mangrove_fern.png b/textures/aus_mangrove_fern.png old mode 100644 new mode 100755 diff --git a/textures/aus_mangrove_lily.png b/textures/aus_mangrove_lily.png old mode 100644 new mode 100755 diff --git a/textures/aus_mangrove_mud.png b/textures/aus_mangrove_mud.png old mode 100644 new mode 100755 diff --git a/textures/aus_mangrove_palm_leaf_bot.png b/textures/aus_mangrove_palm_leaf_bot.png old mode 100644 new mode 100755 diff --git a/textures/aus_mangrove_palm_leaf_top.png b/textures/aus_mangrove_palm_leaf_top.png old mode 100644 new mode 100755 diff --git a/textures/aus_mangrove_palm_trunk.png b/textures/aus_mangrove_palm_trunk.png old mode 100644 new mode 100755 diff --git a/textures/aus_mangrove_sapling.png b/textures/aus_mangrove_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_marri_leaves.png b/textures/aus_marri_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_marri_tree.png b/textures/aus_marri_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_marri_treetop.png b/textures/aus_marri_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_marri_wood.png b/textures/aus_marri_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_melaleuca_sapling.png b/textures/aus_melaleuca_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_merbau_leaves.png b/textures/aus_merbau_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_merbau_tree.png b/textures/aus_merbau_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_merbau_treetop.png b/textures/aus_merbau_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_merbau_wood.png b/textures/aus_merbau_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_mitchell_grass.png b/textures/aus_mitchell_grass.png old mode 100644 new mode 100755 diff --git a/textures/aus_moreton_bay_fig.png b/textures/aus_moreton_bay_fig.png old mode 100644 new mode 100755 diff --git a/textures/aus_moreton_bay_fig_leaves.png b/textures/aus_moreton_bay_fig_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_moreton_bay_fig_tree.png b/textures/aus_moreton_bay_fig_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_moreton_bay_fig_treetop.png b/textures/aus_moreton_bay_fig_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_moreton_bay_fig_wood.png b/textures/aus_moreton_bay_fig_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_moss.png b/textures/aus_moss.png old mode 100644 new mode 100755 diff --git a/textures/aus_moss_fungus.png b/textures/aus_moss_fungus.png old mode 100644 new mode 100755 diff --git a/textures/aus_muddy_river_water_flowing.png b/textures/aus_muddy_river_water_flowing.png old mode 100644 new mode 100755 diff --git a/textures/aus_muddy_river_water_source.png b/textures/aus_muddy_river_water_source.png old mode 100644 new mode 100755 diff --git a/textures/aus_mulga_leaves.png b/textures/aus_mulga_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_mulga_tree.png b/textures/aus_mulga_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_mulga_treetop.png b/textures/aus_mulga_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_mulga_wood.png b/textures/aus_mulga_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_myrtle_sapling.png b/textures/aus_myrtle_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_palm_sapling.png b/textures/aus_palm_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_paperbark_leaves.png b/textures/aus_paperbark_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_paperbark_tree.png b/textures/aus_paperbark_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_paperbark_treetop.png b/textures/aus_paperbark_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_paperbark_wood.png b/textures/aus_paperbark_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_pine_sapling.png b/textures/aus_pine_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_quandong.png b/textures/aus_quandong.png old mode 100644 new mode 100755 diff --git a/textures/aus_quandong_leaves.png b/textures/aus_quandong_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_quandong_sapling.png b/textures/aus_quandong_sapling.png old mode 100644 new mode 100755 diff --git a/textures/aus_quandong_tree.png b/textures/aus_quandong_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_quandong_treetop.png b/textures/aus_quandong_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_quandong_wood.png b/textures/aus_quandong_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_red_bottlebrush_leaves.png b/textures/aus_red_bottlebrush_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_red_bottlebrush_tree.png b/textures/aus_red_bottlebrush_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_red_bottlebrush_treetop.png b/textures/aus_red_bottlebrush_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_red_bottlebrush_wood.png b/textures/aus_red_bottlebrush_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_red_cobble.png b/textures/aus_red_cobble.png old mode 100644 new mode 100755 diff --git a/textures/aus_red_dirt.png b/textures/aus_red_dirt.png old mode 100644 new mode 100755 diff --git a/textures/aus_red_gravel.png b/textures/aus_red_gravel.png old mode 100644 new mode 100755 diff --git a/textures/aus_red_sand.png b/textures/aus_red_sand.png old mode 100644 new mode 100755 diff --git a/textures/aus_red_stone.png b/textures/aus_red_stone.png old mode 100644 new mode 100755 diff --git a/textures/aus_red_stonebrick.png b/textures/aus_red_stonebrick.png old mode 100644 new mode 100755 diff --git a/textures/aus_river_oak_leaves.png b/textures/aus_river_oak_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_river_oak_tree.png b/textures/aus_river_oak_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_river_oak_treetop.png b/textures/aus_river_oak_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_river_oak_wood.png b/textures/aus_river_oak_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_river_red_gum_leaves.png b/textures/aus_river_red_gum_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_river_red_gum_tree.png b/textures/aus_river_red_gum_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_river_red_gum_treetop.png b/textures/aus_river_red_gum_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_river_red_gum_wood.png b/textures/aus_river_red_gum_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_rottnest_island_pine_leaves.png b/textures/aus_rottnest_island_pine_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_rottnest_island_pine_tree.png b/textures/aus_rottnest_island_pine_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_rottnest_island_pine_treetop.png b/textures/aus_rottnest_island_pine_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_rottnest_island_pine_wood.png b/textures/aus_rottnest_island_pine_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_saltbush.png b/textures/aus_saltbush.png old mode 100644 new mode 100755 diff --git a/textures/aus_sapling_tree_fern_giant.png b/textures/aus_sapling_tree_fern_giant.png old mode 100644 new mode 100755 diff --git a/textures/aus_scribbly_gum_leaves.png b/textures/aus_scribbly_gum_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_scribbly_gum_tree.png b/textures/aus_scribbly_gum_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_scribbly_gum_treetop.png b/textures/aus_scribbly_gum_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_scribbly_gum_wood.png b/textures/aus_scribbly_gum_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_sea_grass.png b/textures/aus_sea_grass.png new file mode 100755 index 0000000..3fa699c Binary files /dev/null and b/textures/aus_sea_grass.png differ diff --git a/textures/aus_seafan_coral.png b/textures/aus_seafan_coral.png new file mode 100755 index 0000000..b2aa2a8 Binary files /dev/null and b/textures/aus_seafan_coral.png differ diff --git a/textures/aus_shoestring_acacia_leaves.png b/textures/aus_shoestring_acacia_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_shoestring_acacia_tree.png b/textures/aus_shoestring_acacia_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_shoestring_acacia_treetop.png b/textures/aus_shoestring_acacia_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_shoestring_acacia_wood.png b/textures/aus_shoestring_acacia_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_silver_daisy.png b/textures/aus_silver_daisy.png old mode 100644 new mode 100755 diff --git a/textures/aus_snow_gum_leaves.png b/textures/aus_snow_gum_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_snow_gum_tree.png b/textures/aus_snow_gum_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_snow_gum_treetop.png b/textures/aus_snow_gum_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_snow_gum_wood.png b/textures/aus_snow_gum_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_southern_sassafras_leaves.png b/textures/aus_southern_sassafras_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_southern_sassafras_tree.png b/textures/aus_southern_sassafras_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_southern_sassafras_treetop.png b/textures/aus_southern_sassafras_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_southern_sassafras_wood.png b/textures/aus_southern_sassafras_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_spinifex.png b/textures/aus_spinifex.png old mode 100644 new mode 100755 diff --git a/textures/aus_staghorn_coral_blue.png b/textures/aus_staghorn_coral_blue.png old mode 100644 new mode 100755 diff --git a/textures/aus_staghorn_coral_pink.png b/textures/aus_staghorn_coral_pink.png old mode 100644 new mode 100755 diff --git a/textures/aus_staghorn_coral_purple.png b/textures/aus_staghorn_coral_purple.png old mode 100644 new mode 100755 diff --git a/textures/aus_staghorn_coral_yellow.png b/textures/aus_staghorn_coral_yellow.png old mode 100644 new mode 100755 diff --git a/textures/aus_stilted_mangrove_leaves.png b/textures/aus_stilted_mangrove_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_stilted_mangrove_tree.png b/textures/aus_stilted_mangrove_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_stilted_mangrove_treetop.png b/textures/aus_stilted_mangrove_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_stilted_mangrove_wood.png b/textures/aus_stilted_mangrove_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_sugar_gum_leaves.png b/textures/aus_sugar_gum_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_sugar_gum_tree.png b/textures/aus_sugar_gum_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_sugar_gum_treetop.png b/textures/aus_sugar_gum_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_sugar_gum_wood.png b/textures/aus_sugar_gum_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_swamp_bloodwood_leaves.png b/textures/aus_swamp_bloodwood_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_swamp_bloodwood_tree.png b/textures/aus_swamp_bloodwood_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_swamp_bloodwood_treetop.png b/textures/aus_swamp_bloodwood_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_swamp_bloodwood_wood.png b/textures/aus_swamp_bloodwood_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_swamp_gum_leaves.png b/textures/aus_swamp_gum_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_swamp_gum_tree.png b/textures/aus_swamp_gum_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_swamp_gum_treetop.png b/textures/aus_swamp_gum_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_swamp_gum_wood.png b/textures/aus_swamp_gum_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_swamp_paperbark_leaves.png b/textures/aus_swamp_paperbark_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_swamp_paperbark_tree.png b/textures/aus_swamp_paperbark_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_swamp_paperbark_treetop.png b/textures/aus_swamp_paperbark_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_swamp_paperbark_wood.png b/textures/aus_swamp_paperbark_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_tasmanian_myrtle_leaves.png b/textures/aus_tasmanian_myrtle_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_tasmanian_myrtle_tree.png b/textures/aus_tasmanian_myrtle_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_tasmanian_myrtle_treetop.png b/textures/aus_tasmanian_myrtle_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_tasmanian_myrtle_wood.png b/textures/aus_tasmanian_myrtle_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_tea_tree_leaves.png b/textures/aus_tea_tree_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_tea_tree_tree.png b/textures/aus_tea_tree_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_tea_tree_treetop.png b/textures/aus_tea_tree_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_tea_tree_wood.png b/textures/aus_tea_tree_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_tree_fern_leaf_big.png b/textures/aus_tree_fern_leaf_big.png old mode 100644 new mode 100755 diff --git a/textures/aus_tree_fern_leaf_big_cross.png b/textures/aus_tree_fern_leaf_big_cross.png old mode 100644 new mode 100755 diff --git a/textures/aus_tree_fern_leaf_big_end.png b/textures/aus_tree_fern_leaf_big_end.png old mode 100644 new mode 100755 diff --git a/textures/aus_tube_sponge.png b/textures/aus_tube_sponge.png new file mode 100755 index 0000000..dd32d9e Binary files /dev/null and b/textures/aus_tube_sponge.png differ diff --git a/textures/aus_waratah.png b/textures/aus_waratah.png old mode 100644 new mode 100755 diff --git a/textures/aus_white_box_leaves.png b/textures/aus_white_box_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_white_box_tree.png b/textures/aus_white_box_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_white_box_treetop.png b/textures/aus_white_box_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_white_box_wood.png b/textures/aus_white_box_wood.png old mode 100644 new mode 100755 diff --git a/textures/aus_wirewood_leaves.png b/textures/aus_wirewood_leaves.png old mode 100644 new mode 100755 diff --git a/textures/aus_wirewood_tree.png b/textures/aus_wirewood_tree.png old mode 100644 new mode 100755 diff --git a/textures/aus_wirewood_treetop.png b/textures/aus_wirewood_treetop.png old mode 100644 new mode 100755 diff --git a/textures/aus_wirewood_wood.png b/textures/aus_wirewood_wood.png old mode 100644 new mode 100755 diff --git a/trees.lua b/trees.lua old mode 100644 new mode 100755 index a3c0896..6bcf728 --- a/trees.lua +++ b/trees.lua @@ -5,7 +5,7 @@ function aus.generate_rainforest_tree_schematic(trunk_height, r, trunk, leaf) local height = trunk_height * 2 + 1 local radius = r local width = 2 * radius + 1 - local trunk_top = height - 3 + local trunk_top = height - 4 local s = aus.schematic_array(width, height, width) -- roots, trunk, and extra leaves @@ -30,7 +30,7 @@ function aus.generate_rainforest_tree_schematic(trunk_height, r, trunk, leaf) end -- canopy - for y = 1,trunk_top+4 do + for y = 1,trunk_top+3 do if y > trunk_height and (y == trunk_top or math.random(1,height - y) == 1) then local x, z = 0, 0 while x == 0 and z == 0 do diff --git a/voxel.lua b/voxel.lua old mode 100644 new mode 100755