-
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
83 additions
and
82 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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
on piglin barter: | ||
set {_test} to "org.skriptlang.skript.test.tests.syntaxes.events.EvtPiglinBarterTest" | ||
junit test is {_test} | ||
|
||
# Items | ||
|
||
if barter input is gold ingot: | ||
complete objective "correct barter input" for {_test} | ||
|
||
clear barter drops | ||
if size of barter drops is 0: | ||
complete objective "clear barter drops" for {_test} | ||
|
||
set barter drops to 1 emerald and 1 diamond | ||
if: | ||
size of barter drops is 2 | ||
barter drops contains 1 emerald | ||
barter drops contains 1 diamond | ||
then: | ||
complete objective "set barter drops to 2 items" for {_test} | ||
|
||
add 1 iron ingot to barter drops | ||
if: | ||
size of barter drops is 3 | ||
barter drops contains 1 emerald | ||
barter drops contains 1 diamond | ||
barter drops contains 1 iron ingot | ||
then: | ||
complete objective "add item to barter drops" for {_test} | ||
|
||
remove iron ingot from barter drops | ||
if: | ||
size of barter drops is 2 | ||
barter drops contains 1 emerald | ||
barter drops contains 1 diamond | ||
then: | ||
complete objective "remove item from barter drops" for {_test} | ||
|
||
add 1 dirt and 2 dirt to barter drops | ||
if: | ||
size of barter drops is 4 | ||
barter drops contains 1 emerald | ||
barter drops contains 1 diamond | ||
barter drops contains 1 dirt | ||
barter drops contains 2 dirt | ||
then: | ||
complete objective "add multiple items to barter drops" for {_test} | ||
|
||
remove all dirt from barter drops | ||
if: | ||
size of barter drops is 2 | ||
barter drops contains 1 emerald | ||
barter drops contains 1 diamond | ||
then: | ||
complete objective "remove all of an item from barter drops" for {_test} | ||
|
||
remove 1 emerald and 1 diamond from barter drops | ||
if size of barter drops is 0: | ||
complete objective "remove multiple items from barter drops" for {_test} | ||
|
||
complete objective "barter drops test complete" for {_test} |
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