feat: add some things

This commit is contained in:
2025-12-14 21:59:55 +09:00
parent 0a69805d1d
commit a5fa2032a5
10 changed files with 101 additions and 0 deletions

13
boatsisun/init.mcf Normal file
View File

@@ -0,0 +1,13 @@
!IMPULSE
scoreboard objectives add bs.x1 dummy
scoreboard objectives add bs.y1 dummy
scoreboard objectives add bs.z1 dummy
scoreboard objectives add bs.x2 dummy
scoreboard objectives add bs.y2 dummy
scoreboard objectives add bs.z2 dummy
scoreboard objectives add bs.c dummy
scoreboard objectives add bs.r dummy
scoreboard players set #1000 bs.c 1000

25
boatsisun/loop.mcf Normal file
View File

@@ -0,0 +1,25 @@
execute as @a[tag=boatsisun] on vehicle store result score @s bs.x1 run data get entity @s Pos[0] 1000
execute as @a[tag=boatsisun] on vehicle store result score @s bs.y1 run data get entity @s Pos[1] 1000
execute as @a[tag=boatsisun] on vehicle store result score @s bs.z1 run data get entity @s Pos[2] 1000
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.x1 -= @s bs.x2
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.y1 -= @s bs.y2
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.z1 -= @s bs.z2
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.x1 *= @s bs.x1
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.y1 *= @s bs.y1
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.z1 *= @s bs.z1
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.x1 /= #1000 bs.c
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.y1 /= #1000 bs.c
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.z1 /= #1000 bs.c
execute as @a[tag=boatsisun] on vehicle store result score @s bs.x2 run data get entity @s Pos[0] 1000
execute as @a[tag=boatsisun] on vehicle store result score @s bs.y2 run data get entity @s Pos[1] 1000
execute as @a[tag=boatsisun] on vehicle store result score @s bs.z2 run data get entity @s Pos[2] 1000
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.r = @s bs.x1
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.r += @s bs.y1
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.r += @s bs.z1
execute as @a[tag=boatsisun] on vehicle run tellraw @a[limit=1,sort=nearest,tag=boatsisun] {"score":{objective:"bs.r",name:"@s"}}