-
-
Notifications
You must be signed in to change notification settings - Fork 414
Llama+TraderLlama Fix & ExprSpawnerType #7951
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
APickledWalrus
merged 11 commits into
SkriptLang:dev/feature
from
Absolutionism:dev/Llama+TraderLlama-Fix
Jun 30, 2025
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
51e2eb0
Initial Commit
Absolutionism 5b48a1c
Update 7951-llama and trader llama.sk
Absolutionism f46ef74
Sovdes Fixes
Absolutionism 7800888
Requested Changes
Absolutionism fa74beb
Fix Test
Absolutionism 62d6373
Pickles Changes
Absolutionism 4656e46
Merge branch 'dev/feature' into dev/Llama+TraderLlama-Fix
Absolutionism be0b9f8
Merge branch 'dev/feature' into dev/Llama+TraderLlama-Fix
Absolutionism 2853999
Merge branch 'dev/feature' into dev/Llama+TraderLlama-Fix
Absolutionism 2fd5db2
Merge branch 'dev/feature' into dev/Llama+TraderLlama-Fix
Absolutionism 9f7bbf7
Merge branch 'dev/feature' into dev/Llama+TraderLlama-Fix
Absolutionism 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
49 changes: 49 additions & 0 deletions
49
src/test/skript/tests/regressions/7951-llama and trader llama.sk
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,49 @@ | ||
| test "llama entity data": | ||
| spawn a llama at test-location: | ||
| set {_entity} to entity | ||
| assert {_entity} is a llama with "Llama should be a llama" | ||
| assert {_entity} is not a trader llama with "Llama should not be a trader llama" | ||
| clear entity within {_entity} | ||
|
|
||
| spawn a creamy llama at test-location: | ||
| set {_entity} to entity | ||
| assert {_entity} is a llama with "Creamy llama should be a llama" | ||
| assert {_entity} is a creamy llama with "Creamy llama should be a creamy llama" | ||
| assert {_entity} is not a gray llama with "Creamy llama should not be a gray llama" | ||
| assert {_entity} is not a trader llama with "Creamy llama should not be a trader llama" | ||
| assert {_entity} is not a creamy trader llama with "Creamy llama should not be a creamy trader llama" | ||
| assert {_entity} is not a gray trader llama with "Creamy llama should not be a gray trader llama" | ||
| clear entity within {_entity} | ||
|
|
||
| set {_old} to blockdata of test-block | ||
| set test-block to a spawner | ||
| set spawner type of test-block to a llama | ||
| assert spawner type of test-block is a llama with "Monster spawner should be a llama" | ||
| assert spawner type of test-block is not a trader llama with "Monster spawner should not be a trader llama" | ||
| set blockdata of test-block to {_old} | ||
| clear all entities | ||
|
|
||
| test "trader llama entity data": | ||
| spawn a trader llama at test-location: | ||
| set {_entity} to entity | ||
| assert {_entity} is a llama with "Trader llama should be a llama" | ||
| assert {_entity} is a trader llama with "Trader llama should be a trader llama" | ||
| clear entity within {_entity} | ||
|
|
||
| spawn a creamy trader llama at test-location: | ||
| set {_entity} to entity | ||
| assert {_entity} is a llama with "Creamy trader llama should be a llama" | ||
| assert {_entity} is a creamy llama with "Creamy trader llama should be a creamy llama" | ||
| assert {_entity} is not a gray llama with "Creamy trader llama should not be a gray llama" | ||
| assert {_entity} is a trader llama with "Creamy trader llama should be a trader llama" | ||
| assert {_entity} is a creamy trader llama with "Creamy trader llama should be a creamy trader llama" | ||
| assert {_entity} is not a gray trader llama with "Creamy trader llama should not be a gray trader llama" | ||
| clear entity within {_entity} | ||
|
|
||
| set {_old} to blockdata of test-block | ||
| set test-block to a spawner | ||
| set spawner type of test-block to a trader llama | ||
| assert spawner type of test-block is a llama with "Monster spawner should be a llama" | ||
| assert spawner type of test-block is a trader llama with "Monster spawner should be a trader llama" | ||
| set blockdata of test-block to {_old} | ||
| clear all entities |
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
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.