Drum Set (Somewhat)

Discussion in 'CommandHelper Scripts' started by SoftMC, Jun 9, 2017.

  1. SoftMC

    SoftMC New Member

    Nothing too complicated, just something to play around with in your spare time :p


    In main.ms:

    bind(player_interact, null, array('block': '35'), @e) {
    switch(get_block_at(@e['location'])) {
    case '35:0':
    play_named_sound(@e['location'], array(
    'sound': 'note.snare'
    ));

    case '35:3':
    play_named_sound(@e['location'], array(
    'sound': 'note.bd'
    ));
    }
    }