From da66780a569712c23ae4f2996cfb4608a9f9d69d Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 1 Apr 2016 20:02:19 -0400 Subject: copy all standard Dreambuilder mods in from the old subgame (exactly as last supplied there, updates to these mods will follow later) --- mesecons/mesecons_noteblock/depends.txt | 1 + .../doc/noteblock/description.html | 13 ++++ .../mesecons_noteblock/doc/noteblock/preview.png | Bin 0 -> 118753 bytes .../mesecons_noteblock/doc/noteblock/recipe.png | Bin 0 -> 18182 bytes mesecons/mesecons_noteblock/init.lua | 69 +++++++++++++++++++++ .../sounds/mesecons_noteblock_a.ogg | Bin 0 -> 10808 bytes .../sounds/mesecons_noteblock_a2.ogg | Bin 0 -> 11735 bytes .../sounds/mesecons_noteblock_asharp.ogg | Bin 0 -> 10732 bytes .../sounds/mesecons_noteblock_asharp2.ogg | Bin 0 -> 11000 bytes .../sounds/mesecons_noteblock_b.ogg | Bin 0 -> 10282 bytes .../sounds/mesecons_noteblock_b2.ogg | Bin 0 -> 10045 bytes .../sounds/mesecons_noteblock_c.ogg | Bin 0 -> 11670 bytes .../sounds/mesecons_noteblock_c2.ogg | Bin 0 -> 16981 bytes .../sounds/mesecons_noteblock_crash.ogg | Bin 0 -> 50320 bytes .../sounds/mesecons_noteblock_csharp.ogg | Bin 0 -> 11651 bytes .../sounds/mesecons_noteblock_csharp2.ogg | Bin 0 -> 17008 bytes .../sounds/mesecons_noteblock_d.ogg | Bin 0 -> 11175 bytes .../sounds/mesecons_noteblock_d2.ogg | Bin 0 -> 16678 bytes .../sounds/mesecons_noteblock_dsharp.ogg | Bin 0 -> 10882 bytes .../sounds/mesecons_noteblock_dsharp2.ogg | Bin 0 -> 16145 bytes .../sounds/mesecons_noteblock_e.ogg | Bin 0 -> 10829 bytes .../sounds/mesecons_noteblock_e2.ogg | Bin 0 -> 15458 bytes .../sounds/mesecons_noteblock_f.ogg | Bin 0 -> 10990 bytes .../sounds/mesecons_noteblock_f2.ogg | Bin 0 -> 14917 bytes .../sounds/mesecons_noteblock_fsharp.ogg | Bin 0 -> 10509 bytes .../sounds/mesecons_noteblock_fsharp2.ogg | Bin 0 -> 14139 bytes .../sounds/mesecons_noteblock_g.ogg | Bin 0 -> 10465 bytes .../sounds/mesecons_noteblock_g2.ogg | Bin 0 -> 13342 bytes .../sounds/mesecons_noteblock_gsharp.ogg | Bin 0 -> 10595 bytes .../sounds/mesecons_noteblock_gsharp2.ogg | Bin 0 -> 12583 bytes .../sounds/mesecons_noteblock_hihat.ogg | Bin 0 -> 5459 bytes .../sounds/mesecons_noteblock_kick.ogg | Bin 0 -> 10361 bytes .../sounds/mesecons_noteblock_litecrash.ogg | Bin 0 -> 30453 bytes .../sounds/mesecons_noteblock_snare.ogg | Bin 0 -> 9865 bytes .../textures/mesecons_noteblock.png | Bin 0 -> 889 bytes 35 files changed, 83 insertions(+) create mode 100644 mesecons/mesecons_noteblock/depends.txt create mode 100644 mesecons/mesecons_noteblock/doc/noteblock/description.html create mode 100644 mesecons/mesecons_noteblock/doc/noteblock/preview.png create mode 100644 mesecons/mesecons_noteblock/doc/noteblock/recipe.png create mode 100644 mesecons/mesecons_noteblock/init.lua create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a2.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp2.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b2.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c2.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_crash.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp2.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d2.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp2.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e2.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f2.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp2.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g2.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp2.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_hihat.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_kick.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_litecrash.ogg create mode 100644 mesecons/mesecons_noteblock/sounds/mesecons_noteblock_snare.ogg create mode 100644 mesecons/mesecons_noteblock/textures/mesecons_noteblock.png (limited to 'mesecons/mesecons_noteblock') diff --git a/mesecons/mesecons_noteblock/depends.txt b/mesecons/mesecons_noteblock/depends.txt new file mode 100644 index 0000000..acaa924 --- /dev/null +++ b/mesecons/mesecons_noteblock/depends.txt @@ -0,0 +1 @@ +mesecons diff --git a/mesecons/mesecons_noteblock/doc/noteblock/description.html b/mesecons/mesecons_noteblock/doc/noteblock/description.html new file mode 100644 index 0000000..729bfe1 --- /dev/null +++ b/mesecons/mesecons_noteblock/doc/noteblock/description.html @@ -0,0 +1,13 @@ +This effector makes a sound if powered and can be used for making music. Normally it makes piano sounds. The sound frequency can be changed by punching the block. There are some special sounds that depend on the block below: + + + + + + + + + + + +
Block BelowEffect
GlassHihat
StoneKick
ChestSnare
TreeCrash
GlassHihat
WoodLite Crash
Coal BlockExplosion Sound
Lava SourceFire Sound
Steel BlockRaises the pitch by one octave
diff --git a/mesecons/mesecons_noteblock/doc/noteblock/preview.png b/mesecons/mesecons_noteblock/doc/noteblock/preview.png new file mode 100644 index 0000000..c4991fb Binary files /dev/null and b/mesecons/mesecons_noteblock/doc/noteblock/preview.png differ diff --git a/mesecons/mesecons_noteblock/doc/noteblock/recipe.png b/mesecons/mesecons_noteblock/doc/noteblock/recipe.png new file mode 100644 index 0000000..d3c3675 Binary files /dev/null and b/mesecons/mesecons_noteblock/doc/noteblock/recipe.png differ diff --git a/mesecons/mesecons_noteblock/init.lua b/mesecons/mesecons_noteblock/init.lua new file mode 100644 index 0000000..d5e49ff --- /dev/null +++ b/mesecons/mesecons_noteblock/init.lua @@ -0,0 +1,69 @@ +minetest.register_node("mesecons_noteblock:noteblock", { + description = "Noteblock", + tiles = {"mesecons_noteblock.png"}, + groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2}, + on_punch = function(pos, node) -- change sound when punched + node.param2 = (node.param2+1)%12 + mesecon.noteblock_play(pos, node.param2) + minetest.add_node(pos, node) + end, + sounds = default.node_sound_wood_defaults(), + mesecons = {effector = { -- play sound when activated + action_on = function(pos, node) + mesecon.noteblock_play(pos, node.param2) + end + }} +}) + +minetest.register_craft({ + output = "mesecons_noteblock:noteblock 1", + recipe = { + {"group:wood", "group:wood", "group:wood"}, + {"group:mesecon_conductor_craftable", "default:steel_ingot", "group:mesecon_conductor_craftable"}, + {"group:wood", "group:wood", "group:wood"}, + } +}) + +local soundnames = { + [0] = "mesecons_noteblock_csharp", + "mesecons_noteblock_d", + "mesecons_noteblock_dsharp", + "mesecons_noteblock_e", + "mesecons_noteblock_f", + "mesecons_noteblock_fsharp", + "mesecons_noteblock_g", + "mesecons_noteblock_gsharp", + + "mesecons_noteblock_a", + "mesecons_noteblock_asharp", + "mesecons_noteblock_b", + "mesecons_noteblock_c" +} + +local node_sounds = { + ["default:glass"] = "mesecons_noteblock_hihat", + ["default:stone"] = "mesecons_noteblock_kick", + ["default:lava_source"] = "fire_large", + ["default:chest"] = "mesecons_noteblock_snare", + ["default:tree"] = "mesecons_noteblock_crash", + ["default:wood"] = "mesecons_noteblock_litecrash", + ["default:coalblock"] = "tnt_explode", +} + +mesecon.noteblock_play = function(pos, param2) + pos.y = pos.y-1 + local nodeunder = minetest.get_node(pos).name + local soundname = node_sounds[nodeunder] + if not soundname then + soundname = soundnames[param2] + if not soundname then + minetest.log("error", "[mesecons_noteblock] No soundname found, test param2") + return + end + if nodeunder == "default:steelblock" then + soundname = soundname.. 2 + end + end + pos.y = pos.y+1 + minetest.sound_play(soundname, {pos = pos}) +end diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a.ogg new file mode 100644 index 0000000..331fc1c Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a2.ogg new file mode 100644 index 0000000..695b0f4 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a2.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp.ogg new file mode 100644 index 0000000..db96aed Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp2.ogg new file mode 100644 index 0000000..27bd09d Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp2.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b.ogg new file mode 100644 index 0000000..810fe18 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b2.ogg new file mode 100644 index 0000000..3de1250 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b2.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c.ogg new file mode 100644 index 0000000..5c60d31 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c2.ogg new file mode 100644 index 0000000..724db7d Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c2.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_crash.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_crash.ogg new file mode 100644 index 0000000..0308d11 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_crash.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp.ogg new file mode 100644 index 0000000..12c1ef3 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp2.ogg new file mode 100644 index 0000000..fc7f6c8 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp2.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d.ogg new file mode 100644 index 0000000..929b7fb Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d2.ogg new file mode 100644 index 0000000..dfd702b Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d2.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp.ogg new file mode 100644 index 0000000..eb6045d Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp2.ogg new file mode 100644 index 0000000..5ac16dd Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp2.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e.ogg new file mode 100644 index 0000000..94977e0 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e2.ogg new file mode 100644 index 0000000..1dcc0c4 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e2.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f.ogg new file mode 100644 index 0000000..221d926 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f2.ogg new file mode 100644 index 0000000..acf10db Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f2.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp.ogg new file mode 100644 index 0000000..7af83a8 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp2.ogg new file mode 100644 index 0000000..a96f637 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp2.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g.ogg new file mode 100644 index 0000000..480ca36 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g2.ogg new file mode 100644 index 0000000..917b2b9 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g2.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp.ogg new file mode 100644 index 0000000..2e71fea Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp2.ogg new file mode 100644 index 0000000..941c685 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp2.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_hihat.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_hihat.ogg new file mode 100644 index 0000000..0afa7c0 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_hihat.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_kick.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_kick.ogg new file mode 100644 index 0000000..10d585b Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_kick.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_litecrash.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_litecrash.ogg new file mode 100644 index 0000000..79ab256 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_litecrash.ogg differ diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_snare.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_snare.ogg new file mode 100644 index 0000000..83a7944 Binary files /dev/null and b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_snare.ogg differ diff --git a/mesecons/mesecons_noteblock/textures/mesecons_noteblock.png b/mesecons/mesecons_noteblock/textures/mesecons_noteblock.png new file mode 100644 index 0000000..7158a49 Binary files /dev/null and b/mesecons/mesecons_noteblock/textures/mesecons_noteblock.png differ -- cgit v1.2.3