Skip to content

Conversation

@EgrorBs
Copy link
Contributor

@EgrorBs EgrorBs commented Jul 7, 2025

  • Information about the pastel network graphs is not saved/loaded when saving the world/chunk
  • Nodes don't call initializeNode on loading
  • When painting a node, a pastel network may be created with an already existing UUID (with old color, and attached nodes), which leads to the node's malfunction after painting/repainting
  • Pastel node painting only works with slingshots, which I don't think was the intended design
  • Pastel node colors are not saved

Changes:

  • Graph information is now saved and loaded from spectrum_pastel_network_manager.dat (as intended, I believe)
  • Node calls initializeNode as soon as it ticks for the first time (I couldn't find a reliable onLoad() method)
  • Network UUID is now generated randomly
  • Pastel node painting now works with either paintbrushes or pigment bottles
  • Pastel node colors are now saved with the BlockEntity NBT data.
  • Paintbrush's tryColorBlock() now returns true when a ColorableBlock is successfully painted (as intended, I believe)

EgrorBs added 2 commits July 7, 2025 02:02
- Save/load pastel network graphs to world save
- Initialize NodeBlockEntity on load (attach to network)
- Save node color to BlockEntity NBT data
- Network UUID should be random, any node can create multiple networks of different colors
- Allow to color node with pignment
- Allow to color node with paintbrush
Copy link
Owner

@DaFuqs DaFuqs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

I'll give it another round of tests just to make sure

@DaFuqs DaFuqs merged commit b17a5f8 into DaFuqs:1.21.1-aria-for-painters-mojmap Jul 7, 2025
2 checks passed
@EgrorBs EgrorBs deleted the fix/pastel_network branch July 7, 2025 13:45
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.

2 participants