同步官网文档8m_25d
This commit is contained in:
@@ -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执行流程图
|
||||
|
||||
|
||||
@@ -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: 分钟
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
front:
|
||||
front:
|
||||
hard: 入门
|
||||
time: 分钟
|
||||
---
|
||||
@@ -50,7 +50,7 @@ time: 分钟
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
front:
|
||||
front:
|
||||
hard: 入门
|
||||
time: 分钟
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user