Skip to content

Conversation

@NoJokeFNA
Copy link
Contributor

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

Copy link
Owner

@retrooper retrooper left a comment

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
Contributor Author

I will test it today or tomorrow.

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

Does it work on 1.8?

@NoJokeFNA
Copy link
Contributor Author

No. Sculks were introduced on newer versions.

Copy link
Owner

@retrooper retrooper left a comment

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
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
Owner

Have you checked minecraft's vanilla code?

@retrooper
Copy link
Owner

I'll check.

@retrooper
Copy link
Owner

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

@retrooper
Copy link
Owner

But I'd say do some debugging too.

@NoJokeFNA
Copy link
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