Skip to content

Conversation

SofieBrink
Copy link

Resolves #575 (Partially)

This pull request partially resolves issue 575 for automatic renaming of trains.
It allows deployers to copy a train's name when holding a blank nametag and write to the train's name when the nametag held by the deployer has a custom name.

I've elected not to add the washing recipe as i'm not convinced this is the best solution balance wise. I'm open to suggestions as to how this could be done better. But for now it can very easily be achieved with a simple datapack.

There's also a few issues with the pull request itself.
Mainly that the mixin injection for the deployersNameTag method is currently injecting at HEAD instead of at the second use of the onBlockEntityUse method call from the base. this is because this mixin injection didn't seem to work with the built jar that gradle outputs, even though it works perfectly with the built in client that can be launched through the IDE.
Help is welcome.

I'd be happy to make any adjustments if needed and wouldn't be disappointed or angry if this ends up not getting merged as i didn't wait for an official go to start coding this feature.
Worst case scenario, I had some fun coding the feature and learnt some new skills.

SofieBrink added 2 commits May 2, 2025 16:03
Don't send train edit (response) packets if the name hasn't changed.
@techno-sam techno-sam self-requested a review June 25, 2025 23:29
@techno-sam
Copy link
Member

thanks for your PR. We're a bit busy with Create 6.0 right now, but I look forward to looking over it soon.

@SofieBrink
Copy link
Author

No worries, i figured that’d be the case. Take your time!

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.

Suggestion: Automatic renaming of trains
2 participants