Spyglass Custom Scopes

模组

· 作者 Kreo_gen

Сustom Spyglass Scope 是一个 Fabric 模组,允许你使用 CustomModelData 和资源包来更改望远镜的镜头纹理。

0 本站下载 0 关注 更新于 9 个月前

最新 1.0.0 · 1.21.11 · Fabric

一键开服(送7天)

? 描述

? 自定义望远镜准星

俄语

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 — 模组 ID
  • img — 纹理名称

给予望远镜的命令:

/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 mods folder

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 ID
  • img — 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.

? 社交链接 / Ссылки на соцсети

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源