-
-
Notifications
You must be signed in to change notification settings - Fork 394
EffVehicle + CondIsRiding Update #7386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sovdeeth
merged 11 commits into
SkriptLang:dev/feature
from
Absolutionism:dev/RidingUpdate
Mar 19, 2025
Merged
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
636450b
Initial Commit
Absolutionism 56af9bd
Better Assertion Messages
Absolutionism 0274d0c
Remove PassengerUtils usage
Absolutionism b82a805
Merge branch 'dev/feature' into dev/RidingUpdate
Efnilite ed22119
Requested Changes
Absolutionism 5196da4
Merge branch 'dev/feature' into dev/RidingUpdate
Absolutionism 82ca034
Change expression for mounting
Absolutionism 96f7219
Merge branch 'dev/feature' into dev/RidingUpdate
Absolutionism e540438
Leave Vehicle
Absolutionism 9d773dd
Merge branch 'dev/feature' into dev/RidingUpdate
sovdeeth 082d4d8
Merge branch 'dev/feature' into dev/RidingUpdate
sovdeeth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
test "mounting vehicle": | ||
spawn a villager at test-location: | ||
set {_vehicle} to entity | ||
spawn a cow, a pig and a sheep at test-location: | ||
add entity to {_passengers::*} | ||
make {_passengers::*} ride {_vehicle} | ||
loop {_passengers::*}: | ||
assert loop-value is riding with "Entity (%loop-value%) should pass riding in general" | ||
assert loop-value is riding any entity with "Entity (%loop-value%) should pass riding in general with 'any entity' pattern" | ||
assert loop-value is riding a villager with "Entity (%loop-value%) should pass riding a villager entity data" | ||
assert loop-value is riding {_vehicle} with "Entity (%loop-value%) should pass riding specific entity" | ||
assert loop-value is not riding a zombie villager with "Entity (%loop-value%) should pass riding the wrong entity data" | ||
|
||
make {_passengers::*} dismount | ||
|
||
loop {_passengers::*}: | ||
assert loop-value is not riding with "Entity (%loop-value%) should pass not riding in general" | ||
assert loop-value is not riding any entity with "Entity (%loop-value%) should pass not riding in general with 'any entity' pattern" | ||
assert loop-value is not riding a villager with "Entity (%loop-value%) should pass not riding a villager entity data" | ||
assert loop-value is not riding {_vehicle} with "Entity (%loop-value%) should pass not riding specific entity" | ||
|
||
# Test exception on entity riding itself | ||
make {_vehicle} ride {_vehicle} | ||
assert {_vehicle} is not riding {_vehicle} with "Entity can not be riding itself" | ||
assert passengers of {_vehicle} does not contain {_vehicle} with "Passengers of vehicle should not contain the vehicle itself" | ||
|
||
clear entity within {_vehicle} | ||
clear entities within {_passengers::*} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.