在 大憨批(Datapack Helper Plus)启用时,在函数中输入并回车,可以得到:
那么如果我想在函数中输入并回车,可以得到:我应该怎么做?
设置里的东西我看不懂
代码:
- summonAec
代码:
- summon minecraft:area_effect_cloud ~ ~ ~ {Age: -2147483648, Duration: -1, WaitTime: -2147483648, Tags: ["tag"]}
代码:
- loopBlock
代码:
- execute unless block ~ ~ ~ #xxx:through run function xxx:find
- execute if entity @s[distance=..5,tag=!xxx-find] positioned ^ ^ ^0.3 run function xxx:loop
设置里的东西我看不懂

那就问作者啊(
@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"
}
}
```
以上。
首先找到「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"
}
}
```
以上。