Skip to content

Commit fa64d51

Browse files
committed
track export part 2
1 parent d6c5271 commit fa64d51

11 files changed

Lines changed: 178 additions & 24 deletions

File tree

Minecraft Note Block Studio.yyp

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
function block_circuit_track(x, y, z){
2+
TAG_List("pos", 3, 3)
3+
buffer_write_int_be(y)
4+
buffer_write_int_be(z)
5+
buffer_write_int_be(x)
6+
TAG_Int("state", 1)
7+
}

scripts/block_circuit_track/block_circuit_track.yy

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/block_other/block_other.gml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ function block_other(argument0, argument1, argument2, argument3, argument4) {
22
// block_other(x, y, z, id, data)
33
sch_block_write(argument0, argument1, argument2, argument3)
44
sch_data_write(argument0, argument1, argument2, argument4)
5-
totalblocksc++
65

76

87

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
function block_other_track(x, y, z, id, data){
2+
var insnum = insnum = ds_list_size(instrument_list)
3+
if (id = 0) TAG_Int("state", insnum * 26 + 4) //air
4+
else if (id = 35 && data = 11) TAG_Int("state", insnum * 26 + 3) //blue_wool
5+
else if (id = 65) TAG_Int("state", insnum * 26 + 5) //ladder
6+
else if (id = 55) TAG_Int("state", insnum * 26 + 6) //redstone_wire
7+
else if (id = 75 && data = 5) TAG_Int("state", insnum * 26 + 16) //unlit torch
8+
else if (id = 76 && data = 5) TAG_Int("state", insnum * 26 + 17) //lit torch
9+
else if (id = 77) TAG_Int("state", insnum * 26 + 18) //south stone_button
10+
else if (id = 27) TAG_Int("state", insnum * 26 + 20) //ns powered_rail
11+
else if (id = 66) TAG_Int("state", insnum * 26 + 22) //ns rail
12+
else if (id = 75 && data = 1) TAG_Int("state", insnum * 26 + 23) //east unlit walltorch
13+
else if (id = 76 && data = 1) TAG_Int("state", insnum * 26 + 24) //east lit walltorch
14+
else if (id = 75 && data = 2) TAG_Int("state", insnum * 26 + 25) //west unlit walltorch
15+
else if (id = 76 && data = 2) TAG_Int("state", insnum * 26 + 26) //west lit walltorch
16+
else if (id = 69) TAG_Int("state", insnum * 26 + 27) //south lever
17+
else if (id = 75 && data = 4) TAG_Int("state", insnum * 26 + 28) //north lit walltorch
18+
else if (id = 44) TAG_Int("state", insnum * 26 + 29) //top slab
19+
else {
20+
for (var i = 0; i < insnum; i++) {
21+
if (id = obj_controller.sch_exp_ins_block[i] && data = obj_controller.sch_exp_ins_data[i]) {TAG_Int("state", 3 + i); break;}
22+
else if (i = insnum - 1) {TAG_Int("state", insnum * 26 + 4); break;}
23+
}
24+
}
25+
TAG_List("pos", 3, 3)
26+
buffer_write_int_be(y)
27+
buffer_write_int_be(z)
28+
buffer_write_int_be(x)
29+
TAG_End()
30+
}

scripts/block_other_track/block_other_track.yy

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function block_repeater_track(x, y, z, delay, direction, powered){
2+
var insnum = insnum = ds_list_size(instrument_list)
3+
var dir
4+
if (direction = 1) dir = 11
5+
else if (direction = 1 + 4) dir = 12
6+
else if (direction = 1 + 4 * 2) dir = 13
7+
else if (direction = 1 + 4 * 3) dir = 14
8+
else if (direction = 2) dir = 7
9+
else if (direction = 2 + 4) dir = 8
10+
else if (direction = 2 + 4 * 2) dir = 9
11+
else if (direction = 2 + 4 * 3) dir = 10
12+
else if (direction = 3) dir = 15
13+
TAG_List("pos", 3, 3)
14+
buffer_write_int_be(y)
15+
buffer_write_int_be(z)
16+
buffer_write_int_be(x)
17+
TAG_Int("state", insnum * 26 + dir)
18+
TAG_End()
19+
}

scripts/block_repeater_track/block_repeater_track.yy

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
function block_walkway_track(x, y, z){
2+
TAG_List("pos", 3, 3)
3+
buffer_write_int_be(y)
4+
buffer_write_int_be(z)
5+
buffer_write_int_be(x)
6+
TAG_Int("state", 0)
7+
TAG_End()
8+
}

scripts/block_walkway_track/block_walkway_track.yy

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)