summaryrefslogtreecommitdiff
path: root/mesecons/mesecons_noteblock
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons/mesecons_noteblock')
-rw-r--r--mesecons/mesecons_noteblock/depends.txt1
-rw-r--r--mesecons/mesecons_noteblock/doc/noteblock/description.html13
-rw-r--r--mesecons/mesecons_noteblock/doc/noteblock/preview.pngbin118753 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/doc/noteblock/recipe.pngbin18182 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/init.lua69
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a.oggbin10808 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a2.oggbin11735 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp.oggbin10732 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp2.oggbin11000 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b.oggbin10282 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b2.oggbin10045 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c.oggbin11670 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c2.oggbin16981 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_crash.oggbin50320 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp.oggbin11651 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp2.oggbin17008 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d.oggbin11175 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d2.oggbin16678 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp.oggbin10882 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp2.oggbin16145 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e.oggbin10829 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e2.oggbin15458 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f.oggbin10990 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f2.oggbin14917 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp.oggbin10509 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp2.oggbin14139 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g.oggbin10465 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g2.oggbin13342 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp.oggbin10595 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp2.oggbin12583 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_hihat.oggbin5459 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_kick.oggbin10361 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_litecrash.oggbin30453 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/sounds/mesecons_noteblock_snare.oggbin9865 -> 0 bytes
-rw-r--r--mesecons/mesecons_noteblock/textures/mesecons_noteblock.pngbin889 -> 0 bytes
35 files changed, 0 insertions, 83 deletions
diff --git a/mesecons/mesecons_noteblock/depends.txt b/mesecons/mesecons_noteblock/depends.txt
deleted file mode 100644
index acaa924..0000000
--- a/mesecons/mesecons_noteblock/depends.txt
+++ /dev/null
@@ -1 +0,0 @@
-mesecons
diff --git a/mesecons/mesecons_noteblock/doc/noteblock/description.html b/mesecons/mesecons_noteblock/doc/noteblock/description.html
deleted file mode 100644
index 729bfe1..0000000
--- a/mesecons/mesecons_noteblock/doc/noteblock/description.html
+++ /dev/null
@@ -1,13 +0,0 @@
-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:
-<table colspace="5">
-<tr><th>Block Below</th><th>Effect</th></tr>
-<tr><td>Glass</td><td>Hihat</td></tr>
-<tr><td>Stone</td><td>Kick</td></tr>
-<tr><td>Chest</td><td>Snare</td></tr>
-<tr><td>Tree</td><td>Crash</td></tr>
-<tr><td>Glass</td><td>Hihat</td></tr>
-<tr><td>Wood</td><td>Lite Crash</td></tr>
-<tr><td>Coal Block</td><td>Explosion Sound </td></tr>
-<tr><td>Lava Source</td><td>Fire Sound</td></tr>
-<tr><td>Steel Block</td><td>Raises the pitch by one octave</td></tr>
-</table>
diff --git a/mesecons/mesecons_noteblock/doc/noteblock/preview.png b/mesecons/mesecons_noteblock/doc/noteblock/preview.png
deleted file mode 100644
index c4991fb..0000000
--- a/mesecons/mesecons_noteblock/doc/noteblock/preview.png
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/doc/noteblock/recipe.png b/mesecons/mesecons_noteblock/doc/noteblock/recipe.png
deleted file mode 100644
index d3c3675..0000000
--- a/mesecons/mesecons_noteblock/doc/noteblock/recipe.png
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/init.lua b/mesecons/mesecons_noteblock/init.lua
deleted file mode 100644
index d5e49ff..0000000
--- a/mesecons/mesecons_noteblock/init.lua
+++ /dev/null
@@ -1,69 +0,0 @@
-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
deleted file mode 100644
index 331fc1c..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a2.ogg
deleted file mode 100644
index 695b0f4..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_a2.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp.ogg
deleted file mode 100644
index db96aed..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp2.ogg
deleted file mode 100644
index 27bd09d..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_asharp2.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b.ogg
deleted file mode 100644
index 810fe18..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b2.ogg
deleted file mode 100644
index 3de1250..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_b2.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c.ogg
deleted file mode 100644
index 5c60d31..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c2.ogg
deleted file mode 100644
index 724db7d..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_c2.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_crash.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_crash.ogg
deleted file mode 100644
index 0308d11..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_crash.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp.ogg
deleted file mode 100644
index 12c1ef3..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp2.ogg
deleted file mode 100644
index fc7f6c8..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_csharp2.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d.ogg
deleted file mode 100644
index 929b7fb..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d2.ogg
deleted file mode 100644
index dfd702b..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_d2.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp.ogg
deleted file mode 100644
index eb6045d..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp2.ogg
deleted file mode 100644
index 5ac16dd..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_dsharp2.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e.ogg
deleted file mode 100644
index 94977e0..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e2.ogg
deleted file mode 100644
index 1dcc0c4..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_e2.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f.ogg
deleted file mode 100644
index 221d926..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f2.ogg
deleted file mode 100644
index acf10db..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_f2.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp.ogg
deleted file mode 100644
index 7af83a8..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp2.ogg
deleted file mode 100644
index a96f637..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_fsharp2.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g.ogg
deleted file mode 100644
index 480ca36..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g2.ogg
deleted file mode 100644
index 917b2b9..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_g2.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp.ogg
deleted file mode 100644
index 2e71fea..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp2.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp2.ogg
deleted file mode 100644
index 941c685..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_gsharp2.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_hihat.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_hihat.ogg
deleted file mode 100644
index 0afa7c0..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_hihat.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_kick.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_kick.ogg
deleted file mode 100644
index 10d585b..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_kick.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_litecrash.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_litecrash.ogg
deleted file mode 100644
index 79ab256..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_litecrash.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_snare.ogg b/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_snare.ogg
deleted file mode 100644
index 83a7944..0000000
--- a/mesecons/mesecons_noteblock/sounds/mesecons_noteblock_snare.ogg
+++ /dev/null
Binary files differ
diff --git a/mesecons/mesecons_noteblock/textures/mesecons_noteblock.png b/mesecons/mesecons_noteblock/textures/mesecons_noteblock.png
deleted file mode 100644
index 7158a49..0000000
--- a/mesecons/mesecons_noteblock/textures/mesecons_noteblock.png
+++ /dev/null
Binary files differ