Freelook 图标

Freelook

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 2.1.0-beta.2+mc1.21.11
本资源为搬运资源,原资源地址: https://modrinth.com/mod/freelook-oneconfig
资源信息

Minecraft 版本: 1.21.11

平台: fabric

标签: adventure game-mechanics utility

资源介绍

Freelook Mod

Allows you to rotate your camera freely around your character!


Features

  • Multiple Camera Perspectives
  • Customizable Activation Style
  • Camera Cycle Integration
  • Smooth Transitions

Server Opt-Opt

Some servers may consider freelook a competitive advantage. As of 2.0.0, Freelook includes a simple opt‑out protocol.

How it works
  1. When a player joins, the client sends a freelook:handshake packet.
  2. If the server wants to disable freelook, it responds with a freelook:disable packet.
  3. Then the player cannot use freelook for that session.
Click to expand code example ```java public class Example implements ModInitializer { @Override public void onInitialize() { PayloadTypeRegistry.clientboundPlay().register(DisableModPayload.TYPE, DisableModPayload.CODEC); PayloadTypeRegistry.serverboundPlay().register(HandshakePayload.TYPE, HandshakePayload.CODEC); ServerPlayNetworking.registerGlobalReceiver(HandshakePayload.TYPE, (payload, ctx) -> ServerPlayNetworking.send(ctx.player(), new DisableModPayload()) ); } public record DisableModPayload() implements CustomPacketPayload { public static final Type TYPE = new Type(Identifier.parse("freelook:disable")); public static final StreamCodec CODEC = StreamCodec.unit(new DisableModPayload()); @Override public Type extends CustomPacketPayload> type() { return TYPE; } } public record HandshakePayload() implements CustomPacketPayload { public static final Type TYPE = new Type(Identifier.parse("freelook:handshake")); public static final StreamCodec CODEC = StreamCodec.unit(new HandshakePayload()); @Override public Type extends CustomPacketPayload> type() { return TYPE; } } } ```
Code licensed under LGPL 3.0.
📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Lucky Block Pink

价格:0 墨喵币
下载量:0

查看详情
Spawn Egg 3D

价格:0 墨喵币
下载量:0

查看详情
Artifacts

价格:0 墨喵币
下载量:0

查看详情
Farmer's Delight x Create: Unbrekable Netherite Knife

价格:0 墨喵币
下载量:0

查看详情