修复了生成指令出错的问题

This commit is contained in:
2022-02-01 01:46:38 +08:00
parent 9f8694ef14
commit f08a2ff9be
10 changed files with 16 additions and 8 deletions

View File

@ -25,7 +25,7 @@ def hans2pinyin(hans, style=3):
return final
def classList_conversion_SinglePlayer(List: list, ScoreboardName: str, Instrument: str, playerSelection: str = '',
def classList_conversion_SinglePlayer(List: list, ScoreboardName: str, playerSelection: str = '',
isProsess: bool = False) -> list:
from bgArrayLib.compute import round_up
commands = []
@ -43,7 +43,7 @@ def classList_conversion_SinglePlayer(List: list, ScoreboardName: str, Instrumen
commands.append(
f"execute @a{playerSelection} ~ ~ ~ execute @s[scores={{{ScoreboardName}="
f"{str(round_up(i.time_position)).replace('.0', '')}}}] ~ ~{127 - i.velocity} "
f"~ playsound {Instrument} @s ~ ~ ~ 1000 {i.pitch} 1000\n")
f"~ playsound {i.instrument} @s ~ ~ ~ 1000 {i.pitch} 1000\n")
if isProsess:
commands.append(
f"execute @a{playerSelection} ~ ~ ~ execute @s[scores={{{ScoreboardName}="