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 @@ -8,12 +8,8 @@
function api:global_vars/get_difficulty
execute store result storage api: Argument.FieldOverride.MPReducePer float 2.5 run data get storage api: Return.Difficulty

# ハードなら強化設定をtrueに
execute if predicate api:global_vars/difficulty/min/3_blessless run data modify storage api: Argument.FieldOverride.Enhanced set value true

# 召喚
data modify storage api: Argument.ID set value 2080
data modify storage api: Argument.FieldOverride.Damage set from storage asset:context this.Damage
data modify storage api: Argument.FieldOverride.Rotation set from entity @s Rotation
execute store result storage api: Argument.FieldOverride.MobUUID int 1 run scoreboard players get @s MobUUID
function api:object/summon
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#> tag
# @within function asset:object/2080.aurora_missile/**
#declare score_holder $Interval
#declare tag 2080.Enhanced
#declare tag 2080.AlreadyHit
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
# @within asset:object/alias/2080/detect_hit_block

# 判定
execute if entity @s[tag=!2080.Enhanced] unless block ^ ^ ^0.5 #lib:no_collision/ run data modify storage asset:context IsHitBlock set value true
execute if entity @s[tag=2080.Enhanced] unless block ^ ^ ^0.7 #lib:no_collision/ run data modify storage asset:context IsHitBlock set value true
execute unless block ^ ^ ^0.5 #lib:no_collision/ run data modify storage asset:context IsHitBlock set value true

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,24 @@
# @within function asset:object/2080.aurora_missile/kill/

# 演出
execute if entity @s[tag=!2080.Enhanced] rotated ~ 0 positioned ~ ~0.3 ~ run function asset:object/2080.aurora_missile/kill/vfx/normal
execute if entity @s[tag=2080.Enhanced] rotated ~ 0 positioned ~ ~0.3 ~ run function asset:object/2080.aurora_missile/kill/vfx/enhanced
particle dust_color_transition 0.000 1.000 0.886 2 0 0.235 1 ~ ~1.5 ~ 1.3 1.2 1.3 0 60
playsound entity.evoker.prepare_summon hostile @a ~ ~ ~ 0.8 1.5 0
particle dust_color_transition 0.4 1 0.8 1.5 0.5 0.65 1 ~ ~1.5 ~ 1.2 1.2 1.2 0 12

# 演出用Object
data modify storage api: Argument.ID set value 2276
data modify storage api: Argument.FieldOverride.Scale set value 4f
function api:object/summon

# ダメージ
# Enhancedタグがによって範囲が変わる
data modify storage api: Argument.Damage set from storage asset:context this.Damage
data modify storage api: Argument.AttackType set value "Magic"
data modify storage api: Argument.ElementType set value "Thunder"
data modify storage api: Argument.DeathMessage append value '{"translate": "%1$sは%2$sによってオーロラの魔法の中に消えた","with":[{"selector":"@s"},{"nbt":"Return.AttackerName","storage":"lib:","interpret":true}]}'
data modify storage api: Argument.DeathMessage append value '{"translate": "%1$sは%2$sによって空の塵になった","with":[{"selector":"@s"},{"nbt":"Return.AttackerName","storage":"lib:","interpret":true}]}'
data modify storage api: Argument.MobUUID set from storage asset:context this.MobUUID
function api:damage/modifier_manual
execute if entity @s[tag=!2080.Enhanced] as @a[tag=!PlayerShouldInvulnerable,distance=..2] run function api:damage/
execute if entity @s[tag=2080.Enhanced] as @a[tag=!PlayerShouldInvulnerable,distance=..3] run function api:damage/
execute positioned ~-2 ~ ~-2 as @a[tag=!PlayerShouldInvulnerable,dx=3,dy=0.5,dz=3] run function api:damage/
function api:damage/reset

# 各プレイヤーのMPを減らす
# Enhancedによって範囲が変わる
execute if entity @s[tag=!2080.Enhanced] as @a[tag=!PlayerShouldInvulnerable,distance=..2] run function asset:object/2080.aurora_missile/kill/mp_reduce
execute if entity @s[tag=2080.Enhanced] as @a[tag=!PlayerShouldInvulnerable,distance=..3] run function asset:object/2080.aurora_missile/kill/mp_reduce
execute positioned ~-2 ~ ~-2 as @a[tag=!PlayerShouldInvulnerable,dx=3,dy=0.5,dz=3] run function asset:object/2080.aurora_missile/kill/mp_reduce

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,13 @@
# ID (int)
data modify storage asset:object ID set value 2080
# フィールド(オプション)
# data modify storage asset:object Field.myValue set value

# 飛翔体抽象に必要なデータ
data modify storage asset:object Field.Speed set value 1
data modify storage asset:object Field.Range set value 50
data modify storage asset:object Field.MovePerStep set value 0.5

# 回転関係
data modify storage asset:object Field.Spin set value 4
data modify storage asset:object Field.SpinInterval._ set value 0
data modify storage asset:object Field.SpinInterval.Max set value 4
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
# @within function asset:object/2080.aurora_missile/summon/

# 元となるEntityを召喚する
$summon marker ~ ~ ~ {Tags:["ObjectInit"],Rotation:$(Rotation)}
$summon item_display ~ ~ ~ {Rotation:$(Rotation),Tags:["ObjectInit"],teleport_duration:1,item:{id:"minecraft:stick",Count:1b,tag:{CustomModelData:20601}},brightness:{sky:15,block:15},transformation:{translation:[0.0f,0.0f,0.0f],left_rotation:[0.0f,0.0f,0.0f,1.0f],scale:[1.2f,1.2f,1.2f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}
Loading
Loading