Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 [mob301]業深き想いを作成 #1168

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift click to select a range
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
Prev Previous commit
Next Next commit
死亡演出
  • Loading branch information
quikku committed Aug 20, 2022
commit fc1835307f3d5ad5cc0223cf9f39229057f639a2
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 9,8 @@
#declare tag 8D.Angel
#declare tag 8D.ArmorStand
#declare tag 8D.ArmorStandThis
#declare tag 8D.ArmorStandDeath
#declare tag 8D.ArmorStandGun
#
#declare tag 8D.HPless75per
#declare tag 8D.HPless30per
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 4,21 @@
#
# @within function asset:mob/0301.sinful_thoughts/death/1.trigger

# もともといるアマスタには死んでもらう
kill @e[type=armor_stand,tag=8D.ArmorStand]

# 演出
particle minecraft:explosion_emitter ~ ~ ~ 0 0 0 0 1 normal
particle minecraft:block minecraft:blackstone ~ ~1.8 ~ 0.35 0.35 0.35 2 100
playsound entity.generic.explode hostile @a ~ ~ ~ 1 1
playsound entity.wither_skeleton.death hostile @a ~ ~ ~ 1 1
playsound entity.wither_skeleton.death hostile @a ~ ~ ~ 1 1

# 死亡アニメーションをするためのアマスタを召喚する
summon armor_stand ~ ~ ~ {Marker:1b,Invisible:1b,Tags:["8D.ArmorStandDeath","8D.ArmorStandThis","Object","Uninterferable"],Pose:{LeftArm:[0f,0f,0f],RightArm:[0f,0f,0f],LeftLeg:[0f,0f,0f],RightLeg:[0f,0f,0f],Head:[0f,0f,0f]},HandItems:[{id:"minecraft:stick",Count:1b,tag:{CustomModelData:20254}},{id:"minecraft:stick",Count:1b,tag:{CustomModelData:20252}}],ArmorItems:[{},{},{},{id:"minecraft:stick",Count:1b,tag:{CustomModelData:20256}}]}
# アマスタに位置をあわせる
execute at @e[type=armor_stand,tag=8D.ArmorStand,distance=..3,sort=nearest,limit=1] run tp @e[type=armor_stand,tag=8D.ArmorStandThis,distance=..3] @s
# タグを消す
tag @e[type=armor_stand,tag=8D.ArmorStandThis] remove 8D.ArmorStandThis

# もともといるアマスタには死んでもらう
kill @e[type=armor_stand,tag=8D.ArmorStand]

# スケジュールループを開始する
schedule function asset:mob/0301.sinful_thoughts/death/schedule 1t replace
Original file line number Diff line number Diff line change
@@ -0,0 1,24 @@
#> asset:mob/0301.sinful_thoughts/death/3.death_animation
#
#
#
# @within function asset:mob/0301.sinful_thoughts/death/schedule


# スコア増えるの
scoreboard players add @s 8D.Tick 1

# ポーズつけて
execute if score @s 8D.Tick matches 5 run data modify entity @s Pose.LeftArm set value [0f,0f,270f]
execute if score @s 8D.Tick matches 5 run data modify entity @s Pose.RightArm set value [0f,0f,90f]
# 銃を周囲に召喚する
execute if score @s 8D.Tick matches 15 run function asset:mob/0301.sinful_thoughts/death/surround
# ポーズして
execute if score @s 8D.Tick matches 30 run tp @s ~ ~ ~ ~-60 ~
execute if score @s 8D.Tick matches 30 run data modify entity @s Pose.RightArm set value [270f,60f,00f]
execute if score @s 8D.Tick matches 30 run data modify entity @s Pose.LeftArm set value [0f,0f,-16f]
execute if score @s 8D.Tick matches 30 run item replace entity @s armor.head with stick{CustomModelData:20257}
# 発砲と死
execute if score @s 8D.Tick matches 80 run function asset:mob/0301.sinful_thoughts/death/shot
execute if score @s 8D.Tick matches 80 run kill @e[type=armor_stand,tag=8D.ArmorStandGun,distance=..20]
execute if score @s 8D.Tick matches 80 run kill @e[type=armor_stand,tag=8D.ArmorStandDeath,distance=..20]
Original file line number Diff line number Diff line change
@@ -0,0 1,15 @@
#> asset:mob/0301.sinful_thoughts/death/gun_summon
#
#
#
# @within function asset:mob/0301.sinful_thoughts/death/**

# 召喚
summon armor_stand ~ ~1000 ~ {Marker:1b,Invisible:1b,Tags:["8D.ArmorStandGun","8D.ArmorStandThis","Object","Uninterferable"],ArmorItems:[{},{},{},{id:"minecraft:stick",Count:1b,tag:{CustomModelData:20265}}]}
# TP
tp @e[type=armor_stand,tag=8D.ArmorStandThis,limit=1] ~ ~ ~ ~ ~
# タグ消し
tag @e[type=armor_stand,tag=8D.ArmorStandThis,limit=1] remove 8D.ArmorStandThis

# パーティクル
particle witch ~ ~1.5 ~ 0 0 0 0 20
Original file line number Diff line number Diff line change
@@ -0,0 1,14 @@
#> asset:mob/0301.sinful_thoughts/death/schedule
#
#
#
# @within function
# asset:mob/0301.sinful_thoughts/death/2.death
# asset:mob/0301.sinful_thoughts/death/schedule
# asset:mob/0301.sinful_thoughts/rejoin_process

# ファンクション
execute as @e[type=armor_stand,tag=8D.ArmorStandDeath] at @s run function asset:mob/0301.sinful_thoughts/death/3.death_animation

# Schedule
execute if entity @e[type=armor_stand,tag=8D.ArmorStandDeath,limit=1] run schedule function asset:mob/0301.sinful_thoughts/death/schedule 1t
Original file line number Diff line number Diff line change
@@ -0,0 1,18 @@
#> asset:mob/0301.sinful_thoughts/death/shot
#
#
#
# @within function asset:mob/0301.sinful_thoughts/death/3.death_animation

# 演出
particle dust 0.09 0.09 0.09 1.6 ~ ~1.2 ~ 1 1 1 0 180
particle dust 0.42 0.02 0.02 1.4 ~ ~1.2 ~ 1.03 1.03 1.03 0 120

# 演出
playsound minecraft:entity.zombie.attack_wooden_door hostile @a ~ ~ ~ 1 2
playsound minecraft:entity.zombie.attack_wooden_door hostile @a ~ ~ ~ 1 0
playsound minecraft:entity.generic.explode hostile @a ~ ~ ~ 0.8 2
playsound ogg:item.trident.thunder2 hostile @a ~ ~ ~ 1 1.5
playsound ogg:item.trident.thunder1 hostile @a ~ ~ ~ 1 1.5
playsound ogg:item.trident.thunder2 hostile @a ~ ~ ~ 1 1.5
playsound minecraft:entity.wither.death hostile @a ~ ~ ~ 1 1
Original file line number Diff line number Diff line change
@@ -0,0 1,22 @@
#> asset:mob/0301.sinful_thoughts/death/surround
#
#
#
# @within function asset:mob/0301.sinful_thoughts/death/3.death_animation

# [ImportKey]: NobwRALgngDgpmAXGAxgSwE4oDYIDRgCuhaAJkmAOwoBsAnHQGamkC0lAzAKxysAsABgAcHVgEM6AIzqtSXOkL59JjDkIEcwBAHZiAtgmSAwxQAEARi1gYYjPoDOScCgD2hbRCRmBBFHHdwMRzAANzFsQkNwAA8kbzAoWIBfRIJbUjRCB0QAJgA6LgI7CBsPRDi4bGw0GDtDLziMZ2KIQzi0OwBRSurajoBHQjDsKABla19yREYw2uSAXSA_3
# 円 1
execute positioned ~0 ~ ~-2.5 facing entity @s eyes run function asset:mob/0301.sinful_thoughts/death/gun_summon
execute positioned ~1.46946 ~ ~-2.02254 facing entity @s eyes run function asset:mob/0301.sinful_thoughts/death/gun_summon
execute positioned ~2.37764 ~ ~-0.77254 facing entity @s eyes run function asset:mob/0301.sinful_thoughts/death/gun_summon
execute positioned ~2.37764 ~ ~0.77254 facing entity @s eyes run function asset:mob/0301.sinful_thoughts/death/gun_summon
execute positioned ~1.46946 ~ ~2.02254 facing entity @s eyes run function asset:mob/0301.sinful_thoughts/death/gun_summon
execute positioned ~0 ~ ~2.5 facing entity @s eyes run function asset:mob/0301.sinful_thoughts/death/gun_summon
execute positioned ~-1.46946 ~ ~2.02254 facing entity @s eyes run function asset:mob/0301.sinful_thoughts/death/gun_summon
execute positioned ~-2.37764 ~ ~0.77254 facing entity @s eyes run function asset:mob/0301.sinful_thoughts/death/gun_summon
execute positioned ~-2.37764 ~ ~-0.77254 facing entity @s eyes run function asset:mob/0301.sinful_thoughts/death/gun_summon
execute positioned ~-1.46946 ~ ~-2.02254 facing entity @s eyes run function asset:mob/0301.sinful_thoughts/death/gun_summon

# 演出
playsound ogg:ambient.nether.basalt_deltas.basaltground4 hostile @a ~ ~ ~ 6 1
playsound ogg:random.breath hostile @a ~ ~ ~ 3 0