Skip to content

Commit

Permalink
Update Advanced_zh.md
Browse files Browse the repository at this point in the history
  • Loading branch information
WDRshadow authored Mar 28, 2024
1 parent a97fcf5 commit 2a6e1a7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/Advanced_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,15 @@ public class NPCBasicFunction implements ModInitializer {

**_效果图:_**

NPC给予钻石:
![give_diamond](images/diamond-min.png)

叫NPC小狗过来:
![come_here](images/come-min.png)

NPC感到开心而冒心心:
![feeling_happy](images/love-min.png)

### 2. 通过配置文件实现

这种方式不需要您编写任何Java代码,只需要在配置文件中定义函数的作用和参数,并且在地图数据包中写入Minecraft指令相关的函数即可。这种方式的优点是简单易用,缺点是这种方法不能向OpenAI返回复杂的结果。
Expand Down Expand Up @@ -175,14 +182,7 @@ execute run scoreboard players set @s npc_open_door_result 1

**_效果图:_**

NPC给予钻石:
![give_diamond](images/diamond-min.png)

叫NPC小狗过来:
![come_here](images/come-min.png)

NPC感到开心而冒心心:
![feeling_happy](images/love-min.png)
![open_door](images/open_door-min.png)

## 2. NPC间的对话(dev)

Expand Down

0 comments on commit 2a6e1a7

Please sign in to comment.