Netease Mc Ui logo

Netease Mc Ui

Community
xiaobo121388
netease-mc-ui

网易我的世界 JSON UI 和 Python 制作指南,包含基础知识、控件、属性动画、数据绑定、事件、原生UI修改及接口参考。

Overview

Publisherxiaobo121388
Repositorynetease_mc-ui-skill
Skill namenetease-mc-ui
Stars
29
Forks
6
Bundled files
226
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 226 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by xiaobo121388 on GitHub. Read the source before you install it.

Installation

Install the Netease Mc Ui AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/xiaobo121388/netease_mc-ui-skill/tree/master
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/xiaobo121388/netease_mc-ui-skill.git \
  .claude/skills/netease-mc-ui
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Netease Mc Ui in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Netease Mc Ui on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Netease Mc Ui is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

网易我的世界 JSON UI 和 Python 制作指南

本 Skill 提供了在网易我的世界中开发自定义 UI 和修改原生 UI 的全面指南。内容基于官方文档整理,涵盖了从 JSON 编写到 Python 逻辑绑定的完整工作流。

1. 基础知识

在开始编写 UI 之前,必须了解 JSON 文件的组织结构和基本概念。

  • 文件与命名:每个 UI 都需要一个 JSON 文件,必须包含 namespace 字段。
  • 主界面与命名空间:每个 UI 必须定义 namespace,都应该有一个screen控件。
  • 继承与变量:使用 @ 符号继承模板控件,使用 $ 定义和引用控件变量。
  • 全局变量与 _ui_defs:在_global_variables.json中定义全局变量, 在 _ui_defs.json 中定义全局可用的模板和变量。
  • 属性使用:ui高级属性介绍,如use_anchored_offset、property_bag、variables等。
  • 界面创建流程及生命周期:UI 的创建在 UiInitFinished 事件后开始,涉及注册、实例化、获取实例和生命周期方法(Create, OnActive, OnDeactive, Destroy)。销毁 UI 可以通过调用 SetRemove 或 PopScreen 实现。

详细内容请参考:基础知识

2. UI 控件

JSON UI 提供了丰富的控件类型,用于构建各种界面元素。

  • 基础控件:screen (画布), panel (面板), label (文本), image (图片), button (按钮), switch_toggle (开关), slider (滑动条), progress_bar (进度条), text_edit_box (输入框)。
  • 布局与容器:stack_panel (栈式面板), grid (网格), scroll_view (滚动视图), input_panel (输入面板,支持拖拽和模态)。
  • 高级控件:paper_doll / netease_paper_doll (纸娃娃模型), item_renderer (物品渲染), selection_wheel (轮盘), netease_combo_box (下拉框), mini_map (小地图)。

详细内容请参考:UI 控件,并且大部分控件都有Python接口调整对应的值或者回调,具体在全部自定义UI接口通过搜索控件名称可以找到对应的接口。

3. 控件属性动画

MC 为部分 UI 控件属性提供了属性动画机制,使属性值随时间变化产生动画效果。

  • 支持的动画类型:透明度 (alpha)、裁剪 (clip)、颜色 (color)、序列帧 (flip_book)、位移 (offset)、尺寸 (size)、UV (uv)。
  • JSON 写法:动画可内联写在属性值中,也可以 "@动画名" 引用写法实现复用。
  • 动画链与循环:通过 next 属性将多段动画串联顺次播放,末段 next 指回链中某段可实现循环。
  • Python 控制:SDK 提供 RegisterUIAnimations、PlayAnimation、PauseAnimation、StopAnimation、SetAnimation、RemoveAnimation、SetAnimEndCallback 等接口动态控制动画。

详细内容请参考:控件属性动画

4. 数据绑定与按钮映射

数据绑定是连接 JSON 视图和 Python 逻辑的核心机制。

  • 绑定类型:支持布尔值、整数、浮点数、字符串、颜色以及各种点击和输入事件的绑定。
  • 单个绑定:使用 @ViewBinder.binding 装饰器将 Python 函数绑定到 JSON 中的变量。
  • 集合绑定:使用 @ViewBinder.binding_collection 为 Grid 等列表容器中的元素绑定数据。
  • 按钮映射 (Button Mappings):将物理按键或特定交互映射到控件事件,常用于开启 InputPanel 拖拽或自定义按钮点击。

详细内容请参考:数据绑定与按钮映射

5. UI 事件

通过监听客户端事件,可以在合适的时机创建 UI 或响应全局交互。

  • 生命周期事件:UiInitFinished (UI 系统初始化完成,适合注册和创建 UI), PushScreenEvent (界面入栈), PopScreenEvent (界面出栈)。
  • 控件特定事件:如 GridComponentSizeChangedClientEvent,用于处理滚动列表中的网格复用。
  • 输入事件:如 ClientJumpButtonPressDownEvent,用于拦截或响应底层输入。

详细内容请参考:UI 事件

6. 原生 UI 修改

除了自定义 UI,开发者经常需要修改游戏原生的界面。

  • JSON Modifications (静态修改):在同名 JSON 文件中使用 modifications 数组,通过 insert_front, insert_back, replace, remove 等操作增删改原生控件。
  • Python 代理 (动态修改):在 PushScreenEvent 中获取原生 UI 的 ScreenNode 实例,通过代理类动态修改控件属性或绑定新事件。

详细内容请参考:原生 UI 修改 原版UI参考:原生UI

7. 接口 (API) 参考

Python API 提供了操作 UI 的各种方法。

  • ClientSystem API:RegisterUI, CreateUI, GetUI, PushScreen, PopScreen。
  • ScreenNode API:GetBaseUIControl, GetAllChildrenPath, SetVisible, SetPosition, AddTouchEventHandler, SetUiItem, RenderPaperDoll 等。

详细内容请参考:核心接口参考 和 全部自定义UI接口。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

and 140 more files.

Frequently asked questions

What does the Netease Mc Ui AI skill do?

网易我的世界 JSON UI 和 Python 制作指南,包含基础知识、控件、属性动画、数据绑定、事件、原生UI修改及接口参考。

Why use Netease Mc Ui on TypingMind?

Because you install it once and use it with any model. Netease Mc Ui is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Netease Mc Ui in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/xiaobo121388/netease_mc-ui-skill/tree/master. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Netease Mc Ui?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Netease Mc Ui?

As many as you like. As long as a model supports skills, you can use Netease Mc Ui with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Netease Mc Ui AI skill free?

Yes. It is published on GitHub by xiaobo121388 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇