From 29883883c2460f0f3fab1a9cd516aaebe4df259b Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Fri, 20 Nov 2015 23:47:15 -0800 Subject: [PATCH] Noteblocks! Pitch is also converted. --- tile_entities.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tile_entities.py b/tile_entities.py index f4ac452..342496d 100644 --- a/tile_entities.py +++ b/tile_entities.py @@ -62,6 +62,11 @@ def convert_sign(te): "formspec": "size[6,4]textarea[0,-0.3;6.5,3;text;;${text}]button_exit[2,3.4;2,1;ok;Write]background[-0.5,-0.5;7,5;bg_signs_lib.jpg]"} return None, None, (fields, {}) +def convert_nodeblock(te): + pitch = te.get("note") + return None, int(pitch), None + te_convert = {"chest": convert_chest, "sign": convert_sign, - "furnace": convert_furnace} + "furnace": convert_furnace, + "music": convert_nodeblock}