-
-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for spawning dropped items (#6746)
* add support for spawning dropped items 1.17+ * requested changes * Update DroppedItemData.java * requested changes * Update src/main/java/ch/njol/skript/sections/EffSecSpawn.java Co-authored-by: Patrick Miller <apickledwalrus@gmail.com> --------- Co-authored-by: Moderocky <admin@moderocky.com> Co-authored-by: Patrick Miller <apickledwalrus@gmail.com>
- Loading branch information
1 parent
a4a72d0
commit 4f3ace9
Showing
3 changed files
with
95 additions
and
45 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
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
9 changes: 9 additions & 0 deletions
9
src/test/skript/tests/regressions/pull-6746-spawn-dropped-item.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,9 @@ | ||
test "spawn dropped item": | ||
spawn dropped stone at spawn of world "world": | ||
set {_e} to entity | ||
assert {_e} is set with "failed to spawn dropped stone" | ||
delete entity within {_e} | ||
|
||
spawn dropped item at spawn of world "world": | ||
set {_e2} to entity | ||
assert {_e2} is not set with "spawned `dropped item` despite undefined item type" |