同步官网文档8m_25d

This commit is contained in:
kwiilh
2025-08-25 18:36:29 +08:00
parent 4dc0ecf18d
commit 9e8855eeb4
5089 changed files with 8798 additions and 4799 deletions

View File

@@ -1,5 +1,5 @@
---
front:
front:
hard: 入门
time: 分钟
---
@@ -114,7 +114,7 @@ time: 分钟
定义每一种实体独立的行为特性如minecraft:identitier和minecraft:type_family等。
更多的组件介绍请请查阅微软文档https://minecraft-zh.gamepedia.com/基岩版实体组件文档)
更多的组件介绍请请查阅微软文档https://zh.minecraft.wiki/w/基岩版实体组件文档)
**注在2.2以及之后的版本我们对自定义生物的移动流量进行了优化距离玩家较远的生物会出现瞬移的情况如果感觉效果较差可在components手动添加netease:ban_bandwidth_optimization:{}组件来主动关闭此优化**
@@ -423,7 +423,7 @@ resource_pack/models/entity/squirrel.geo.json
```json
"locators": {
"lead": {
"head": [ 0.0, 14.0, -6.0 ]
"head": [ 0.0, 14.0, -6.0 ]
}
}
```
@@ -604,7 +604,7 @@ resource_pack/entity/squirrel.entity.json
```json
"spawn_egg": {
"texture": "spawn_egg",
"texture": "spawn_egg",
"texture_index": 2
}
@@ -695,7 +695,7 @@ class AnimationTestClientSystem(ClientSystem):
self.queryVariableName = 'query.mod.is_moving'
comp = self.CreateComponent('', "Minecraft", "queryVariable")
result = comp.Register(self.queryVariableName, 0.0)
def UpdateScriptVariable(self):
comp = self.CreateComponent('', "Minecraft", "queryVariable")
result = comp.Set(self.queryVariableName, 1.0)
@@ -790,7 +790,7 @@ class PlaceTntToTarget(CustomGoalCls):
1文件路径即模块路径必须与json配置中的**module_path**匹配
2自定义行为的类名必须与json中配置的**class_name**匹配
3自定义行为的类必须继承自**serverApi.GetCustomGoalCls()** 并调用父类的__init__函数
4所有函数均在**服务器线程server**调用
4所有函数均在**服务器线程server**调用
### 11.4 自定义AI执行流程图

View File

@@ -1,5 +1,5 @@
---
front:
front:
hard: 入门
time: 分钟
---
@@ -62,12 +62,12 @@ time: 分钟
}
}
}
```
并在textures/entity目录下增加贴图custom_pig.png和custom_pig_saddle.png
## 3. 关于重写玩家的客户端实体定义
@@ -126,7 +126,7 @@ time: 分钟
}
```

View File

@@ -1,5 +1,5 @@
---
front:
front:
hard: 入门
time: 分钟
---
@@ -50,7 +50,7 @@ time: 分钟
}
]
},
}
}
}

View File

@@ -1,5 +1,5 @@
---
front:
front:
hard: 入门
time: 分钟
---