Skip to content

Instantly share code, notes, and snippets.

@elifoster
Last active December 19, 2023 00:53
Show Gist options
  • Save elifoster/ab24aa00b3952363a83946e9c555a418 to your computer and use it in GitHub Desktop.
Save elifoster/ab24aa00b3952363a83946e9c555a418 to your computer and use it in GitHub Desktop.
Miscellaneous documentation of various ambiguous things in vanilla/neoforge

Block

  • hasDynamicShape - returning true causes flowing fluids to break this block. does not have anything to do with updating shape

Fluid

  • isSource(FluidState) - does not actually work on fluidstates. returns false for all flowing fluids. use FluidState#isSource() instead.

InteractionResult

  • SUCCESS is for clientside only. Use CONSUME on the server. at least for Block#use.

Level

  • setBlock flags. bit flags, ie added together
    • 1 update neighbors
    • 2 update pathfinding and tell client
    • 4 dont modify neighbors, dont update pathfinding, dont rerender
    • 16 update diagonal neighbors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment