-
-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add get all armour of living entities (#5456)
* Add get all armour * Apply changes * Update src/main/java/ch/njol/skript/expressions/ExprArmorSlot.java Co-authored-by: Ayham Al Ali <20037329+AyhamAl-Ali@users.noreply.github.com> --------- Co-authored-by: Ayham Al Ali <20037329+AyhamAl-Ali@users.noreply.github.com> Co-authored-by: Moderocky <admin@moderocky.com>
- Loading branch information
1 parent
3dfc252
commit 4b5579c
Showing
2 changed files
with
68 additions
and
34 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
14 changes: 14 additions & 0 deletions
14
src/test/skript/tests/syntaxes/expressions/ExprArmorSlot.sk
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,14 @@ | ||
test "armour slot": | ||
spawn zombie at spawn of world "world": | ||
set boots of event-entity to gold boots | ||
assert boots of event-entity are gold boots with "Gold boots were not applied" | ||
set leggings of event-entity to iron leggings | ||
assert leggings of event-entity are iron leggings with "Iron leggings were not applied" | ||
set chestplate of event-entity to diamond chestplate | ||
assert chestplate of event-entity is diamond chestplate with "Diamond chestplate was not applied" | ||
set helmet of event-entity to dirt block | ||
assert helmet of event-entity is dirt block with "Dirt helmet was not applied" | ||
assert armour of event-entity contains dirt block, diamond chestplate, iron leggings and gold boots with "Armour contents were not correct" | ||
clear armour of event-entity | ||
assert armour of event-entity does not contain dirt block, diamond chestplate, iron leggings and gold boots with "Failed to clear EquipmentSlots" | ||
delete event-entity |