(=°ω°)丿
大憨批(Datapack Helper Plus)启用时,在函数中输入

代码:

  1. summonAec
并回车,可以得到:

代码:

  1. summon minecraft:area_effect_cloud ~ ~ ~ {Age: -2147483648, Duration: -1, WaitTime: -2147483648, Tags: ["tag"]}
那么如果我想在函数中输入

代码:

  1. loopBlock
并回车,可以得到:

代码:

  1. execute unless block ~ ~ ~ #xxx:through run function xxx:find
  2. execute if entity @s[distance=..5,tag=!xxx-find] positioned ^ ^ ^0.3 run function xxx:loop
我应该怎么做?
设置里的东西我看不懂

Jokey_钥匙
那就问作者啊(
@SPGoding

SPGoding
谢邀。利益相关:《大憨批》作者认证持有者。


首先找到「Datapack Language Server > Snippets」设置项,然后点击「在文件中修改」(大概是这个叫法)。


在 VSCode 自动新打开的文件内输入:


```json
{
    "datapackLanguageServer.snippets": {
  "loopBlock": "execute unless block ~ ~ ~ #${1:xxx}:through run function ${1:xxx}:find\nexecute if entity @s[distance=..5,tag=!${1:xxx}-find] positioned ^ ^ ^0.3 run function ${1:xxx}:loop"
    }
}
```


以上。

第一页 上一页 下一页 最后一页