Skip to content

Commit

Permalink
Fixed test for older minecraft versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeGBLP committed Feb 1, 2025
1 parent 381e8cf commit f58b4c3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/test/scripts/expressions/ExprSpawnerEntityType.sk
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ test "ExprSpawnerEntityType":
set spawner entity type of {_spawner} to zombie
assert spawner entity type of {_spawner} is zombie with "spawner entity type of spawner at location %{_location}% is not zombie"

server version >= 1.21.0

set block at {_location} to trial spawner
set {_spawner} to block at {_location}
set spawner entity type of {_spawner} to skeleton
assert spawner entity type of {_spawner} is zombie with "spawner entity type of spawner at location %{_location}% is not skeleton"
parse if server version >= 1.21.0:
set block at {_location} to trial spawner
set {_spawner} to block at {_location}
set spawner entity type of {_spawner} to skeleton
assert spawner entity type of {_spawner} is zombie with "spawner entity type of spawner at location %{_location}% is not skeleton"

0 comments on commit f58b4c3

Please sign in to comment.