You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Item NBT manipulation with NMS for Bukkit 1.12.2. PersistentDataContainer should be used whenever possible. Only use this if you really need to store custom data to item on legacy versions. Alternatively, you can use latest version.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SetCameraEntityS2CPacket is a clientbound packet that will be sent to client when player interacts an entity while in spectator mode. This packet is mainly used for setting the player's camera to entity's position.
The jank: Not in spectator mode
But what if we send SetCameraEntityS2CPacket when player is NOT in spectator mode? Surprisingly, player didn't kick themselves from server, plus their camera is now attached to target entity! The camera behavior is what you would normally expect like spectating mob the normal way (eg: hide hotbars, add linear interpolation to camera). Setting the camera to self (self as in the player whose connection handler is controlling) returns everything to normal. I haven't tested what happens when you set the camera to other players.
Another jank: Player's input
While the camera is attached to another entity, player's input like moving, sneaking, jumping and looking around will still working normally. You can
Can we write a better WebGPU Shading Language specification?
Can we write a better WebGPU Shading Language specification?
Yes, maybe...
fragment.wgsl is the example WGSL (WebGPU Shading Language) coed found in the official specification. fragment.nwgsl (NGLSL stands for "Not WebGPU Shading Language") is the exact same fragment shader as fragment.wgsl, except small changes to the language.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters