同步官网文档8m_25d
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
front:
|
||||
front:
|
||||
hard: 入门
|
||||
time: 分钟
|
||||
---
|
||||
@@ -60,7 +60,7 @@ time: 分钟
|
||||
相对之前的pattern中定义的位置
|
||||
|
||||
<img src="./picture/portal_zuobiao.png" />
|
||||
|
||||
|
||||
```
|
||||
self.touchPos =[(3,1),(3,2)]
|
||||
```
|
||||
@@ -68,11 +68,11 @@ time: 分钟
|
||||
4. 激活检测
|
||||
|
||||
当玩家使用物品时监听 **ServerItemUseOnEvent** 事件,检测是否为设置的物品,如果是的话就进行传送门搭建的检测,具体的匹配算法接口见<a href="../../../../mcdocs/1-ModAPI/接口/世界/地图.html#detectstructure" rel="noopenner"> DetectStructure接口 </a>
|
||||
|
||||
|
||||
对位置(3,1)或者(3,2)使用骨粉可以激活传送门,如下图所示。
|
||||
|
||||
|
||||
<img src="./picture/portal_active.png" />
|
||||
|
||||
|
||||
5. Portal Forcer功能
|
||||
|
||||
通过监听事件<a href="../../../../mcdocs/1-ModAPI/事件/玩家.html#dimensionchangefinishserverevent" rel="noopenner"> DimensionChangeFinishServerEvent </a>完成引擎内类似Portal Forcer功能(进地狱门传到地狱之后的逻辑)。
|
||||
@@ -84,7 +84,7 @@ time: 分钟
|
||||
否则在玩家附近创建一个传送门,并且把传送门信息保存到level extraData中。
|
||||
|
||||
该功能请查阅传送门demo。
|
||||
|
||||
|
||||
6. 自定义传送门方块相关特性:
|
||||
|
||||
- 若通过服务端blockInfo组件的SetBlockNew接口放置传送门方块:
|
||||
|
||||
Reference in New Issue
Block a user