Skip to content

Convert drone model to JSON - #62

Merged
RobertCochran merged 1 commit into
PC-Logix:main-MC1.21.1from
SquidDev:squid/model-cleanup
Aug 22, 2026
Merged

Convert drone model to JSON#62
RobertCochran merged 1 commit into
PC-Logix:main-MC1.21.1from
SquidDev:squid/model-cleanup

Conversation

@SquidDev

Copy link
Copy Markdown
Collaborator

There's no reason this needs to be an in-code model. Let's convert this to JSON, which is a) mode idiomatic and b) makes things much easier when we want to port to 26.2+.

registry.put(PrintBlockLocation, PrintModel)
registry.put(PrintItemLocation, PrintModel)
registry.put(RobotItemLocation, RobotModel)
registry.put(loc(Constants.ItemName.Drone, "inventory"), DroneModel)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What puts the inventory on the drone now that the model class is gone?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The main item model JSON!

@RobertCochran
RobertCochran merged commit 5a02b9f into PC-Logix:main-MC1.21.1 Aug 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants