From 2584c003ab81301ee0449e915128d3bcc240269b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 17 Feb 2017 21:08:46 +0100 Subject: [PATCH] Initial commit --- depends.txt | 10 ++ fences.lua | 11 ++ init.lua | 5 + mod.conf | 1 + stairslabs.lua | 157 +++++++++++++++++++++ .../mcl_supplemental_stonebrick_carved_slab.png | Bin 0 -> 398 bytes walls.lua | 45 ++++++ 7 files changed, 229 insertions(+) create mode 100644 depends.txt create mode 100644 fences.lua create mode 100644 init.lua create mode 100644 mod.conf create mode 100644 stairslabs.lua create mode 100644 textures/mcl_supplemental_stonebrick_carved_slab.png create mode 100644 walls.lua diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..3ef7640 --- /dev/null +++ b/depends.txt @@ -0,0 +1,10 @@ +mcl_core +mcl_sounds +mcl_nether +mcl_end +mcl_fences +mcl_walls +mcl_ocean +mcl_colorblocks +stairs +mcstair diff --git a/fences.lua b/fences.lua new file mode 100644 index 0000000..bcb8b35 --- /dev/null +++ b/fences.lua @@ -0,0 +1,11 @@ +-- Red Nether Brick Fence (without fence gate!) +mcl_fences.register_fence("red_nether_brick_fence", "Red Nether Brick Fence", nil, "mcl_nether_red_nether_brick.png", "default_fence.png", nil, {cracky=2, deco_block=1, fence_nether_brick=1}, {"group:fence_nether_brick"}, mcl_sounds.node_sound_stone_defaults()) + +minetest.register_craft({ + output = 'mcl_supplemental:red_nether_brick_fence 6', + recipe = { + {"mcl_nether:red_nether_brick", "mcl_nether:red_nether_brick", "mcl_nether:red_nether_brick"}, + {"mcl_nether:red_nether_brick", "mcl_nether:red_nether_brick", "mcl_nether:red_nether_brick"}, + } +}) + diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..8087348 --- /dev/null +++ b/init.lua @@ -0,0 +1,5 @@ +dofile(minetest.get_modpath(minetest.get_current_modname()).."/stairslabs.lua") +dofile(minetest.get_modpath(minetest.get_current_modname()).."/fences.lua") + +-- TODO: Walls +dofile(minetest.get_modpath(minetest.get_current_modname()).."/walls.lua") diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..b877482 --- /dev/null +++ b/mod.conf @@ -0,0 +1 @@ +name = mcl_supplemental diff --git a/stairslabs.lua b/stairslabs.lua new file mode 100644 index 0000000..dac71ee --- /dev/null +++ b/stairslabs.lua @@ -0,0 +1,157 @@ +stairs.register_stair_and_slab("end_bricks", "mcl_end:end_bricks", + {cracky=3}, + {"mcl_end_end_bricks.png"}, + "End Stone Brick Stairs", + "End Stone Brick Slab", + mcl_sounds.node_sound_stone_defaults()) +mcstair.add("stairs:stair_end_bricks") + +stairs.register_stair_and_slab("red_nether_brick", "mcl_nether:red_nether_brick", + {cracky=2}, + {"mcl_nether_red_nether_brick.png"}, + "Red Nether Brick Stairs", + "Red Nether Brick Slab", + mcl_sounds.node_sound_stone_defaults()) +mcstair.add("stairs:stair_red_nether_brick") + +stairs.register_stair_and_slab("prismarine", "mcl_ocean:prismarine", + {cracky=3}, + {{name="mcl_ocean_prismarine_anim.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=45}}}, + "Prismarine Stairs", + "Prismarine Slab", + mcl_sounds.node_sound_stone_defaults()) +mcstair.add("stairs:stair_prismarine") + +stairs.register_stair_and_slab("prismarine_dark", "mcl_ocean:prismarine_dark", + {cracky=3}, + {"mcl_ocean_prismarine_dark.png"}, + "Dark Prismarine Stairs", + "Dark Prismarine Slab", + mcl_sounds.node_sound_stone_defaults()) +mcstair.add("stairs:stair_prismarine_dark") + +stairs.register_stair_and_slab("stonebrickmossy", "mcl_core:stonebrickmossy", + {cracky=3}, + {"default_stonebrick_mossy.png"}, + "Mossy Stone Brick Stairs", + "Mossy Stone Brick Slab", + mcl_sounds.node_sound_stone_defaults()) +mcstair.add("stairs:stair_stonebrickmossy") + +stairs.register_stair_and_slab("mossycobble", "mcl_core:mossycobble", + {cracky=3}, + {"default_mossycobble.png"}, + "Moss Stone Stairs", + "Moss Stone Slab", + mcl_sounds.node_sound_stone_defaults()) +mcstair.add("stairs:stair_mossycobble") + +stairs.register_stair_and_slab("lapisblock", "mcl_core:lapisblock", + {cracky=3}, + {"default_lapis_block.png"}, + "Lapis Lazuli Stairs", + "Lapis Lazuli Slab", + mcl_sounds.node_sound_stone_defaults()) +mcstair.add("stairs:stair_lapisblock") + +stairs.register_stair_and_slab("goldblock", "mcl_core:goldblock", + {cracky=3}, + {"default_gold_block.png"}, + "Stairs of Gold", + "Slab of Gold", + mcl_sounds.node_sound_stone_defaults()) +mcstair.add("stairs:stair_goldblock") + +stairs.register_stair_and_slab("ironblock", "mcl_core:ironblock", + {cracky=3}, + {"default_steel_block.png"}, + "Stairs of Iron", + "Slab of Iron", + mcl_sounds.node_sound_stone_defaults()) +mcstair.add("stairs:stair_ironblock") + +stairs.register_stair_and_slab("andesite_smooth", "mcl_core:andesite_smooth", + {cracky=3}, + {"default_andesite_smooth.png"}, + "Polished Andesite Stairs", + "Polished Andesite Slab", + mcl_sounds.node_sound_stone_defaults()) +mcstair.add("stairs:stair_andesite_smooth") + +stairs.register_stair_and_slab("diorite_smooth", "mcl_core:diorite_smooth", + {cracky=3}, + {"default_diorite_smooth.png"}, + "Polished Diorite Stairs", + "Polished Diorite Slab", + mcl_sounds.node_sound_stone_defaults()) +mcstair.add("stairs:stair_diorite_smooth") + +stairs.register_stair_and_slab("granite_smooth", "mcl_core:granite_smooth", + {cracky=3}, + {"default_granite_smooth.png"}, + "Polished Granite Stairs", + "Polished Granite Slab", + mcl_sounds.node_sound_stone_defaults()) +mcstair.add("stairs:stair_granite_smooth") + +stairs.register_slab("stonebrickcarved", "mcl_core:stonebrickcarved", + {cracky=3}, + {"default_stonebrick_carved.png", "default_stonebrick_carved.png", "mcl_supplemental_stonebrick_carved_slab.png"}, + "Chiseled Stone Brick Slab", + mcl_sounds.node_sound_stone_defaults(), "Double Chiseled Stone Brick Slab") + +-- TODO: Chiseled stone brick stairs + +local block = {} +block.dyes = { + {"white", "White", "white"}, + {"grey", "Grey", "dark_grey"}, + {"silver", "Light Grey", "grey"}, + {"black", "Black", "black"}, + {"red", "Red", "red"}, + {"yellow", "Yellow", "yellow"}, + {"green", "Green", "dark_green"}, + {"cyan", "Cyan", "cyan"}, + {"blue", "Blue", "blue"}, + {"magenta", "Magenta", "magenta"}, + {"orange", "Orange", "orange"}, + {"purple", "Purple", "violet"}, + {"brown", "Brown", "brown"}, + {"pink", "Pink", "pink"}, + {"lime", "Lime", "green"}, + {"light_blue", "Light Blue", "lightblue"}, +} + +for i=1, #block.dyes do + local c = block.dyes[i][1] + stairs.register_stair_and_slab("concrete_"..c, "mcl_colorblocks:concrete_"..c, + {cracky=3}, + {"mcl_colorblocks_concrete_"..block.dyes[i][1]..".png"}, + block.dyes[i][2].." Concrete Stairs", + block.dyes[i][2].." Concrete Slab", + mcl_sounds.node_sound_stone_defaults()) + mcstair.add("stairs:stair_concrete_"..c) +end + +minetest.register_craft({ + type = "shapeless", + output = "stairs:stair_stonebrickmossy", + recipe = { "stairs:stair_stonebrick", "mcl_core:vine" }, +}) + +minetest.register_craft({ + type = "shapeless", + output = "stairs:slab_stonebrickmossy", + recipe = { "stairs:slab_stonebrick", "mcl_core:vine" }, +}) +minetest.register_craft({ + type = "shapeless", + output = "stairs:stair_mossycobble", + recipe = { "stairs:stair_cobble", "mcl_core:vine" }, +}) + +minetest.register_craft({ + type = "shapeless", + output = "stairs:slab_mossycobble", + recipe = { "stairs:slab_cobble", "mcl_core:vine" }, +}) diff --git a/textures/mcl_supplemental_stonebrick_carved_slab.png b/textures/mcl_supplemental_stonebrick_carved_slab.png new file mode 100644 index 0000000000000000000000000000000000000000..0ffd8ec713958f07ae61ea4f1f8b3fb3a48e6c33 GIT binary patch literal 398 zcwXxa@N?(olHy`uVBq!ia0vp^3Lwk@BpAX3RW*PVV{wqX6T`Z5GB1G~rX+877Y2q^ zy~;*F9%q3^WHAE+w=f7ZGR&GI0Tg5}@$_|Nf5^lkDj~e-!$J|D2|}JOjv*GO-(GU; zyX+w1dNFui{9G1Qt_5kwlx{EzNvEp!L@+c-Y9}-_X!zwEFPrIT<)jq-!hB!Vf6xER z`k7yMPJ5fdCTEcqv5#xIrk>W}Ri>*KaQo_4N_ekGe^H`gki@=Ob?FStw>M?O*k22N z`I0|l(m|26=ful@9(^5aG}XZ8?ABlVpPXH7-*GkJ0kduEMCSgQZ)F}PiX|3(6J}1$ zyZy^f%%pcl@t!|#FGsx3Tcf?T?e(We^D@pJIrML?EuWlaRB^(2|EV0)&!!YFdwe|X zRr{in*~a=&P9;^pvK(#i-SS^GVfmCpoS{#@X+D`*sm1j%*T*q+=ejcy^LBW3>U7T1 qHQg=f?{K!~GJ=6eh`1r@*-}*3Ab)gKzq9SxvX