Skip to content

Added WrapperPlayServerSculkVibrationSignal - #380

Open
NoJokeFNA wants to merge 6 commits into
retrooper:2.0from
NoJokeFNA:feat/sculk-vibration-signal-wrapper
Open

Added WrapperPlayServerSculkVibrationSignal#380
NoJokeFNA wants to merge 6 commits into
retrooper:2.0from
NoJokeFNA:feat/sculk-vibration-signal-wrapper

Conversation

@NoJokeFNA

Copy link
Copy Markdown
Contributor

https://wiki.vg/Protocol#Sculk_Vibration_Signal
Tested Server-Versions: 1.18.2

@retrooper retrooper left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Instead of a string identifier, maybe see if the ResourceLocation can be used. PacketWrapper#readResourceLocation or readIdentifier, is what it might be called in the wrappers.

@NoJokeFNA

Copy link
Copy Markdown
Contributor Author

I will test it today or tomorrow.

@NoJokeFNA
NoJokeFNA requested a review from retrooper May 20, 2022 12:40
@retrooper

Copy link
Copy Markdown
Owner

Does it work on 1.8?

@NoJokeFNA

Copy link
Copy Markdown
Contributor Author

No. Sculks were introduced on newer versions.

@retrooper retrooper left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

On wiki.vg it says the "destination" (field after the destination identifier) can either be a VarInt ENTITY ID or a Long encoded block position. So this code might not always work? https://wiki.vg/Protocol#Sculk_Vibration_Signal

@NoJokeFNA

Copy link
Copy Markdown
Contributor Author

Yea but I don't know under which circumstances. I tested it for a few time and haven't received any errors or such.

@retrooper

Copy link
Copy Markdown
Owner

Have you checked minecraft's vanilla code?

@retrooper

Copy link
Copy Markdown
Owner

I'll check.

@retrooper

Copy link
Copy Markdown
Owner

Depends on the identifier. I think the identifier can either be "minecraft:entity" or "minecraft:block" according to vanilla code.

@retrooper

Copy link
Copy Markdown
Owner

But I'd say do some debugging too.

@NoJokeFNA

Copy link
Copy Markdown
Contributor Author

Alright, will do it later

@NoJokeFNA
NoJokeFNA requested a review from retrooper June 11, 2022 20:33
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