Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot Swapping Cables & Wires #3336

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

dagger8243
Copy link
Contributor

@dagger8243 dagger8243 commented Oct 6, 2024

Video below describes it best:

2024-10-06.02-24-05.mp4

To do:

  • Figure out that error that pops up Cleaner replacement made it go away on its own
  • Possibly a tool for mass hot swapping, with possibly air option
  • Fix the mConnections variable when new one is placed
  • Fair trade
  • MODKEY Set to LCONTROL by default, need to figure out keybindings

@dagger8243 dagger8243 changed the title Hot Swapping Cables & Wires [WIP] Hot Swapping Cables & Wires Oct 6, 2024
@dagger8243 dagger8243 marked this pull request as draft October 6, 2024 08:26
@FourIsTheNumber FourIsTheNumber added the new feature Add something new. Please explain in detail how it works. label Oct 6, 2024
@chochem chochem added the ongoing freeze - do not merge PR tagged with this do not meet the requirement to be merged during a freeze. label Oct 8, 2024
@dagger8243 dagger8243 changed the title [WIP] Hot Swapping Cables & Wires Hot Swapping Cables & Wires Oct 11, 2024
@dagger8243 dagger8243 marked this pull request as ready for review October 11, 2024 15:19
handCable.mInsulated,
handCable.mCanShock));

world.setBlock(x, y, z, Blocks.air);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you really need to swap the entire block? You already are setting the MTE at this position, and the blocks for the different cables should be exactly the same (possibly meta is different, but you can just change the meta value).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if i dont then it functions as one cable and looks like another

Copy link
Contributor

Choose a reason for hiding this comment

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

That means you're not sending an update to the renderer most likely, forcing a block update is just a roundabout way of doing so and not really ideal.

@Dream-Master Dream-Master removed the ongoing freeze - do not merge PR tagged with this do not meet the requirement to be merged during a freeze. label Dec 8, 2024
@serenibyss
Copy link
Member

@dagger8243 any update on this?

@Dream-Master Dream-Master requested a review from a team December 21, 2024 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Add something new. Please explain in detail how it works.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants