Skip to content

add item model support#8779

Open
novystar wants to merge 11 commits into
SkriptLang:dev/featurefrom
novystar:feature/item-model
Open

add item model support#8779
novystar wants to merge 11 commits into
SkriptLang:dev/featurefrom
novystar:feature/item-model

Conversation

@novystar

Copy link
Copy Markdown
Contributor

Problem

Skript doesn't natively support custom item models (different to custom model data).

Solution

added ExprItemModel and ExprItemWithModel, so you can now do:

set item model of {_item} to "minecraft:emerald"
give diamond with the model "minecraft:emerald" to player

Testing Completed

tests/bukkit/item/ExprItemModel.sk

Supporting Information


Completes: #8140
Related: none
AI assistance: none

@novystar
novystar requested a review from a team as a code owner July 16, 2026 17:39
@novystar
novystar requested review from Burbulinis and TheMug06 and removed request for a team July 16, 2026 17:39
@skriptlang-automation skriptlang-automation Bot added needs reviews A PR that needs additional reviews needs triage An issue that hasn't been classified or verified yet labels Jul 16, 2026
@skriptlang-automation

This comment has been minimized.

@novystar novystar changed the title Feature/item model add item model support Jul 16, 2026

@APickledWalrus APickledWalrus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks pretty good overall from a quick look - mainly just some formatting

Comment thread src/main/java/org/skriptlang/skript/bukkit/item/ItemModule.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/item/elements/ExprItemWithModel.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/item/elements/ExprItemWithModel.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/item/elements/ExprItemWithModel.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/item/elements/ExprItemModel.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/item/elements/ExprItemModel.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/item/elements/ExprItemModel.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/item/elements/ExprItemModel.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/item/elements/ExprItemModel.java Outdated
novystar and others added 4 commits July 16, 2026 19:03
Co-authored-by: Patrick Miller <apickledwalrus@icloud.com>
Co-authored-by: Patrick Miller <apickledwalrus@icloud.com>
@novystar

Copy link
Copy Markdown
Contributor Author

thanks pickle, changes have been made :)

@novystar
novystar requested a review from APickledWalrus July 16, 2026 18:35
Comment thread src/main/java/org/skriptlang/skript/bukkit/item/elements/ExprItemWithModel.java Outdated
@skriptlang-automation skriptlang-automation Bot removed the needs reviews A PR that needs additional reviews label Jul 16, 2026
@novystar
novystar requested a review from Absolutionism July 16, 2026 20:17

@AnOwlBe AnOwlBe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

noice

Comment thread src/main/java/org/skriptlang/skript/bukkit/item/elements/ExprItemModel.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/item/elements/ExprItemWithModel.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/item/elements/ExprItemWithModel.java Outdated
@skriptlang-automation skriptlang-automation Bot added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Jul 18, 2026
@skriptlang-automation skriptlang-automation Bot removed the needs triage An issue that hasn't been classified or verified yet label Jul 18, 2026
@github-project-automation github-project-automation Bot moved this to In Review in 2.17 Releases Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Feature request, an issue about something that could be improved, or a PR improving something.

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

4 participants