From 7b3b79335d57f34b831d5708b56da49c812163ca Mon Sep 17 00:00:00 2001 From: Amaz1 Date: Wed, 14 May 2014 21:28:50 +0100 Subject: [PATCH] Added light ore! --- mods/mapgen/init.lua | 10 +++++--- mods/mapgen/ores.lua | 10 ++++++++ mods/moontest/crafting.lua | 9 +++++++ mods/moontest/nodes.lua | 23 ++++++++++++++++++ mods/moontest/ores.lua | 9 +++++++ mods/moontest/readme.md | 1 + mods/moontest/textures/moontest_light.png | Bin 155 -> 727 bytes .../textures/moontest_light_crystal.png | Bin 0 -> 322 bytes mods/moontest/textures/moontest_light_ore.png | Bin 0 -> 298 bytes 9 files changed, 58 insertions(+), 4 deletions(-) create mode 100644 mods/mapgen/ores.lua create mode 100644 mods/moontest/ores.lua create mode 100644 mods/moontest/readme.md create mode 100644 mods/moontest/textures/moontest_light_crystal.png create mode 100644 mods/moontest/textures/moontest_light_ore.png diff --git a/mods/mapgen/init.lua b/mods/mapgen/init.lua index 9e362858..7b3763d2 100644 --- a/mods/mapgen/init.lua +++ b/mods/mapgen/init.lua @@ -1,11 +1,13 @@ -- Mapgen +dofile(minetest.get_modpath("mapgen").."/ores.lua") + -- Set mapgen mode to v7 minetest.register_on_mapgen_init(function(params) minetest.set_mapgen_params({ mgname = "v7", seed = params.seed, - water_level = 0, + water_level = -10, flags = "caves", }) end) @@ -17,7 +19,7 @@ minetest.register_biome({ depth_top = 2, node_bottom = "moontest:stone", node_dust = "air", - height_min = -10, + height_min = 3, height_max = 30, }) @@ -30,7 +32,7 @@ minetest.register_biome({ depth_filler = 1, node_dust = "air", height_min = -50, - height_max = 2, + height_max = 5, }) -- Lunar Ice Cap Biome @@ -39,7 +41,7 @@ minetest.register_biome({ node_top = "moontest:waterice", depth_top = 4, node_filler = "moontest:dust", - depth_filler = 2 + depth_filler = 2, node_dust = "air", height_min = 25, height_max = 100, diff --git a/mods/mapgen/ores.lua b/mods/mapgen/ores.lua new file mode 100644 index 00000000..8d0d1d1c --- /dev/null +++ b/mods/mapgen/ores.lua @@ -0,0 +1,10 @@ +minetest.register_ore({ + ore_type = "scatter", + ore = "moontest:lightore", + wherein = "moontest:stone", + clust_scarcity = 10*10*10, + clust_num_ores = 6, + clust_size = 5, + height_min = -31000, + height_max = 5, +}) diff --git a/mods/moontest/crafting.lua b/mods/moontest/crafting.lua index e7df5914..2dc0ff4d 100644 --- a/mods/moontest/crafting.lua +++ b/mods/moontest/crafting.lua @@ -9,6 +9,15 @@ minetest.register_craft({ }, }) +minetest.register_craft({ + output = "moontest:light", + recipe = { + {"moontest:light_crystal", "moontest:stone", "moontest:light_crystal"}, + {"moontest:light_crystal", "default:mese_crystal", "moontest:light_crystal"}, + {"moontest:light_crystal", "moontest:stone", "moontest:light_crystal"}, + }, +}) + minetest.register_craft({ output = "moontest:airgen", recipe = { diff --git a/mods/moontest/nodes.lua b/mods/moontest/nodes.lua index 25d37848..24dc6dc2 100644 --- a/mods/moontest/nodes.lua +++ b/mods/moontest/nodes.lua @@ -290,6 +290,24 @@ minetest.register_node("moontest:stonestair", { sounds = default.node_sound_stone_defaults(), }) +minetest.register_node("moontest:lightore", { + description = "Light ore", + tiles = {"moontest_stone.png^moontest_light_ore.png"}, + light_source = 7, + groups = {cracky = 3, stone = 1}, + drop = "moontest:light_crystal", +}) + +minetest.register_node("moontest:light", { + description = "Light", + tiles = {"moontest_light.png"}, + light_source = 14, + groups = {cracky = 3, stone = 1}, + drop = "moontest:light_crystal", +}) + + + -- Items minetest.register_craftitem("moontest:spacesuit", { @@ -297,6 +315,11 @@ minetest.register_craftitem("moontest:spacesuit", { inventory_image = "moontest_spacesuit.png", }) +minetest.register_craftitem("moontest:light_crystal", { + description = "Light Cyrstal", + inventory_image = "moontest_light_crystal.png", +}) + minetest.register_craftitem("moontest:helmet", { description = "Helmet", inventory_image = "moontest_helmet.png", diff --git a/mods/moontest/ores.lua b/mods/moontest/ores.lua new file mode 100644 index 00000000..7854df0b --- /dev/null +++ b/mods/moontest/ores.lua @@ -0,0 +1,9 @@ +minetest.register_node("moontest:lightore", { + description = "Lightore", + tiles = {"moontest_stone.png^moontest_light_ore.png"}, + light_source = 7, + groups = {cracky = 3, stone = 1}, + drop = "moontest:light_crystal", +}) + + diff --git a/mods/moontest/readme.md b/mods/moontest/readme.md new file mode 100644 index 00000000..d156b4ee --- /dev/null +++ b/mods/moontest/readme.md @@ -0,0 +1 @@ +With thanks to Evergreen for the Light Ore texture. (A modified version of the quatz ore from his quatz mod.) CC-BY-SA diff --git a/mods/moontest/textures/moontest_light.png b/mods/moontest/textures/moontest_light.png index 43c1444ea332680eca2171ef5ad2e36f5403cb29..847c81544e376b3a6d8eed78c6cf3f4ff5d884d8 100644 GIT binary patch delta 677 zcmV;W0$Tl>0oMhPBo78+OGiWi{{a60|De66laVeSf8GTS6cQkmYIF+#00Lx5L_t(I z%RQ6JZX-7kMNbvUe#&xNV~uA!NIodYCnWzp2ol%{FtH`eQj=;ni&6~F~MpDD(F>!m6%}3g;L;QQmR3^8ouikDqJpww1D?Y*9qJEmcwCX=#`ue6_~aT zRcL}zD@>E%$I;QYiVuQ|F!qAg%H_P$b%AM8e?*ju!`6iuS89c>_nbZ!yoivlg*Y2? z0(HV>^b|AZ%Swz!UX6G$L_kDQg}b{#F~M&(o?%c9$IL^$De8y72pWBD^}`{ddfID0GxvJ4iUKD27ERCA5|en07qz` ze^_Cf0!ucIN5eTt*8*hjM&)$Qc+uOny}o7MkH#=UXm6CI-l%Uj0TCERuo6fq^R#cV z=LH|Wq$r?()J8?Q2zUv$xADLR= zZX0MC!^Xg0&kK-ggYxBb$M^4I6Al@gL{Rm#3E96nOb(A*IUuyDk_oPX6^Zb9^gUg?@0TKn3PGqY5b+mrJ=>k{fVUcsm#=75)QjusrD8uoB1s3jhEB LNkvXXu0mjf0dPG@ delta 126 zcmcc4I-7BVN;zY3kh>GZx^prw85kHi3p^r=85p>QL70(Y)*K0-AbW|YuPggqR$eh- z%ewtfmH>rxJzX3_EKVo?`TzP)JsTIp<8McK{@co&yrNq+ud%by$sp^%3dY533Qyg< aco-PmjJa6Z`G0}TV(@hJb6Mw<&;$T{`6s~u diff --git a/mods/moontest/textures/moontest_light_crystal.png b/mods/moontest/textures/moontest_light_crystal.png new file mode 100644 index 0000000000000000000000000000000000000000..9a46cc5440c8966c0277ef83bc8aa849c3d195e6 GIT binary patch literal 322 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkEQa{$y^wd)mXd)8&M}T{K{Qb|lt;_YcGU z1M-(1ookhmQ{S*7b@B;`84Rr7?#*QW{Xn9xA(H8ekU;@kT_bmZV(p5ISL_RXru&_A zj9$RDs)Vn+{nfS&#UcB7{LeB3i`Y#)yMXbqLCylZ%hoP0y?v`9T#iOHpO=WfY4t5S z?W$>1`3&{AtGsjXzY(1d&e@jf>pY`)!a$RwEHP81wdIab- N22WQ%mvv4FO#sKBdTRgx literal 0 HcmV?d00001 diff --git a/mods/moontest/textures/moontest_light_ore.png b/mods/moontest/textures/moontest_light_ore.png new file mode 100644 index 0000000000000000000000000000000000000000..faa5bca665c1b3daeb584893f9b5008cc2f52f12 GIT binary patch literal 298 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPqE1!rspXuq|MxfAkPZ!4!i_=>t`SLX@2(-3eb2aZ> zt+qEf+;+uF-aETKD3m?rS7B-`+?DC;8Zhg{?FkdUvwhmjcq6Jy{7e7;2W`FU#F?X} zTrsz-WMAXiJ*h)y!PLjGpRx^hwS9hi?2sd)Tls{z_lw()?zv-bxp1n%gKVLD;Zaip zb2kJCtYz48>9k73V(x5Rn{39lKjswKM|6o_3A