Skip to content
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

Add support for spawning dropped items #6746

Merged
merged 5 commits into from
May 31, 2024

Conversation

sovdeeth
Copy link
Member

@sovdeeth sovdeeth commented May 30, 2024

Description

Allows DroppedItemData to be spawned via the World#dropItem method.

I'm kind of shaky on how the EntityData system works, so please correct me if I misunderstood parts!

This is marked as a bug fix since you could spawn dropped stone and it would do nothing, despite the fact that logically it should work, since you can drop stone just fine.


Target Minecraft Versions: 1.17+
Requirements: none
Related Issues: #6745

@sovdeeth sovdeeth added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.8 Targeting a 2.8.X version release labels May 30, 2024
@sovdeeth sovdeeth changed the title Add support for spawning dropped items 1.17+ Add support for spawning dropped items May 30, 2024
Copy link
Member

@APickledWalrus APickledWalrus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work

src/main/java/ch/njol/skript/sections/EffSecSpawn.java Outdated Show resolved Hide resolved
@sovdeeth sovdeeth added the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label May 31, 2024
@Moderocky Moderocky force-pushed the fix/spawn-dropped-items-1.17 branch from 6a7d90a to ff8051a Compare May 31, 2024 14:55
@Moderocky Moderocky merged commit 4f3ace9 into SkriptLang:dev/patch May 31, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.8 Targeting a 2.8.X version release bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants