Freelook (Perspective Mod)
作者:Chromatic
Allows you to change your perspective without rotating your player.
截图
介绍
中文介绍正在准备中,下面暂时显示原文。
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
- When a player joins, the client sends a
freelook:handshakepacket. - If the server wants to disable freelook, it responds with a
freelook:disablepacket. - Then the player cannot use freelook for that session.
Click to expand code example
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<DisableModPayload> TYPE = new Type<>(Identifier.parse("freelook:disable"));
public static final StreamCodec<RegistryFriendlyByteBuf, DisableModPayload> CODEC = StreamCodec.unit(new DisableModPayload());
@Override
public Type<? extends CustomPacketPayload> type() {
return TYPE;
}
}
public record HandshakePayload() implements CustomPacketPayload {
public static final Type<HandshakePayload> TYPE = new Type<>(Identifier.parse("freelook:handshake"));
public static final StreamCodec<RegistryFriendlyByteBuf, HandshakePayload> CODEC = StreamCodec.unit(new HandshakePayload());
@Override
public Type<? extends CustomPacketPayload> type() {
return TYPE;
}
}
}
Code licensed under LGPL 3.0.
常见问题
Freelook (Perspective Mod) 支持哪些 Minecraft 版本?
Freelook (Perspective Mod) 支持 Minecraft Java 版 1.8.9–26.3,共 14 个版本,可用的加载器:Fabric / Forge。下载时注意选择和你游戏版本一致的文件。
Freelook (Perspective Mod) 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
Chromatic 的其他作品
查看全部 →
TNT Countdown (TNT Timer)
by Chromatic
Displays a countdown of the fuse timer above primed TNT.
34.1万
2 天前
Modrinth
FOV Changer
by Chromatic
Allows you to customize your FOV for different conditions.
31万
2 天前
Modrinth
Vignette Tweaks (Damage Tint + More)
by Chromatic
Allows you to customize the strength of Vignette and add colorful tints for various conditions.
9万
2 天前
Modrinth
评论
登录后评论和评分