Skip to content

Commit d5aff3e

Browse files
committed
🚚 lib フォルダ内に呼び出し処理を移動
1 parent ef29835 commit d5aff3e

7 files changed

Lines changed: 37 additions & 6 deletions

File tree

PlayerMotion/data/player_motion/functions/api/launch_looking.mcfunction

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
#
33
# Launches the player in the input direction
44
#
5-
# @user
6-
# @api
5+
# @within function lib:player_motion/launch_looking
76

87
execute if entity @s[type=!player] run return fail
98
execute on vehicle run return fail

PlayerMotion/data/player_motion/functions/api/launch_xyz.mcfunction

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
#
33
# Launches the player in the input direction
44
#
5-
# @user
6-
# @api
5+
# @within function lib:player_motion/launch_xyz
76

87
execute if entity @s[type=!player] run return fail
98
execute on vehicle run return fail
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#> lib:player_motion/launch_looking
2+
#
3+
# Launches the player in the input direction
4+
#
5+
# Powered by PlayerMotion Datapack
6+
#
7+
# @user
8+
# @api
9+
# @input
10+
# as player
11+
# score
12+
# $x PlayerMotion.Api.Launch
13+
# $y PlayerMotion.Api.Launch
14+
# $z PlayerMotion.Api.Launch
15+
16+
function player_motion:api/launch_looking
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#> lib:player_motion/launch_xyz
2+
#
3+
# Launches the player in the input direction
4+
#
5+
# Powered by PlayerMotion Datapack
6+
#
7+
# @user
8+
# @api
9+
# @input
10+
# as player
11+
# score $strength PlayerMotion.Api.Launch
12+
13+
function player_motion:api/launch_xyz
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
scoreboard players set $strength PlayerMotion.Api.Launch 10000
2-
function player_motion:api/launch_looking
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
scoreboard players set $strength PlayerMotion.Api.Launch 10000
2+
function lib:player_motion/launch_looking
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
scoreboard players set $x PlayerMotion.Api.Launch 5000
2+
scoreboard players set $y PlayerMotion.Api.Launch 5000
3+
scoreboard players set $z PlayerMotion.Api.Launch 5000
4+
function lib:player_motion/launch_xyz

0 commit comments

Comments
 (0)