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

Use tool modes for changing slab orientation #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Craluminum2413
Copy link

@Craluminum2413 Craluminum2413 commented Mar 11, 2024

Adds tool modes to BlockBehaviorOmniRotatable similar to what is used in ItemHammer, ItemScythe, ItemChisel etc. to change "slabPlaceMode" itemstack attribute.

Removes need in crafting grid for this action and makes it possible to change slab orientation in creative gamemode.

Very recommended to add "showToolModes" property to behavior to prevent this functionality on trapdoors and other blocks that use OmniRotatable but don't implement "auto", "vertical", "horizontal" modes.

Test mod compiled for 1.19.5-rc.1: TestMod.zip

Video demonstration:
https://github.com/anegostudios/vssurvivalmod/assets/69315569/f9892162-9194-4e26-ba81-c86f9cb1b661

Adds tool modes similar to what is used in ItemHammer, ItemScythe, ItemChisel etc. to change `"slabPlaceMode"` itemstack attribute.
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