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 KubeJS API for casings to easily imitate blocks #697

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Conversation

Technici4n
Copy link
Contributor

Fixes #689 by introducing the following new syntax for machine casings that imitate an existing block:

MIMachineEvents.registerCasings(e => {
    e.registerBlockImitation('netherrack', 'modern_industrialization:netherrack_machine_casing');
})

e.register('netherrack') only registers the casing, but since we do not automatically generate top/side/bottom copies of the texture anymore for casing parts it leads to a missing model. Either copy the textures manually, add a casing JSON manually, or use registerBlockImitation.

@Technici4n Technici4n enabled auto-merge (squash) April 12, 2024 12:01
@Technici4n Technici4n merged commit 0efc2bf into 1.20.1 Apr 12, 2024
2 checks passed
@Technici4n Technici4n deleted the fix-689 branch April 12, 2024 12:08
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.

1 participant