? 描述
? 自定义望远镜准星
俄语
Custom Spyglass Scope — 这是一个轻量级的客户端 Fabric 模组,允许通过 CustomModelData 将标准望远镜准星替换为自定义纹理,无需配置文件、JSON 文件或复杂逻辑。
该模组非常适合用于:
- 资源包
- RPG / PvP 服务器
- 自定义物品
- 实现类似 OptiFine 的行为,但原生支持
✨ 功能
- ? 通过 CustomModelData 替换准星
- ? 完全原版渲染(无自定义光影)
- ? 通过资源包进行管理
- ⚡ 对性能影响极小
- ? 不会与其他 HUD 效果冲突
? 使用方法
1️⃣ 安装模组
- 安装 Fabric Loader >= 0.18.4
- 将模组放入
mods文件夹
2️⃣ 在资源包中添加纹理
资源结构如下:
assets/custom_scope/
└── textures/
└── gui/
└── custom_scope/
├── img.png
├── sniper.png
└── example.png
3️⃣ 为物品分配 CustomModelData
模组使用字符串类型的 CustomModelData,其格式必须为:
<mod_id>_<texture_name>
示例:
custom_scope— 模组 IDimg— 纹理名称
给予望远镜的命令:
/give @p minecraft:spyglass[CustomModelData:{strings:["custom_scope_img"]}]
? 此时将加载以下纹理:
assets/custom_scope/textures/gui/custom_scope/img.png
? 行为逻辑
- 如果 CustomModelData 符合
<mod_id>_<texture_name>格式 → 使用自定义准星 - 如果格式不匹配 → 使用原版准星
- 如果纹理缺失 → 不会导致崩溃
? 默认内置纹理
模组已内置一个示例准星纹理。
要获得使用该纹理的望远镜,请使用:
/give @p minecraft:spyglass[CustomModelData:{strings:["custom_scope_img"]}]
? 注意
该模组不添加新物品,也不改变游戏机制——它仅在渲染时替换望远镜准星的纹理,同时保留原版行为。
英语
Custom Spyglass Scope is a lightweight client-side Fabric mod that allows you to replace the default spyglass scope texture using CustomModelData, without configs, JSON files, or complex logic.
This mod is perfect for:
- Resource packs
- RPG / PvP servers
- Custom items
- OptiFine-like behavior, but native
✨ Features
- ? Spyglass scope replacement via CustomModelData
- ? Fully vanilla rendering (no custom shaders)
- ? Controlled entirely through resource packs
- ⚡ Minimal performance impact
- ? No conflicts with other HUD effects
? How to Use
1️⃣ Install the mod
- Install Fabric Loader >= 0.18.4
- Place the mod into the
modsfolder
2️⃣ Add textures to your resource pack
Resource structure:
assets/custom_scope/
└── textures/
└── gui/
└── custom_scope/
├── img.png
├── sniper.png
└── example.png
3️⃣ Assign CustomModelData to the spyglass
The mod uses string-based CustomModelData, which must follow this format:
<mod_id>_<texture_name>
Example:
custom_scope— the mod IDimg— the texture name
Command example:
/give @p minecraft:spyglass[CustomModelData:{strings:["custom_scope_img"]}]
? This will load the texture from:
assets/custom_scope/textures/gui/custom_scope/img.png
? Behavior
- If CustomModelData matches
<mod_id>_<texture_name>→ a custom scope is used - If the format does not match → the vanilla spyglass scope is rendered
- If the texture is missing → no crash will occur
? Default Included Texture
The mod includes one default spyglass scope texture out of the box as an example.
To obtain a spyglass using it, run:
/give @p minecraft:spyglass[CustomModelData:{strings:["custom_scope_img"]}]
? Notes
This mod does not add new items and does not change gameplay mechanics — it simply replaces the spyglass scope texture at render time while preserving vanilla behavior.
? 社交链接 / Ссылки на соцсети
你是这个资源的作者?登录后可认领此资源。
相似资源
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
查看物品与配方
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧