Skip to content

Commit

Permalink
Fix tests by waiting for entities to load
Browse files Browse the repository at this point in the history
  • Loading branch information
aksiome committed Aug 5, 2024
1 parent 39edb1b commit 8e2e5bb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Linking entities together
# @batch bs.link

await entity B5-0-0-0-1

summon minecraft:armor_stand 0.0 0.0 0.0 {Tags:["packtest","packtest.1"],NoGravity:1b}
summon minecraft:armor_stand 0.5 0.2 1.0 {Tags:["packtest","packtest.2"],NoGravity:1b}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Imitate position and rotation
# @batch bs.link

await entity B5-0-0-0-1

summon minecraft:armor_stand 0.0 0.0 0.0 {Tags:["packtest","packtest.1"],NoGravity:1b}
summon minecraft:armor_stand 0.0 0.0 0.0 {Tags:["packtest","packtest.2"],NoGravity:1b}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Keep the local position
# @batch bs.link

await entity B5-0-0-0-1

summon minecraft:armor_stand 0.0 0.0 0.0 {Tags:["packtest","packtest.1"],NoGravity:1b}
summon minecraft:armor_stand 0.0 0.0 1.0 {Tags:["packtest","packtest.2"],NoGravity:1b}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Mirror around a point
# @batch bs.link

await entity B5-0-0-0-1

summon minecraft:armor_stand 0.0 0.0 0.0 {Tags:["packtest","packtest.1"],NoGravity:1b,Rotation:[75f,12f]}
summon minecraft:armor_stand 0.0 0.0 0.0 {Tags:["packtest","packtest.2"],NoGravity:1b,Rotation:[0f,0f]}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Reverse position and rotation
# @batch bs.link

await entity B5-0-0-0-1

summon minecraft:armor_stand 0.0 0.0 1.0 {Tags:["packtest","packtest.1"],NoGravity:1b}
summon minecraft:armor_stand 0.0 0.0 0.0 {Tags:["packtest","packtest.2"],NoGravity:1b}

Expand Down
2 changes: 2 additions & 0 deletions datapacks/Bookshelf/data/bs.link/test/update_link.mcfunction
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Update the link
# @batch bs.link

await entity B5-0-0-0-1

summon minecraft:armor_stand 0.0 0.0 0.0 {Tags:["packtest","packtest.1"],NoGravity:1b}
summon minecraft:armor_stand 0.5 0.2 1.0 {Tags:["packtest","packtest.2"],NoGravity:1b}

Expand Down

0 comments on commit 8e2e5bb

Please sign in to comment.