From 8e2e5bb2bd42192d3de8c1eee190d341c8bee466 Mon Sep 17 00:00:00 2001 From: Aksiome <54895777+aksiome@users.noreply.github.com> Date: Mon, 5 Aug 2024 18:37:18 +0200 Subject: [PATCH] Fix tests by waiting for entities to load --- .../Bookshelf/data/bs.link/test/create_link_ata.mcfunction | 2 ++ .../Bookshelf/data/bs.link/test/imitate_pos_and_rot.mcfunction | 2 ++ datapacks/Bookshelf/data/bs.link/test/keep_local_pos.mcfunction | 2 ++ .../Bookshelf/data/bs.link/test/mirror_point_ata.mcfunction | 2 ++ .../Bookshelf/data/bs.link/test/reverse_pos_and_rot.mcfunction | 2 ++ datapacks/Bookshelf/data/bs.link/test/update_link.mcfunction | 2 ++ 6 files changed, 12 insertions(+) diff --git a/datapacks/Bookshelf/data/bs.link/test/create_link_ata.mcfunction b/datapacks/Bookshelf/data/bs.link/test/create_link_ata.mcfunction index c5aa617520..cc7c19bc50 100644 --- a/datapacks/Bookshelf/data/bs.link/test/create_link_ata.mcfunction +++ b/datapacks/Bookshelf/data/bs.link/test/create_link_ata.mcfunction @@ -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} diff --git a/datapacks/Bookshelf/data/bs.link/test/imitate_pos_and_rot.mcfunction b/datapacks/Bookshelf/data/bs.link/test/imitate_pos_and_rot.mcfunction index 9db723c122..7747fccdff 100644 --- a/datapacks/Bookshelf/data/bs.link/test/imitate_pos_and_rot.mcfunction +++ b/datapacks/Bookshelf/data/bs.link/test/imitate_pos_and_rot.mcfunction @@ -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} diff --git a/datapacks/Bookshelf/data/bs.link/test/keep_local_pos.mcfunction b/datapacks/Bookshelf/data/bs.link/test/keep_local_pos.mcfunction index 5d986e3a9f..aac9e38b3c 100644 --- a/datapacks/Bookshelf/data/bs.link/test/keep_local_pos.mcfunction +++ b/datapacks/Bookshelf/data/bs.link/test/keep_local_pos.mcfunction @@ -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} diff --git a/datapacks/Bookshelf/data/bs.link/test/mirror_point_ata.mcfunction b/datapacks/Bookshelf/data/bs.link/test/mirror_point_ata.mcfunction index 01adbcbf64..c117e45ad2 100644 --- a/datapacks/Bookshelf/data/bs.link/test/mirror_point_ata.mcfunction +++ b/datapacks/Bookshelf/data/bs.link/test/mirror_point_ata.mcfunction @@ -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]} diff --git a/datapacks/Bookshelf/data/bs.link/test/reverse_pos_and_rot.mcfunction b/datapacks/Bookshelf/data/bs.link/test/reverse_pos_and_rot.mcfunction index 092ff6b209..0409ac828f 100644 --- a/datapacks/Bookshelf/data/bs.link/test/reverse_pos_and_rot.mcfunction +++ b/datapacks/Bookshelf/data/bs.link/test/reverse_pos_and_rot.mcfunction @@ -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} diff --git a/datapacks/Bookshelf/data/bs.link/test/update_link.mcfunction b/datapacks/Bookshelf/data/bs.link/test/update_link.mcfunction index bbd4cff52a..29611f25e6 100644 --- a/datapacks/Bookshelf/data/bs.link/test/update_link.mcfunction +++ b/datapacks/Bookshelf/data/bs.link/test/update_link.mcfunction @@ -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}