-
-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrote Wand of the Forest generic block manipulation logic (#4507)
(fixes #3223) - excluded various blocks from wand interactions entirely via "botania:unwandable" tag - manipulation logic now ensures that either the new state can "survive" (according to the block state's own logic) or the block state remains unchanged - added support for RotatedPillarBlock (e.g. logs), which cycles through the possible axis values - added support for the 16 rotations of standing/ceiling-hanging sign blocks, which are cycled through - manipulating the side of stair, trapdoor, or single slab blocks toggles their vertical adjustment in the block space - restricted side property toggling to block states that have all six boolean direction properties (primarily for toggling the face states of huge mushroom blocks) - improved facing property rotation: - excluded block states that represent half of a bed, double chest, or extended piston from all rotation attempts - blocks that can be attached to walls, floors, and ceilings, and also rotated horizontally are rotated clockwise around the clicked side - if all six directions are supported, rotate clockwise around the clicked side - if rotating around the clicked side isn't possible in either of the above cases, flip over to the opposite facing - otherwise, if not all six possible directions are supported, iterate to the next valid facing direction - if neither of the above apply, let the block state handle the rotation, trying clockwise 90 degrees, 180 degrees and counter-clockwise 90 degrees (in that order, whichever is found to be valid first)
- Loading branch information
1 parent
877fc54
commit 3dc86fe
Showing
5 changed files
with
183 additions
and
46 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
Xplat/src/generated/resources/.cache/bfa01a6ca2555c100103725bf5c9e6da285f29c3
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 9 additions & 1 deletion
10
Xplat/src/generated/resources/data/botania/tags/blocks/unwandable.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
Xplat/src/generated/resources/data/minecraft/tags/blocks/fire.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters