mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2026-08-01 07:54:43 +00:00
基岩版小数位是有有效位控制的,放那么多没用
This commit is contained in:
@@ -526,7 +526,7 @@ class NoteDataConvert2CommandPlugin(LibraryPluginBase):
|
|||||||
.replace("(", r"{")
|
.replace("(", r"{")
|
||||||
.replace(")", r"}")
|
.replace(")", r"}")
|
||||||
)
|
)
|
||||||
+ "playsound {} @s ^{} ^{} ^{} 3.0 {} {}".format(
|
+ "playsound {} @s ^{:.4f} ^{:.4f} ^{:.4f} 3.0 {:.6f} {}".format(
|
||||||
track.instrument,
|
track.instrument,
|
||||||
*relative_coordinates,
|
*relative_coordinates,
|
||||||
1.0 if note.percussive else mc_pitch,
|
1.0 if note.percussive else mc_pitch,
|
||||||
@@ -603,7 +603,7 @@ class NoteDataConvert2CommandPlugin(LibraryPluginBase):
|
|||||||
MineCommand(
|
MineCommand(
|
||||||
command=(
|
command=(
|
||||||
execute_command_head.format(player_selector)
|
execute_command_head.format(player_selector)
|
||||||
+ "playsound {} @s ^{} ^{} ^{} 3.0 {} {}".format(
|
+ "playsound {} @s ^{:.4f} ^{:.4f} ^{:.4f} 3.0 {:.6f} {}".format(
|
||||||
note.instrument,
|
note.instrument,
|
||||||
*relative_coordinates,
|
*relative_coordinates,
|
||||||
1.0 if note.percussive else mc_pitch,
|
1.0 if note.percussive else mc_pitch,
|
||||||
@@ -630,7 +630,8 @@ class NoteDataConvert2CommandPlugin(LibraryPluginBase):
|
|||||||
if music_command_list:
|
if music_command_list:
|
||||||
return (
|
return (
|
||||||
music_command_list,
|
music_command_list,
|
||||||
last_note.start_tick + last_note.duration_tick,
|
last_note.start_tick # pyright: ignore[reportPossiblyUnboundVariable]
|
||||||
|
+ last_note.duration_tick, # pyright: ignore[reportPossiblyUnboundVariable]
|
||||||
max_multi + 1,
|
max_multi + 1,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user