Skip to content

Main to next (part 1) - #1262

Merged
object-Object merged 6 commits into
FallingColors:1.21from
s5bug:main-to-next
Aug 15, 2026
Merged

Main to next (part 1)#1262
object-Object merged 6 commits into
FallingColors:1.21from
s5bug:main-to-next

Conversation

Robotgiggle and others added 6 commits July 30, 2026 08:15
…allingColors#1218)

On Fabric, the check for "is Break Block able to break this" uses a list
of tools and checks whether any of them are valid for the target block.
However, cobwebs are broken using a sword, and that wasn't included in
the list, which caused Break Block to be unable to break them. This PR
fixes that.
adds `visit` and `visitChildren` to iotas letting you apply a
UnaryOperator to an entire tree of them. this is like hexal's
IMappableIota except I don't know if that does self pre or post (or if
it does self at all). awa.

I haven't tested this in prod; hex doesn't have anything that would use
this yet. @IridescentVoid I believe you have a patch that may want to
use this?

Cc: @IridescentVoid
Change-Id: Ic464f4702ba9b0379c93e31723e2a5fe6a6a6964
Issue: closes FallingColors#1083
Prereq: FallingColors#1195
Adds a list in the config that can be used to rescale the cost of any
action. Entries consist of a resource location and a number (ie
`hexcasting:explode 2.5`) and the cost of the listed action is scaled by
the listed number.

Also adds a config value with a global scaling factor that will apply to
_all_ media costs, if you just want to apply an overall buff or nerf to
hex in your pack/server.

Both of these scaling factors apply before the
`media_consumption_modifier` attribute. The global scaling factor is not
applied to anything in the `cannot_modify_cost` tag, so that making
everything cheaper doesn't immediately introduce a bunch of exploits.
However, entries in the per-action list for actions in that tag _do_
still work, in case for whatever reason you actually do want to rescale
one of those patterns.
When I turned the escaper patterns into `Action`s in FallingColors#1047 I forgot that
`Action` doesn't automatically handle incrementing the op count. This PR
fixes that by manually incrementing it, just like in all the other
patterns that directly extend `Action`.
@github-project-automation github-project-automation Bot moved this to 📋 Backlog in Hex Casting Aug 15, 2026
@object-Object object-Object added the do not squash This PR must not be squash-merged label Aug 15, 2026

@object-Object object-Object 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.

LGTM

@object-Object
object-Object merged commit dbf3134 into FallingColors:1.21 Aug 15, 2026
7 of 8 checks passed
@github-project-automation github-project-automation Bot moved this from 📋 Backlog to ✅ Done in Hex Casting Aug 15, 2026
@s5bug
s5bug deleted the main-to-next branch August 15, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not squash This PR must not be squash-merged

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

5 participants