]> git.lizzy.rs Git - Crafter.git/commitdiff
Add in the prototype of the nether
authoroilboi <47129783+oilboi@users.noreply.github.com>
Fri, 17 Apr 2020 03:20:56 +0000 (23:20 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Fri, 17 Apr 2020 03:20:56 +0000 (23:20 -0400)
README.md
game.conf
mods/hand/init.lua
mods/main/mapgen.lua
mods/main/ore.lua
mods/nether/depends.txt [new file with mode: 0644]
mods/nether/init.lua [new file with mode: 0644]
mods/nether/textures/bedrock.png [new file with mode: 0644]
mods/nether/textures/netherrack.png [new file with mode: 0644]

index ce3752a44b2c20f58a1775db40f5f71dae38ca9f..f144ad2dbf1f69d934ba52cc0f3502d8d6bf5139 100644 (file)
--- a/README.md
+++ b/README.md
@@ -75,6 +75,7 @@
 - Added mob criticals and client effects
 - Added stream and river sound effect to client
 - Moved underground cave noises to client
+- Add line_of_sight so mobs can't hit you through walls
 ---
 
 
index 3c05ebc037c8af4b4fd929e4c6a75eda50b8d437..c90463de759f7c38710f81600914e03e7445939c 100644 (file)
--- a/game.conf
+++ b/game.conf
@@ -1 +1,3 @@
 name=Crafter
+author = oil_boi
+description = A game which aims to be as fun as possible!
index d7cd6aec1f8c0e5c2e13e669dd119a62d259ba3b..70c521407323f3be22f4e4ab253d1d4135eb99fb 100644 (file)
@@ -18,6 +18,7 @@ minetest.register_item(":", {
                        leaves ={times={[1]=0.75,[2]=1.5,[3]=3,[4]=6,[5]=12},   uses=0, maxlevel=1}, --
                        wool =  {times={[1]=0.75,[2]=1.5,[3]=3,[4]=6,[5]=12},   uses=0, maxlevel=1}, --
                        glass = {times={[1]=0.75,[2]=1.5,[3]=3,[4]=6,[5]=12},   uses=0, maxlevel=1}, --
+                       unbreakable = {times={[1]=63072000000000},   uses=0, maxlevel=1}, -- 2 million years
                        
                        --instant = {times={[1]=0.1,},uses=0,maxlevel=1},
                        dig_immediate = {times={[2]=0,[3]=0,[1]=0,},uses=0,maxlevel=1},
index 6b8183ca79f2bd6b4459dc88d6b0c69a35acf0aa..40e5fd0378271c7fde45040848060b6e9debcba8 100644 (file)
@@ -40,7 +40,7 @@ minetest.register_biome({
                --node_dungeon = "default:cobble",
                --node_dungeon_alt = "default:mossycobble",
                --node_dungeon_stair = "stairs:stair_cobble",
-               y_max = 31000,
+               y_max = 256,
                y_min = 6,
                heat_point = 50,
                humidity_point = 35,
index f190a4fcd1b0ceee4eeb3b124389d1f061743446..79afc022792dfd8053811c3781340ddac68ffbfe 100644 (file)
@@ -48,7 +48,6 @@ minetest.register_ore({
 -- Scatter ores
 
 -- Coal
-for i = 1,3 do
 minetest.register_ore({
        ore_type         = "scatter",
        ore             = "main:coalore",
@@ -125,7 +124,7 @@ minetest.register_ore({
        clust_num_ores = 29,
        clust_size     = 5,
        y_max       = -128,
-       y_min       = -31000,
+       y_min       = -9999,
 })
 
 -- Gold
@@ -160,7 +159,7 @@ minetest.register_ore({
        clust_num_ores = 5,
        clust_size     = 3,
        y_max       = -128,
-       y_min       = -31000,
+       y_min       = -9999,
 })
 
 -- Mese crystal
@@ -195,7 +194,7 @@ minetest.register_ore({
        clust_num_ores = 5,
        clust_size     = 3,
        y_max       = -128,
-       y_min       = -31000,
+       y_min       = -9999,
 })
 
 -- Diamond
@@ -230,6 +229,6 @@ minetest.register_ore({
        clust_num_ores = 4,
        clust_size     = 3,
        y_max       = -256,
-       y_min       = -31000,
+       y_min       = -9999,
 })
-end
+
diff --git a/mods/nether/depends.txt b/mods/nether/depends.txt
new file mode 100644 (file)
index 0000000..ba2906d
--- /dev/null
@@ -0,0 +1 @@
+main
diff --git a/mods/nether/init.lua b/mods/nether/init.lua
new file mode 100644 (file)
index 0000000..263b886
--- /dev/null
@@ -0,0 +1,59 @@
+minetest.register_biome({
+       name = "Hell",
+       node_top = "air",
+       depth_top = 1,
+       node_filler = "air",
+       depth_filler = 10,
+       node_riverbed = "air",
+       depth_riverbed = 10,
+       node_stone = "nether:netherrack",
+       node_water = "air",
+       --node_dungeon = "default:cobble",
+       --node_dungeon_alt = "default:mossycobble",
+       --node_dungeon_stair = "stairs:stair_cobble",
+       vertical_blend = 0,
+       y_max = -10035,
+       y_min = -20000,
+       heat_point = 0,
+       humidity_point = 0,
+})
+
+minetest.register_biome({
+       name = "Boundary of Hell",
+       node_top = "nether:bedrock",
+       depth_top = 1,
+       node_filler = "nether:bedrock",
+       depth_filler = 1,
+       node_riverbed = "nether:bedrock",
+       depth_riverbed = 1,
+       node_stone = "nether:bedrock",
+       node_water = "nether:bedrock",
+       node_cave_liquid  = "nether:bedrock",
+       node_dungeon = "nether:bedrock",
+       node_dungeon_alt = "nether:bedrock",
+       node_dungeon_stair = "nether:bedrock",
+       vertical_blend = 0,
+       y_max = -10033,
+       y_min = -10034,
+       heat_point = -100,
+       humidity_point = -100,
+})
+
+minetest.register_node("nether:bedrock", {
+    description = "Bedrock",
+    tiles = {"bedrock.png"},
+    groups = {unbreakable = 1, pathable = 1},
+    sounds = main.stoneSound(),
+    is_ground_content = false,
+    --light_source = 14, --debugging
+})
+
+
+minetest.register_node("nether:netherrack", {
+    description = "Netherrack",
+    tiles = {"netherrack.png"},
+    groups = {stone = 1, pathable = 1},
+    sounds = main.stoneSound(),
+    is_ground_content = false,
+    light_source = 7,
+})
diff --git a/mods/nether/textures/bedrock.png b/mods/nether/textures/bedrock.png
new file mode 100644 (file)
index 0000000..fff841d
Binary files /dev/null and b/mods/nether/textures/bedrock.png differ
diff --git a/mods/nether/textures/netherrack.png b/mods/nether/textures/netherrack.png
new file mode 100644 (file)
index 0000000..dd71e1a
Binary files /dev/null and b/mods/nether/textures/netherrack.png differ