// This is just a simple Minecraft mod I made to automate the task of laying blocks in mid air
// Simply line yourself up to start laying your blocks in mid air and press R3/RS you'll begin moving backwards and drop whatever block you have highlighted
int auto_play = 0;
main {
if((get_val(XB360_LY)) <= 10) {
set_led(LED_1, 1);
set_led(LED_2, 0);
set_led(LED_3, 0);
set_led(LED_4, 0);
}
if(get_val(XB360_RIGHT)) {
set_val(XB360_RB, 100);
}
if(get_val(XB360_LEFT)) {
set_val(XB360_LB, 100);
}
if (event_press(XB360_RS)) {
auto_play = !auto_play;
if (combo_running(AutoPlay)) {
combo_stop(AutoPlay)
}
}
// Activate when toggle set
if (auto_play) {
combo_run(AutoPlay)
}
}
// Main Auto-Play Sequence
combo AutoPlay {
set_led(LED_1, 2);
set_led(LED_2, 2);
set_led(LED_3, 2);
set_led(LED_4, 2);
set_val(XB360_LT , 100);
set_val(XB360_LY , 100);
if((get_val(PS3_LY)) >= 20 && (get_val(XB360_LT))) {
combo_run(Turbo_1);
}
if((get_val(PS3_LY)) >= 20 && (get_val(XB360_LT))) {
set_val(XB360_LY, 60);
}
}
combo Turbo_1 {
set_val(XB360_LT, 100);
wait(40);
set_val(XB360_LT, 0);
wait(40);
set_val(XB360_LT, 0);
}