]> git.lizzy.rs Git - Crafter.git/commitdiff
Add glowstone
authoroilboi <47129783+oilboi@users.noreply.github.com>
Mon, 20 Apr 2020 12:04:14 +0000 (08:04 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Mon, 20 Apr 2020 12:04:14 +0000 (08:04 -0400)
README.md
mods/nether/craft_recipes.lua
mods/nether/init.lua
mods/nether/items.lua [new file with mode: 0644]
mods/nether/nodes.lua
mods/nether/ore.lua
mods/nether/textures/attributes.txt
mods/nether/textures/glowstone.png [new file with mode: 0644]
mods/nether/textures/glowstone_dust.png [new file with mode: 0644]

index 70ebd21153d8cccdfe553696de98d2a1173b5aaf..7bef2d3ef7284b27ab002ebe987949fe601c2114 100644 (file)
--- a/README.md
+++ b/README.md
@@ -95,6 +95,8 @@
 - Fix clientside global counters to after statements
 - Made snow and grass floodable
 - Made lava spawn in blobs underground
+- Added nether ores
+- Added glowstone and glowstone dust
 ---
 
 
index 29013845c19f003a741c504cc972916de2ff71da..e482eea2364a6b3c2b668a3d5b035ec1bb8ebf1e 100644 (file)
@@ -10,3 +10,8 @@ minetest.register_craft({
        recipe = "nether:ironore",
        cooktime = 3,
 })
+minetest.register_craft({
+       type = "shapeless",
+       output = "nether:glowstone",
+       recipe = {"nether:glowstone_dust","nether:glowstone_dust","nether:glowstone_dust","nether:glowstone_dust"},
+})
index 5565330f78ab0bf5a19099899136868bcafdba94..7a6f9969e975b92718399cbb5d38f4b1fd139d70 100644 (file)
@@ -6,6 +6,7 @@ dofile(path.."/nodes.lua")
 dofile(path.."/biomes.lua")
 dofile(path.."/craft_recipes.lua")
 dofile(path.."/ore.lua")
+dofile(path.."/items.lua")
 
 
 minetest.register_node("nether:portal", {
diff --git a/mods/nether/items.lua b/mods/nether/items.lua
new file mode 100644 (file)
index 0000000..97a96d7
--- /dev/null
@@ -0,0 +1,5 @@
+minetest.register_craftitem("nether:glowstone_dust", {
+       description = "Glowstone Dust",
+       inventory_image = "glowstone_dust.png",
+       health = 3,
+})
index d247e9b348255d8a8a7ab84d3e9b35f5a6f021fe..6b8a97eedcde8aa080c1028f9cc26dfc6c9339f1 100644 (file)
@@ -27,7 +27,44 @@ minetest.register_node("nether:netherrack", {
                                },
                        },
 })
-
+minetest.register_node("nether:glowstone", {
+    description = "Glowstone",
+    tiles = {"glowstone.png"},
+    groups = {glass = 1, pathable = 1},
+    sounds = main.stoneSound({
+               footstep = {name = "glass_footstep", gain = 0.4},
+        dug =  {name = "break_glass", gain = 0.4},
+       }),
+    is_ground_content = false,
+    light_source = 12,
+    drop = {
+                       max_items = 5,
+                       tools = tool_required,
+                       items= {
+                               {
+                                       tools = {"main:ironpick","main:goldpick","main:diamondpick"},
+                                       items = {"nether:glowstone_dust"},
+                               },
+                               {
+                                       tools = {"main:ironpick","main:goldpick","main:diamondpick"},
+                                       items = {"nether:glowstone_dust"},
+                               },
+                               {
+                                       tools = {"main:ironpick","main:goldpick","main:diamondpick"},
+                                       items = {"nether:glowstone_dust"},
+                               },
+                               {
+                                       tools = {"main:ironpick","main:goldpick","main:diamondpick"},
+                                       items = {"nether:glowstone_dust"},
+                               },
+                               {
+                                       rarity = 5,
+                                       tools = {"main:ironpick","main:goldpick","main:diamondpick"},
+                                       items = {"nether:glowstone_dust"},
+                               },
+                       },
+               }
+})
 
 minetest.register_node("nether:obsidian", {
     description = "Obsidian",
index d54b187f4de1141dfbfc0114b92e97580b8f561e..4ffd49c0c57e39a6b840cf1274598309d86779f5 100644 (file)
@@ -9,6 +9,17 @@ minetest.register_ore({
        y_min       = -20000,
 })
 
+minetest.register_ore({
+       ore_type         = "scatter",
+       ore             = "nether:glowstone",
+       wherein   = "air",
+       clust_scarcity = 64 * 64 * 64,
+       clust_num_ores = 30,
+       clust_size     = 5,
+       y_max       = -10033,
+       y_min       = -20000,
+})
+
 minetest.register_ore({
        ore_type         = "scatter",
        ore             = "nether:coalore",
index fcd3abf4c2c4734a210bbf3237f70407c5d57843..7dfa07206ffc9e40ada50da86ce097fc79a39b10 100644 (file)
@@ -1 +1,2 @@
-netherrack, obsidian, portal, bedrock https://forum.minetest.net/viewtopic.php?t=16407
\ No newline at end of file
+netherrack, obsidian, portal, bedrock https://forum.minetest.net/viewtopic.php?t=16407
+glowstone - mineclone2
\ No newline at end of file
diff --git a/mods/nether/textures/glowstone.png b/mods/nether/textures/glowstone.png
new file mode 100644 (file)
index 0000000..d42c9c9
Binary files /dev/null and b/mods/nether/textures/glowstone.png differ
diff --git a/mods/nether/textures/glowstone_dust.png b/mods/nether/textures/glowstone_dust.png
new file mode 100644 (file)
index 0000000..dd20dba
Binary files /dev/null and b/mods/nether/textures/glowstone_dust.png differ