-
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev/feature' into dev/beacon-events
- Loading branch information
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
# This test is to see if the `is burning` condition works properly. | ||
# Before, something like `if {x} is burning` would try to compare {x} to the burning damage cause | ||
# instead of whether or not the entity was burning. | ||
test "burning": | ||
spawn a pig at event-location | ||
set {_pig} to the last spawned pig | ||
spawn a pig at event-location: | ||
set {_pig} to entity | ||
|
||
assert "burning" parsed as damage cause is burning with "burning damage cause compare" | ||
set burning time of {_pig} to 9000 ticks | ||
wait a tick | ||
assert entity within {_pig} is burning with "is burning failed" | ||
assert {_pig} is burning with "is burning failed ##2" | ||
clear entity within {_pig} | ||
|
||
ignite {_pig} | ||
assert entity within {_pig} is burning with "entity within is burning failed" | ||
assert {_pig} is burning with "is burning failed" | ||
|
||
delete entity within {_pig} |