Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
# @within function asset:mob/0330.aurora_reaper/tick/

# 演出
playsound entity.evoker.prepare_summon hostile @a ~ ~ ~ 0.1 1.9 0
execute positioned ~ ~-0.2 ~ rotated ~ 0 run function asset:mob/0330.aurora_reaper/tick/vfx
playsound entity.evoker.prepare_summon hostile @a ~ ~ ~ 0.7 1.9 0

# 演出用Object召喚
data modify storage api: Argument.ID set value 2275
execute positioned ~ ~-0.2 ~ run function api:object/summon

# tpして向き合わせ
tp @s ~ ~ ~ facing entity @p[gamemode=!spectator,distance=..64] eyes
Expand All @@ -15,8 +18,6 @@
data modify storage lib: Argument.VectorMagnitude set value 1.0
execute facing entity @p[gamemode=!spectator,distance=..64] eyes rotated ~ ~-13 run function lib:motion/



# CT設定
data modify storage asset:context this.MotionCT set value 15

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#> asset:object/2275.aurora_jump/register
#
# Objectのデータを指定
#
# @within function asset:object/alias/2275/register

# 継承(オプション)
# data modify storage asset:object Extends append value
# function asset:object/extends
# 他のObjectに継承されることを許可するか (boolean) (オプション)
# data modify storage asset:object ExtendsSafe set value
# 継承されることを前提とした、抽象的なObjectであるかどうか(boolean)
data modify storage asset:object IsAbstract set value false
# Tickするかどうか(boolean) (オプション)
# data modify storage asset:object IsTicking set value

# ID (int)
data modify storage asset:object ID set value 2275
# フィールド(オプション)
data modify storage asset:object Field.Scale set value 10f
data modify storage asset:object Field.List set value ["8","7","6","5","4","3","2","1","0"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#> asset:object/2275.aurora_jump/summon/
#
# Object召喚処理の呼び出し時に実行されるfunction
#
# @within asset:object/alias/2275/summon

# 元となるEntityを召喚する

# 位置調整する 何故かテクスチャ側だけじゃどうにもならなかったのでゴリ押し
data modify storage asset:temp Args.Scale set value [0f,0f,0.01f]
data modify storage asset:temp Args.Scale[0] set from storage asset:context this.Scale
data modify storage asset:temp Args.Scale[1] set from storage asset:context this.Scale

data modify storage asset:temp Args.Translation set value [0f,0f,0f]
execute store result storage asset:temp Args.Translation[0] float 0.000125 run data get storage asset:context this.Scale 100
execute store result storage asset:temp Args.Translation[1] float -0.00075 run data get storage asset:context this.Scale 100
function asset:object/2275.aurora_jump/summon/m with storage asset:temp Args
data remove storage asset:temp Args
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#> asset:object/2275.aurora_jump/summon/m
#
#
#
# @within function asset:object/2275.aurora_jump/summon/

$summon text_display ~ ~ ~ {Rotation:[0f,-90f],Tags:["ObjectInit"],alignment:"left",brightness:{sky:15,block:15},background:16711680,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:$(Scale),translation:$(Translation)},Passengers:[{id:"text_display",Rotation:[0f,-90f],brightness:{sky:15,block:15},background:16711680,transformation:{left_rotation:[0f,1f,0f,0f],right_rotation:[0f,0f,0f,1f],scale:$(Scale),translation:$(Translation)}}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#> asset:object/2275.aurora_jump/tick/
#
# Objectのtick時の処理
#
# @within asset:object/alias/2275/tick

# apply
data modify storage asset:temp Args.Char set from storage asset:context this.List[-1]
execute if data storage asset:temp Args.Char run function asset:object/2275.aurora_jump/tick/apply.m with storage asset:temp Args
data remove storage asset:context this.List[-1]

# データがなければkill
execute unless data storage asset:temp Args.Char run function asset:object/2275.aurora_jump/tick/kill

# リセット
data remove storage asset:temp Args
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#> asset:object/2275.aurora_jump/tick/apply.m
#
#
#
# @within function asset:object/2275.aurora_jump/tick/

#
$data modify entity @s text set value '{"text":"$(Char)","font":"object/2275"}'
$execute on passengers run data modify entity @s text set value '{"text":"$(Char)","font":"object/2275"}'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#> asset:object/2275.aurora_jump/tick/kill
#
#
#
# @within function asset:object/2275.aurora_jump/tick/

execute on passengers run kill @s
kill @s
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#> asset:object/alias/2275/register
#
# Objectのデータ指定処理のエイリアス
#
# @within asset_manager:object/summon/register.m

# 元の登録処理を呼び出す
function asset:object/2275.aurora_jump/register
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#> asset:object/alias/2275/summon
#
# Object召喚処理のエイリアス
#
# @within asset_manager:object/summon/summon.m

# 元の召喚処理を呼び出す
function asset:object/2275.aurora_jump/summon/
8 changes: 8 additions & 0 deletions Asset/data/asset/functions/object/alias/2275/tick.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#> asset:object/alias/2275/tick
#
# Tick時処理のエイリアス
#
# @within asset_manager:object/tick/tick.m

# 元のTick処理を呼び出す
function asset:object/2275.aurora_jump/tick/
Loading