diff --git a/data/item/function/sign/click/annihilate/.mcfunction b/data/item/function/sign/click/annihilate/.mcfunction new file mode 100644 index 0000000000..0e7f4249de --- /dev/null +++ b/data/item/function/sign/click/annihilate/.mcfunction @@ -0,0 +1,12 @@ +#> item:sign/click/annihilate/ +# +# 全滅の印板 +# +# @private + +# 近くに印板対策の敵がいる場合、失敗 + execute if entity @e[distance=..12,tag=AntiAnnihilate] run function makeup:item/sign/annihilate/fail + execute unless entity @e[distance=..12,tag=AntiAnnihilate] run function item:sign/click/annihilate/success + +# 消滅 + setblock ~ ~ ~ minecraft:air diff --git a/data/item/function/sign/click/annihilate/success.mcfunction b/data/item/function/sign/click/annihilate/success.mcfunction new file mode 100644 index 0000000000..1207a1a5d6 --- /dev/null +++ b/data/item/function/sign/click/annihilate/success.mcfunction @@ -0,0 +1,22 @@ +#> item:sign/click/annihilate/success +# +# 全滅処理 +# +# @within function item:sign/click/annihilate/ + +# MOBと弾の全滅処理 + tag @e[distance=..12,tag=Mob] add Garbage + tag @e[distance=..12,tag=DamageProjectile] add Garbage + +# プレイヤー全滅処理 +# レーダー・ヴィジョンを使っている奴も許さない + execute as @a[distance=..12,scores={RaderVision=-2147483648..2147483647}] run tag @s add NowTarget + execute as @a[distance=..12,scores={RaderVision=-2147483648..2147483647}] run function skill:act/hunter/rader_vision/return0 + data remove storage score_damage: Argument + data modify storage score_damage: Argument set value {Damage:999,BypassArmor:1b,BypassResistance:1b,EPF:0,DeathCause:'{"translate":"君は次の自分に思いを託して、跡形もなく消し飛んだ。","color":"#BD0000","bold":true}'} + execute as @a[distance=..12,predicate=entity:player,tag=!NowTarget] run function score_damage:api/attack + execute as @a[tag=NowTarget] run function score_damage:api/attack + tag @a[tag=NowTarget] remove NowTarget + +# 演出 + function makeup:item/sign/annihilate/success diff --git a/data/item/function/sign/click/black_mage_soul.mcfunction b/data/item/function/sign/click/black_mage_soul.mcfunction new file mode 100644 index 0000000000..3afb55d211 --- /dev/null +++ b/data/item/function/sign/click/black_mage_soul.mcfunction @@ -0,0 +1,11 @@ +#> item:sign/click/black_mage_soul +############################## +### 黒魔道士の魂 +############################## + + +## 手にアイテムを持っているかを確認 +## 持っていなかったらエラーメッセージを返す +execute unless items entity @s weapon.mainhand * run tellraw @s {"translate":"手に何かアイテムを持ってください。","color":"#CF1E0A"} +execute unless items entity @s weapon.mainhand * run function makeup:item/sign/soul_series/fail +execute if items entity @s weapon.mainhand * run function item:sign/soul_series/black_mage/ diff --git a/data/item/function/sign/click/break_cobblestone.mcfunction b/data/item/function/sign/click/break_cobblestone.mcfunction new file mode 100644 index 0000000000..05a7c5d965 --- /dev/null +++ b/data/item/function/sign/click/break_cobblestone.mcfunction @@ -0,0 +1,9 @@ +#> item:sign/click/break_cobblestone +# 範囲内の丸石をコントロールエリアへ輸送 +clone ~-6 ~-1 ~-6 ~6 ~7 ~6 to area:control_area 1 20 1 filtered minecraft:cobblestone move +execute in area:control_area positioned 1 20 1 run fill ~ ~ ~ ~12 ~8 ~12 minecraft:air destroy + +# アイテムを与える +execute in area:control_area run tp @e[type=item,x=0,y=16,z=0,dx=15,dy=15,dz=15] @s + +function makeup:item/sign/common_firework.macro {color:8224125} diff --git a/data/item/function/sign/click/break_cobweb.mcfunction b/data/item/function/sign/click/break_cobweb.mcfunction new file mode 100644 index 0000000000..2fa131149c --- /dev/null +++ b/data/item/function/sign/click/break_cobweb.mcfunction @@ -0,0 +1,9 @@ +#> item:sign/click/break_cobblestone +# 範囲内の蜘蛛の巣をコントロールエリアへ輸送 +clone ~-6 ~-1 ~-6 ~6 ~7 ~6 to area:control_area 1 20 1 filtered minecraft:cobweb move +execute in area:control_area positioned 1 20 1 run fill ~ ~ ~ ~12 ~8 ~12 minecraft:air destroy + +# アイテムを与える +execute in area:control_area run tp @e[type=item,x=0,y=16,z=0,dx=15,dy=15,dz=15] @s + +function makeup:item/sign/common_firework.macro {color:15990012} diff --git a/data/item/function/sign/click/break_gravel.mcfunction b/data/item/function/sign/click/break_gravel.mcfunction new file mode 100644 index 0000000000..89481888c0 --- /dev/null +++ b/data/item/function/sign/click/break_gravel.mcfunction @@ -0,0 +1,9 @@ +#> item:sign/click/break_gravel +# 範囲内の砂利をコントロールエリアへ輸送 +clone ~-6 ~-1 ~-6 ~6 ~7 ~6 to area:control_area 1 20 1 filtered minecraft:gravel move +execute in area:control_area positioned 1 20 1 run fill ~ ~ ~ ~12 ~8 ~12 minecraft:air destroy + +# アイテムを与える +execute in area:control_area run tp @e[type=item,x=0,y=16,z=0,dx=15,dy=15,dz=15] @s + +function makeup:item/sign/common_firework.macro {color:8420731} diff --git a/data/item/function/sign/click/break_log/.mcfunction b/data/item/function/sign/click/break_log/.mcfunction new file mode 100644 index 0000000000..0d3846554a --- /dev/null +++ b/data/item/function/sign/click/break_log/.mcfunction @@ -0,0 +1,64 @@ +#> item:sign/click/break_log/ +# 範囲内の原木をコントロールエリアに輸送 +# forceloadチャンクに収まらないため分割 +clone ~-9 ~-1 ~-9 ~ ~7 ~ to area:control_area 1 20 1 filtered #minecraft:logs +clone ~1 ~-1 ~-9 ~9 ~7 ~ to area:control_area 1 29 1 filtered #minecraft:logs +clone ~-9 ~-1 ~1 ~ ~7 ~9 to area:control_area 1 38 1 filtered #minecraft:logs +clone ~1 ~-1 ~1 ~9 ~7 ~9 to area:control_area 1 47 1 filtered #minecraft:logs + +# 原木粉砕用エンティティ +fill ~-9 ~-1 ~-9 ~9 ~7 ~9 minecraft:wheat replace #minecraft:logs +clone ~-9 ~-1 ~-9 ~9 ~7 ~9 ~-9 ~-1 ~-9 filtered minecraft:air force +execute positioned ~-10 ~-2 ~-10 run tag @e[type=item,dx=20,dy=10,dz=20,tag=] add LogBreakRoot +execute positioned ~-10 ~-2 ~-10 at @e[type=item,dx=20,dy=10,dz=20,tag=LogBreakRoot] positioned ~ ~1 ~ run fill ~ ~ ~ ~ ~ ~ air destroy +execute positioned ~-10 ~-2 ~-10 run kill @e[type=item,dx=20,dy=10,dz=20,tag=LogBreakRoot] + +# 原木アイテムを与える +execute in area:control_area positioned 1 20 1 run fill ~ ~ ~ ~9 ~35 ~9 minecraft:air destroy +execute in area:control_area run tp @e[type=item,x=0,y=19,z=0,dx=10,dy=37,dz=10] @s + +# 範囲内の葉の数を記録し報酬を召喚 +execute store result score _ _ run fill ~-14 ~-1 ~-14 ~14 ~10 ~14 minecraft:air replace minecraft:oak_leaves +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:oak_leaves +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute store result score _ _ run fill ~-14 ~-1 ~-14 ~14 ~10 ~14 minecraft:air replace minecraft:mangrove_leaves +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:mangrove_leaves +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute store result score _ _ run fill ~-14 ~-1 ~-14 ~14 ~10 ~14 minecraft:air replace minecraft:jungle_leaves +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:jungle_leaves +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute store result score _ _ run fill ~-14 ~-1 ~-14 ~14 ~10 ~14 minecraft:air replace minecraft:spruce_leaves +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:spruce_leaves +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute store result score _ _ run fill ~-14 ~-1 ~-14 ~14 ~10 ~14 minecraft:air replace minecraft:dark_oak_leaves +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:dark_oak_leaves +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute store result score _ _ run fill ~-14 ~-1 ~-14 ~14 ~10 ~14 minecraft:air replace minecraft:acacia_leaves +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:acacia_leaves +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute store result score _ _ run fill ~-14 ~-1 ~-14 ~14 ~10 ~14 minecraft:air replace minecraft:birch_leaves +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:birch_leaves +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute store result score _ _ run fill ~-14 ~-1 ~-14 ~14 ~10 ~14 minecraft:air replace minecraft:azalea_leaves +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:azalea_leaves +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute store result score _ _ run fill ~-14 ~-1 ~-14 ~14 ~10 ~14 minecraft:air replace minecraft:flowering_azalea_leaves +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:flowering_azalea_leaves +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute store result score _ _ run fill ~-14 ~-1 ~-14 ~14 ~10 ~14 minecraft:air replace minecraft:mangrove_leaves +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:mangrove_leaves +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute store result score _ _ run fill ~-14 ~-1 ~-14 ~14 ~10 ~14 minecraft:air replace minecraft:cherry_leaves +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:cherry_leaves +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop + +# warn対策 +execute in area:control_area positioned 5.0 5.0 5.0 as @e[distance=0] run data modify entity @s PickupDelay set value 9s + +# アイテムを与える +execute in area:control_area positioned 5.0 5.0 5.0 run tp @e[distance=0] @s + +# 原木粉砕スケジュール起動 +schedule function item:sign/click/break_log/loop 2t + +function makeup:item/sign/common_firework.macro {color:6639666} diff --git a/data/item/function/sign/click/break_log/loop.mcfunction b/data/item/function/sign/click/break_log/loop.mcfunction new file mode 100644 index 0000000000..6ee92fe7f8 --- /dev/null +++ b/data/item/function/sign/click/break_log/loop.mcfunction @@ -0,0 +1,3 @@ +#> item:sign/click/break_log/loop +execute at @e[type=item,nbt={Age:1s}] if block ~ ~1 ~ #minecraft:logs run schedule function item:sign/click/break_log/loop 1t +execute at @e[type=item,nbt={Age:1s}] positioned ~ ~1 ~ if block ~ ~ ~ #minecraft:logs run fill ~ ~ ~ ~ ~ ~ air destroy diff --git a/data/item/function/sign/click/common/consume_loop.mcfunction b/data/item/function/sign/click/common/consume_loop.mcfunction new file mode 100644 index 0000000000..8572713024 --- /dev/null +++ b/data/item/function/sign/click/common/consume_loop.mcfunction @@ -0,0 +1,9 @@ +#> item:sign/click/common/consume_loop +# 植え付け用 種消費の共通function +execute store result score # _ run data get entity @e[distance=0,tag=ConsumeItem,limit=1] Item.count +scoreboard players operation _ Calc -= # _ + +execute if score _ Calc matches ..-1 store result entity @e[distance=0,tag=ConsumeItem,limit=1] Item.count byte -1 run scoreboard players get _ Calc +execute if score _ Calc matches 0.. run kill @e[distance=0,tag=ConsumeItem,limit=1] + +execute if score _ Calc matches 1.. run function item:sign/click/common/consume_loop diff --git a/data/item/function/sign/click/common/mine_loop.mcfunction b/data/item/function/sign/click/common/mine_loop.mcfunction new file mode 100644 index 0000000000..97039176da --- /dev/null +++ b/data/item/function/sign/click/common/mine_loop.mcfunction @@ -0,0 +1,5 @@ +#> item:sign/click/common/mine_loop +# プレイヤーの持っているアイテムで採掘をする共通funciton +loot spawn 5.0 5.0 5.0 mine 5 5 5 mainhand +scoreboard players remove _ _ 1 +execute if score _ _ matches 1.. run function item:sign/click/common/mine_loop diff --git a/data/item/function/sign/click/dye_autumn.mcfunction b/data/item/function/sign/click/dye_autumn.mcfunction new file mode 100644 index 0000000000..4292ddd21d --- /dev/null +++ b/data/item/function/sign/click/dye_autumn.mcfunction @@ -0,0 +1,11 @@ +#> item:sign/click/dye_autumn +############################## +### 衣替え装置 秋 +############################## + +#冬色に染める +#fill ~-1 ~-2 ~-2 ~5 ~4 ~4 minecraft:light_gray_wool replace minecraft:orange_wool +#data merge block ~ ~ ~ {Text1:"[{\"text\":\"\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"function item:sign/click/tent_placer/dye_winter\"}},{\"text\":\"\\u2726 \",\"color\":\"aqua\"},{\"translate\":\"衣替え装置\",\"bold\":true,\"color\":\"aqua\"},{\"text\":\" \\u2726\",\"color\":\"aqua\"}]",Text2:"{\"text\":\"=-=-=-=-=\"}",Text3:"[\"\",{\"text\":\"=-=\"},{\"translate\":\"冬\",\"bold\":true,\"color\":\"gray\"},{\"text\":\"=-=\"}]",Text4:"{\"text\":\"=-=-=-=-=\"}"} +#playsound minecraft:block.piston.contract master @a[distance=..16] ~ ~ ~ 1 1.5 +#particle minecraft:happy_villager ~2 ~ ~1 3 3 3 0 100 force +#particle minecraft:firework ~2 ~ ~1 3 3 3 0 100 force diff --git a/data/item/function/sign/click/dye_spring.mcfunction b/data/item/function/sign/click/dye_spring.mcfunction new file mode 100644 index 0000000000..abd67a8d6d --- /dev/null +++ b/data/item/function/sign/click/dye_spring.mcfunction @@ -0,0 +1,11 @@ +#> item:sign/click/dye_spring +############################## +### 衣替え装置 春 +############################## + +#夏色に染める +#fill ~-1 ~-2 ~-2 ~5 ~4 ~4 minecraft:green_wool replace minecraft:pink_wool +#data merge block ~ ~ ~ {Text1:"[{\"text\":\"\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"function item:sign/click/tent_placer/dye_summer\"}},{\"text\":\"\\u2726 \",\"color\":\"aqua\"},{\"translate\":\"衣替え装置\",\"bold\":true,\"color\":\"aqua\"},{\"text\":\" \\u2726\",\"color\":\"aqua\"}]",Text2:"{\"text\":\"=-=-=-=-=\"}",Text3:"[\"\",{\"text\":\"=-=\"},{\"translate\":\"春\",\"bold\":true,\"color\":\"dark_green\"},{\"text\":\"=-=\"}]",Text4:"{\"text\":\"=-=-=-=-=\"}"} +#playsound minecraft:block.piston.contract master @a[distance=..16] ~ ~ ~ 1 1.5 +#particle minecraft:happy_villager ~2 ~ ~1 3 3 3 0 100 force +#particle minecraft:firework ~2 ~ ~1 3 3 3 0 100 force diff --git a/data/item/function/sign/click/dye_summer.mcfunction b/data/item/function/sign/click/dye_summer.mcfunction new file mode 100644 index 0000000000..52ea3a8e6d --- /dev/null +++ b/data/item/function/sign/click/dye_summer.mcfunction @@ -0,0 +1,11 @@ +#> item:sign/click/dye_summer +############################## +### 衣替え装置 夏 +############################## + +#秋色に染める +#fill ~-1 ~-2 ~-2 ~5 ~4 ~4 minecraft:orange_wool replace minecraft:green_wool +#data merge block ~ ~ ~ {Text1:"[{\"text\":\"\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"function item:sign/click/tent_placer/dye_autumn\"}},{\"text\":\"\\u2726 \",\"color\":\"aqua\"},{\"translate\":\"衣替え装置\",\"bold\":true,\"color\":\"aqua\"},{\"text\":\" \\u2726\",\"color\":\"aqua\"}]",Text2:"{\"text\":\"=-=-=-=-=\"}",Text3:"[\"\",{\"text\":\"=-=\"},{\"translate\":\"夏\",\"bold\":true,\"color\":\"gold\"},{\"text\":\"=-=\"}]",Text4:"{\"text\":\"=-=-=-=-=\"}"} +#playsound minecraft:block.piston.contract master @a[distance=..16] ~ ~ ~ 1 1.5 +#particle minecraft:happy_villager ~2 ~ ~1 3 3 3 0 100 force +#particle minecraft:firework ~2 ~ ~1 3 3 3 0 100 force diff --git a/data/item/function/sign/click/dye_winter.mcfunction b/data/item/function/sign/click/dye_winter.mcfunction new file mode 100644 index 0000000000..c74fb2521b --- /dev/null +++ b/data/item/function/sign/click/dye_winter.mcfunction @@ -0,0 +1,11 @@ +#> item:sign/click/dye_winter +############################## +### 衣替え装置 冬 +############################## + +#春色に染める +#fill ~-1 ~-2 ~-2 ~5 ~4 ~4 minecraft:pink_wool replace minecraft:light_gray_wool +#data merge block ~ ~ ~ {Text1:"[{\"text\":\"\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"function item:sign/click/tent_placer/dye_spring\"}},{\"text\":\"\\u2726 \",\"color\":\"aqua\"},{\"translate\":\"衣替え装置\",\"bold\":true,\"color\":\"aqua\"},{\"text\":\" \\u2726\",\"color\":\"aqua\"}]",Text2:"{\"text\":\"=-=-=-=-=\"}",Text3:"[\"\",{\"text\":\"=-=\"},{\"translate\":\"冬\",\"bold\":true,\"color\":\"light_purple\"},{\"text\":\"=-=\"}]",Text4:"{\"text\":\"=-=-=-=-=\"}"} +#playsound minecraft:block.piston.contract master @a[distance=..16] ~ ~ ~ 1 1.5 +#particle minecraft:happy_villager ~2 ~ ~1 3 3 3 0 100 force +#particle minecraft:firework ~2 ~ ~1 3 3 3 0 100 force diff --git a/data/item/function/sign/click/harvest_beetroot.mcfunction b/data/item/function/sign/click/harvest_beetroot.mcfunction new file mode 100644 index 0000000000..109049e373 --- /dev/null +++ b/data/item/function/sign/click/harvest_beetroot.mcfunction @@ -0,0 +1,26 @@ +#> item:sign/click/harvest_beetroot +# 範囲内の育ち切った作物の数を記録 +execute store result score _ Calc store result score _ _ run clone ~-9 ~-1 ~-9 ~9 ~7 ~9 ~-9 ~-1 ~-9 filtered minecraft:beetroots[age=3] force + +# 育ち切った作物の数だけ報酬を召喚 +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:beetroots[age=3] +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute in area:control_area run setblock 5 5 5 air + +# warn対策 +execute in area:control_area positioned 5.0 5.0 5.0 as @e[distance=0] run data modify entity @s PickupDelay set value 9s + +# 得られた種の数を取得 +execute in area:control_area positioned 5.0 5.0 5.0 run tag @e[distance=0,nbt={Item:{id:"minecraft:beetroot_seeds"}}] add ConsumeItem +execute in area:control_area positioned 5.0 5.0 5.0 as @e[distance=0,tag=ConsumeItem] run data modify storage calc: List append from entity @s Item.count +execute store result score _ _ run function calc:list/sum/x1 + +# 種を消費して再設置する 足りないなら作物を回収する +execute if score _ Calc <= _ _ in area:control_area positioned 5.0 5.0 5.0 run function item:sign/click/common/consume_loop +execute if score _ Calc matches 1.. run fill ~-9 ~-1 ~-9 ~9 ~7 ~9 air replace minecraft:beetroots[age=3] +execute if score _ Calc matches ..0 run fill ~-9 ~-1 ~-9 ~9 ~7 ~9 minecraft:beetroots[age=0] replace minecraft:beetroots[age=3] + +# 収穫物を与える +execute in area:control_area positioned 5.0 5.0 5.0 run tp @e[distance=0] @s + +function makeup:item/sign/common_firework.macro {color:16761207} diff --git a/data/item/function/sign/click/harvest_carrot.mcfunction b/data/item/function/sign/click/harvest_carrot.mcfunction new file mode 100644 index 0000000000..2dbf5c88aa --- /dev/null +++ b/data/item/function/sign/click/harvest_carrot.mcfunction @@ -0,0 +1,26 @@ +#> item:sign/click/harvest_carrot +# 範囲内の育ち切った作物の数を記録 +execute store result score _ Calc store result score _ _ run clone ~-9 ~-1 ~-9 ~9 ~7 ~9 ~-9 ~-1 ~-9 filtered minecraft:carrots[age=7] force + +# 育ち切った作物の数だけ報酬を召喚 +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:carrots[age=7] +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute in area:control_area run setblock 5 5 5 air + +# warn対策 +execute in area:control_area positioned 5.0 5.0 5.0 as @e[distance=0] run data modify entity @s PickupDelay set value 9s + +# 得られた人参の数を取得 +execute in area:control_area positioned 5.0 5.0 5.0 run tag @e[distance=0,nbt={Item:{id:"minecraft:carrot"}}] add ConsumeItem +execute in area:control_area positioned 5.0 5.0 5.0 as @e[distance=0,tag=ConsumeItem] run data modify storage calc: List append from entity @s Item.count +execute store result score _ _ run function calc:list/sum/x1 + +# 人参を消費して再設置する 足りないなら作物を回収する +execute if score _ Calc <= _ _ in area:control_area positioned 5.0 5.0 5.0 run function item:sign/click/common/consume_loop +execute if score _ Calc matches 1.. run fill ~-9 ~-1 ~-9 ~9 ~7 ~9 air replace minecraft:carrots[age=7] +execute if score _ Calc matches ..0 run fill ~-9 ~-1 ~-9 ~9 ~7 ~9 minecraft:carrots[age=0] replace minecraft:carrots[age=7] + +# 収穫物を与える +execute in area:control_area positioned 5.0 5.0 5.0 run tp @e[distance=0] @s + +function makeup:item/sign/common_firework.macro {color:16761207} diff --git a/data/item/function/sign/click/harvest_nether_wart.mcfunction b/data/item/function/sign/click/harvest_nether_wart.mcfunction new file mode 100644 index 0000000000..26d8f4a42c --- /dev/null +++ b/data/item/function/sign/click/harvest_nether_wart.mcfunction @@ -0,0 +1,26 @@ +#> item:sign/click/harvest_nether_wart +# 範囲内の育ち切った作物の数を記録 +execute store result score _ Calc store result score _ _ run clone ~-9 ~-1 ~-9 ~9 ~7 ~9 ~-9 ~-1 ~-9 filtered minecraft:nether_wart[age=3] force + +# 育ち切った作物の数だけ報酬を召喚 +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:nether_wart[age=3] +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute in area:control_area run setblock 5 5 5 air + +# warn対策 +execute in area:control_area positioned 5.0 5.0 5.0 as @e[distance=0] run data modify entity @s PickupDelay set value 9s + +# 得られた人参の数を取得 +execute in area:control_area positioned 5.0 5.0 5.0 run tag @e[distance=0,nbt={Item:{id:"minecraft:nether_wart"}}] add ConsumeItem +execute in area:control_area positioned 5.0 5.0 5.0 as @e[distance=0,tag=ConsumeItem] run data modify storage calc: List append from entity @s Item.count +execute store result score _ _ run function calc:list/sum/x1 + +# 人参を消費して再設置する 足りないなら作物を回収する +execute if score _ Calc <= _ _ in area:control_area positioned 5.0 5.0 5.0 run function item:sign/click/common/consume_loop +execute if score _ Calc matches 1.. run fill ~-9 ~-1 ~-9 ~9 ~7 ~9 air replace minecraft:nether_wart[age=3] +execute if score _ Calc matches ..0 run fill ~-9 ~-1 ~-9 ~9 ~7 ~9 minecraft:nether_wart[age=0] replace minecraft:nether_wart[age=3] + +# 収穫物を与える +execute in area:control_area positioned 5.0 5.0 5.0 run tp @e[distance=0] @s + +function makeup:item/sign/common_firework.macro {color:10888496} diff --git a/data/item/function/sign/click/harvest_potato.mcfunction b/data/item/function/sign/click/harvest_potato.mcfunction new file mode 100644 index 0000000000..1b7efb615f --- /dev/null +++ b/data/item/function/sign/click/harvest_potato.mcfunction @@ -0,0 +1,26 @@ +#> item:sign/click/harvest_potato +# 範囲内の育ち切った作物の数を記録 +execute store result score _ Calc store result score _ _ run clone ~-9 ~-1 ~-9 ~9 ~7 ~9 ~-9 ~-1 ~-9 filtered minecraft:potatoes[age=7] force + +# 育ち切った作物の数だけ報酬を召喚 +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:potatoes[age=7] +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute in area:control_area run setblock 5 5 5 air + +# warn対策 +execute in area:control_area positioned 5.0 5.0 5.0 as @e[distance=0] run data modify entity @s PickupDelay set value 9s + +# 得られた芋の数を取得 +execute in area:control_area positioned 5.0 5.0 5.0 run tag @e[distance=0,nbt={Item:{id:"minecraft:potato"}}] add ConsumeItem +execute in area:control_area positioned 5.0 5.0 5.0 as @e[distance=0,tag=ConsumeItem] run data modify storage calc: List append from entity @s Item.count +execute store result score _ _ run function calc:list/sum/x1 + +# 芋を消費して再設置する 足りないなら作物を回収する +execute if score _ Calc <= _ _ in area:control_area positioned 5.0 5.0 5.0 run function item:sign/click/common/consume_loop +execute if score _ Calc matches 1.. run fill ~-9 ~-1 ~-9 ~9 ~7 ~9 air replace minecraft:potatoes[age=7] +execute if score _ Calc matches ..0 run fill ~-9 ~-1 ~-9 ~9 ~7 ~9 minecraft:potatoes[age=0] replace minecraft:potatoes[age=7] + +# 収穫物を与える +execute in area:control_area positioned 5.0 5.0 5.0 run tp @e[distance=0] @s + +function makeup:item/sign/common_firework.macro {color:16508604} diff --git a/data/item/function/sign/click/harvest_wheat.mcfunction b/data/item/function/sign/click/harvest_wheat.mcfunction new file mode 100644 index 0000000000..7d22be4038 --- /dev/null +++ b/data/item/function/sign/click/harvest_wheat.mcfunction @@ -0,0 +1,26 @@ +#> item:sign/click/harvest_wheat +# 範囲内の育ち切った作物の数を記録 +execute store result score _ Calc store result score _ _ run clone ~-9 ~-1 ~-9 ~9 ~7 ~9 ~-9 ~-1 ~-9 filtered minecraft:wheat[age=7] force + +# 育ち切った作物の数だけ報酬を召喚 +execute if score _ _ matches 1.. in area:control_area run setblock 5 5 5 minecraft:wheat[age=7] +execute if score _ _ matches 1.. in area:control_area run function item:sign/click/common/mine_loop +execute in area:control_area run setblock 5 5 5 air + +# warn対策 +execute in area:control_area positioned 5.0 5.0 5.0 as @e[distance=0] run data modify entity @s PickupDelay set value 9s + +# 得られた種の数を取得 +execute in area:control_area positioned 5.0 5.0 5.0 run tag @e[distance=0,nbt={Item:{id:"minecraft:wheat_seeds"}}] add ConsumeItem +execute in area:control_area positioned 5.0 5.0 5.0 as @e[distance=0,tag=ConsumeItem] run data modify storage calc: List append from entity @s Item.count +execute store result score _ _ run function calc:list/sum/x1 + +# 種を消費して再設置する 足りないなら作物を回収する +execute if score _ Calc <= _ _ in area:control_area positioned 5.0 5.0 5.0 run function item:sign/click/common/consume_loop +execute if score _ Calc matches 1.. run fill ~-9 ~-1 ~-9 ~9 ~7 ~9 air replace minecraft:wheat[age=7] +execute if score _ Calc matches ..0 run fill ~-9 ~-1 ~-9 ~9 ~7 ~9 minecraft:wheat[age=0] replace minecraft:wheat[age=7] + +# 収穫物を与える +execute in area:control_area positioned 5.0 5.0 5.0 run tp @e[distance=0] @s + +function makeup:item/sign/common_firework.macro {color:9017865} diff --git a/data/item/function/sign/click/hunter_soul.mcfunction b/data/item/function/sign/click/hunter_soul.mcfunction new file mode 100644 index 0000000000..587a08cc62 --- /dev/null +++ b/data/item/function/sign/click/hunter_soul.mcfunction @@ -0,0 +1,11 @@ +#> item:sign/click/hunter_soul +############################## +### 狩人の魂 +############################## + + +## 手にアイテムを持っているかを確認 +## 持っていなかったらエラーメッセージを返す +execute unless items entity @s weapon.mainhand * run tellraw @s {"translate":"手に何かアイテムを持ってください。","color":"#CF1E0A"} +execute unless items entity @s weapon.mainhand * run function makeup:item/sign/soul_series/fail +execute if items entity @s weapon.mainhand * run function item:sign/soul_series/hunter/ diff --git a/data/item/function/sign/click/inn.mcfunction b/data/item/function/sign/click/inn.mcfunction new file mode 100644 index 0000000000..8470e9c02c --- /dev/null +++ b/data/item/function/sign/click/inn.mcfunction @@ -0,0 +1,17 @@ +#> item:sign/click/inn +############################## +### 宿の印板 +############################## + +#設置スペースの検知 +#scoreboard players set _ _ 0 +#execute if blocks ~1 ~ ~-3 ~3 ~ ~3 -1923 3 -75 all if blocks ~ ~ ~1 ~ ~ ~3 -1923 3 -75 all if blocks ~ ~ ~-3 ~ ~ ~-1 -1923 3 -75 all if blocks ~-3 ~ ~-3 ~-1 ~ ~3 -1923 3 -75 all if blocks ~-3 ~1 ~-3 ~3 ~3 ~3 -1923 3 -75 all if blocks ~-3 ~4 ~-2 ~-2 ~4 ~2 -1923 3 -75 all if blocks ~-1 ~4 ~-3 ~1 ~4 ~3 -1923 3 -75 all if blocks ~2 ~4 ~-2 ~3 ~4 ~2 -1923 3 -75 all if blocks ~-3 ~5 ~-1 ~-2 ~5 ~1 -1923 3 -75 all if blocks ~-1 ~5 ~-3 ~-1 ~5 ~3 -1923 3 -75 all if blocks ~ ~5 ~-2 ~ ~5 ~2 -1923 3 -75 all if blocks ~1 ~5 ~-3 ~1 ~5 ~3 -1923 3 -75 all if blocks ~2 ~5 ~-1 ~3 ~5 ~1 -1923 3 -75 all if blocks ~-3 ~6 ~-1 ~-3 ~6 ~1 -1923 3 -75 all if blocks ~-1 ~6 ~-1 ~-1 ~6 ~1 -1923 3 -75 all if blocks ~1 ~6 ~-1 ~1 ~6 ~1 -1923 3 -75 all if blocks ~3 ~6 ~-1 ~3 ~6 ~1 -1923 3 -75 all if blocks ~-3 ~6 ~ ~3 ~6 ~ -1923 3 -75 all run scoreboard players set _ _ 1 + +#スペース不十分時 +#execute if score _ _ matches 0 run tellraw @s {"translate":"スペースが足りない!"} +#execute if score _ _ matches 0 run function makeup:item/sign/inn/failed + +#設置 +#execute if score _ _ matches 1 run setblock ~ ~ ~ minecraft:air +#execute if score _ _ matches 1 run clone -1923 13 -75 -1917 19 -69 ~-3 ~ ~-3 masked +#execute if score _ _ matches 1 run function makeup:item/sign/inn/success diff --git a/data/item/function/sign/click/knight_soul.mcfunction b/data/item/function/sign/click/knight_soul.mcfunction new file mode 100644 index 0000000000..d1853f95c9 --- /dev/null +++ b/data/item/function/sign/click/knight_soul.mcfunction @@ -0,0 +1,11 @@ +#> item:sign/click/knight_soul +############################## +### 剣士の魂 +############################## + + +## 手にアイテムを持っているかを確認 +## 持っていなかったらエラーメッセージを返す +execute unless items entity @s weapon.mainhand * run tellraw @s {"translate":"手に何かアイテムを持ってください。","color":"#CF1E0A"} +execute unless items entity @s weapon.mainhand * run function makeup:item/sign/soul_series/fail +execute if items entity @s weapon.mainhand * run function item:sign/soul_series/knight/ diff --git a/data/item/function/sign/click/ninja_soul.mcfunction b/data/item/function/sign/click/ninja_soul.mcfunction new file mode 100644 index 0000000000..432cef3401 --- /dev/null +++ b/data/item/function/sign/click/ninja_soul.mcfunction @@ -0,0 +1,11 @@ +#> item:sign/click/ninja_soul +############################## +### 忍者の魂 +############################## + + +## 手にアイテムを持っているかを確認 +## 持っていなかったらエラーメッセージを返す +execute unless items entity @s weapon.mainhand * run tellraw @s {"translate":"手に何かアイテムを持ってください。","color":"#CF1E0A"} +execute unless items entity @s weapon.mainhand * run function makeup:item/sign/soul_series/fail +execute if items entity @s weapon.mainhand * run function item:sign/soul_series/ninja/ diff --git a/data/item/function/sign/click/sheep_spawner.mcfunction b/data/item/function/sign/click/sheep_spawner.mcfunction new file mode 100644 index 0000000000..25d35c3f88 --- /dev/null +++ b/data/item/function/sign/click/sheep_spawner.mcfunction @@ -0,0 +1,14 @@ +#> item:sign/click/sheep_spawner +# +# 羊スポナーの印板 +# +# @private + +# 設置 + summon minecraft:item_display ~ ~ ~ {Tags:[Spawner,SpawnerHolder],glow_color_override:-1,shadow_radius:0.0f,billboard:"fixed",shadow_strength:1.0f,width:0.0f,height: 0.0f,view_range:1.0f,transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.01f,1.01f,1.01f]},item:{id:"white_wool",count:1b,components:{"minecraft:enchantment_glint_override":true,"minecraft:custom_data":{Spawner:{SpawnCount:1s,SpawnRange:4s,MaxNearbyEntities:6s,Delay:-1s,MinSpawnDelay:10s,MaxSpawnDelay:30s,RequiredPlayerRange:20s,SpawnData:{entity:{id:"minecraft:sheep",Age:-100,active_effects:[{id:"minecraft:invisibility",amplifier:127b,duration:100,show_particles:0b}],DeathLootTable:"empty",Tags:[Spawn],DeathTime:19s,NoAI:1b,Silent:1b,Invisible:1b,ArmorItems:[{},{},{},{id:"minecraft:stick",count:1b,components:{"minecraft:custom_model_data":1,"minecraft:custom_data":{SpawnEntities:[[{Tags:[Global,Neutrality,Blow,01Woolscaffold,SpawnParticles],Level:1}]]}}}]}},SpawnPotentials:[{weight:474,data:{entity:{id:"minecraft:sheep",Age:-100,active_effects:[{id:"minecraft:invisibility",amplifier:127b,duration:100,show_particles:0b}],DeathLootTable:"empty",Tags:[Spawn],DeathTime:19s,NoAI:1b,Silent:1b,Invisible:1b,ArmorItems:[{},{},{},{id:"minecraft:stick",count:1b,components:{"minecraft:custom_model_data":1,"minecraft:custom_data":{SpawnEntities:[[{Tags:[Global,Neutrality,Blow,01Woolscaffold,SpawnParticles],Level:1}]]}}}]}}},{weight:3,data:{entity:{id:"minecraft:sheep",Age:-100,active_effects:[{id:"minecraft:invisibility",amplifier:127b,duration:100,show_particles:0b}],DeathLootTable:"empty",Tags:[Spawn],DeathTime:19s,NoAI:1b,Silent:1b,Invisible:1b,ArmorItems:[{},{},{},{id:"minecraft:stick",Count:1b,components:{"minecraft:custom_model_data":1,"minecraft:custom_data":{SpawnEntities:[[{Tags:[Global,Neutrality,Blow,02Woolscaffold,SpawnParticles],Level:5}]]}}}]}}},{weight:3,data:{entity:{id:"minecraft:sheep",Age:-100,active_effects:[{id:"minecraft:invisibility",amplifier:127b,duration:100,show_particles:0b}],DeathLootTable:"empty",Tags:[Spawn],DeathTime:19s,NoAI:1b,Silent:1b,Invisible:1b,ArmorItems:[{},{},{},{id:"minecraft:stick",count:1b,components:{"minecraft:custom_model_data":1,"minecraft:custom_data":{SpawnEntities:[[{Tags:[Global,Neutrality,Blow,03Woolscaffold,SpawnParticles],Level:10}]]}}}]}}}]},Count:99}}}} + +# 演出 + function makeup:item/sign/sheep_spawner + +# 消滅 + setblock ~ ~ ~ minecraft:air diff --git a/data/item/function/sign/click/summoner_soul.mcfunction b/data/item/function/sign/click/summoner_soul.mcfunction new file mode 100644 index 0000000000..6010194ad1 --- /dev/null +++ b/data/item/function/sign/click/summoner_soul.mcfunction @@ -0,0 +1,11 @@ +#> item:sign/click/summoner_soul +############################## +### 召喚士の魂 +############################## + + +## 手にアイテムを持っているかを確認 +## 持っていなかったらエラーメッセージを返す +execute unless items entity @s weapon.mainhand * run tellraw @s {"translate":"手に何かアイテムを持ってください。","color":"#CF1E0A"} +execute unless items entity @s weapon.mainhand * run function makeup:item/sign/soul_series/fail +execute if items entity @s weapon.mainhand * run function item:sign/soul_series/summoner/ diff --git a/data/item/function/sign/click/teleport.mcfunction b/data/item/function/sign/click/teleport.mcfunction new file mode 100644 index 0000000000..c5dad77171 --- /dev/null +++ b/data/item/function/sign/click/teleport.mcfunction @@ -0,0 +1,10 @@ +#> item:sign/click/teleport +############################## +### 転移の印版 +############################## + +function makeup:item/sign/teleport/before + +execute positioned as @s run spreadplayers ~ ~ 0 1 false @s + +execute at @s run function makeup:item/sign/teleport/after diff --git a/data/item/function/sign/click/trade.mcfunction b/data/item/function/sign/click/trade.mcfunction new file mode 100644 index 0000000000..97d775dc9a --- /dev/null +++ b/data/item/function/sign/click/trade.mcfunction @@ -0,0 +1,28 @@ +#> item:sign/click/trade +############################## +### 取引の印版 +############################## + +# スコア初期化 + scoreboard players set _ Calc 0 + +# 羊毛の個数確認/取引処理 + execute store result score _ _ run clear @s white_wool 0 + execute if score _ _ matches 32.. run scoreboard players add _ Calc 1 + execute if score _ _ matches 32.. run clear @s white_wool 32 + execute if score _ _ matches 32.. run give @s emerald 1 + +# 演出分岐 + execute unless score _ Calc matches 0 run return run function makeup:item/sign/trade/success + +# 砂利の個数確認/取引処理 +# ※羊毛のトレードが失敗した時のみコマンドを動かす + scoreboard players set _ _ 0 + execute store result score _ _ run clear @s gravel 0 + execute if score _ _ matches 32.. run scoreboard players add _ Calc 1 + execute if score _ _ matches 32.. run clear @s gravel 32 + execute if score _ _ matches 32.. run give @s emerald 1 + +# 演出分岐 + execute unless score _ Calc matches 0 run function makeup:item/sign/trade/success + execute if score _ Calc matches 0 run function makeup:item/sign/trade/fail diff --git a/data/item/function/sign/click/trade_all/.mcfunction b/data/item/function/sign/click/trade_all/.mcfunction new file mode 100644 index 0000000000..e993e51b8e --- /dev/null +++ b/data/item/function/sign/click/trade_all/.mcfunction @@ -0,0 +1,22 @@ +#> item:sign/click/trade_all/ +# +# 取引の印板・改 +# +# @private + +# スコア初期化 + scoreboard players set _ Calc 0 + +# 羊毛の個数確認/ループ処理 + execute store result score _ _ run clear @s white_wool 0 + execute if score _ _ matches 32.. run scoreboard players add _ Calc 1 + execute if score _ _ matches 32.. run function item:sign/click/trade_all/loop_wool + +# 砂利の個数確認/ループ処理 + execute store result score _ _ run clear @s gravel 0 + execute if score _ _ matches 32.. run scoreboard players add _ Calc 1 + execute if score _ _ matches 32.. run function item:sign/click/trade_all/loop_gravel + +# 演出分岐 + execute unless score _ Calc matches 0 run function makeup:item/sign/trade/success + execute if score _ Calc matches 0 run function makeup:item/sign/trade/fail diff --git a/data/item/function/sign/click/trade_all/loop_gravel.mcfunction b/data/item/function/sign/click/trade_all/loop_gravel.mcfunction new file mode 100644 index 0000000000..8fb690f1a2 --- /dev/null +++ b/data/item/function/sign/click/trade_all/loop_gravel.mcfunction @@ -0,0 +1,15 @@ +#> item:sign/click/trade_all/loop_gravel +# +# +# +# @within function item:sign/click/trade_all/ + +# gravel 32 => emerald 1 + clear @s gravel 32 + give @s emerald 1 + +# 砂利の数を測定 + execute store result score _ _ run clear @s gravel 0 + +# 32個以上であればループ続行 + execute if score _ _ matches 32.. run function item:sign/click/trade_all/loop_gravel diff --git a/data/item/function/sign/click/trade_all/loop_wool.mcfunction b/data/item/function/sign/click/trade_all/loop_wool.mcfunction new file mode 100644 index 0000000000..b4aba62d16 --- /dev/null +++ b/data/item/function/sign/click/trade_all/loop_wool.mcfunction @@ -0,0 +1,15 @@ +#> item:sign/click/trade_all/loop_wool +# +# 取引の印判・改 ループ処理 +# +# @within function item:sign/click/trade_all/ + +# white_wool 32 => emerald 1 + clear @s white_wool 32 + give @s emerald 1 + +# 羊毛の数を測定 + execute store result score _ _ run clear @s white_wool 0 + +# 32個以上であればループ続行 + execute if score _ _ matches 32.. run function item:sign/click/trade_all/loop_wool diff --git a/data/item/function/sign/click/upgrade_black/.mcfunction b/data/item/function/sign/click/upgrade_black/.mcfunction new file mode 100644 index 0000000000..05f339518f --- /dev/null +++ b/data/item/function/sign/click/upgrade_black/.mcfunction @@ -0,0 +1,13 @@ +#> item:sign/click/upgrade_black/ +############################## +### 黒材強化の印板 +############################## + +#Y0~319に収まるよう3通りに分岐 +execute positioned as @s if entity @s[y=-8,dy=10] run function item:sign/click/upgrade_black/y0_1 +execute positioned as @s if entity @s[y=3,dy=300] run function item:sign/click/upgrade_black/y2_304 +execute positioned as @s if entity @s[y=306,dy=19] run function item:sign/click/upgrade_black/y305_319 + +function makeup:item/sign/upgrade_black + +setblock ~ ~ ~ minecraft:air diff --git a/data/item/function/sign/click/upgrade_black/y0_1.mcfunction b/data/item/function/sign/click/upgrade_black/y0_1.mcfunction new file mode 100644 index 0000000000..5e132646ab --- /dev/null +++ b/data/item/function/sign/click/upgrade_black/y0_1.mcfunction @@ -0,0 +1,3 @@ +#> item:sign/click/upgrade_black/y0_1 +fill ~-15 0 ~-15 ~15 ~15 ~15 minecraft:andesite replace minecraft:gray_wool +fill ~-15 0 ~-15 ~15 ~15 ~15 minecraft:gray_wool replace minecraft:gravel diff --git a/data/item/function/sign/click/upgrade_black/y2_304.mcfunction b/data/item/function/sign/click/upgrade_black/y2_304.mcfunction new file mode 100644 index 0000000000..57f0acb424 --- /dev/null +++ b/data/item/function/sign/click/upgrade_black/y2_304.mcfunction @@ -0,0 +1,3 @@ +#> item:sign/click/upgrade_black/y2_304 +fill ~-15 ~-2 ~-15 ~15 ~15 ~15 minecraft:andesite replace minecraft:gray_wool +fill ~-15 ~-2 ~-15 ~15 ~15 ~15 minecraft:gray_wool replace minecraft:gravel diff --git a/data/item/function/sign/click/upgrade_black/y305_319.mcfunction b/data/item/function/sign/click/upgrade_black/y305_319.mcfunction new file mode 100644 index 0000000000..bffcf4bcc6 --- /dev/null +++ b/data/item/function/sign/click/upgrade_black/y305_319.mcfunction @@ -0,0 +1,3 @@ +#> item:sign/click/upgrade_black/y305_319 +fill ~-15 ~-2 ~-15 ~15 319 ~15 minecraft:andesite replace minecraft:gray_wool +fill ~-15 ~-2 ~-15 ~15 319 ~15 minecraft:gray_wool replace minecraft:gravel diff --git a/data/item/function/sign/click/upgrade_white/.mcfunction b/data/item/function/sign/click/upgrade_white/.mcfunction new file mode 100644 index 0000000000..65e7cd30df --- /dev/null +++ b/data/item/function/sign/click/upgrade_white/.mcfunction @@ -0,0 +1,13 @@ +#> item:sign/click/upgrade_white/ +############################## +### 白材強化の印板 +############################## + +#Y0~319に収まるよう3通りに分岐 +execute positioned as @s if entity @s[y=-8,dy=10] run function item:sign/click/upgrade_white/y0_1 +execute positioned as @s if entity @s[y=3,dy=300] run function item:sign/click/upgrade_white/y2_304 +execute positioned as @s if entity @s[y=306,dy=19] run function item:sign/click/upgrade_white/y305_319 + +function makeup:item/sign/upgrade_white + +setblock ~ ~ ~ minecraft:air diff --git a/data/item/function/sign/click/upgrade_white/y0_1.mcfunction b/data/item/function/sign/click/upgrade_white/y0_1.mcfunction new file mode 100644 index 0000000000..9f4d3e1648 --- /dev/null +++ b/data/item/function/sign/click/upgrade_white/y0_1.mcfunction @@ -0,0 +1,3 @@ +#> item:sign/click/upgrade_white/y0_1 +fill ~-15 0 ~-15 ~15 ~15 ~15 minecraft:quartz_block replace minecraft:snow_block +fill ~-15 0 ~-15 ~15 ~15 ~15 minecraft:snow_block replace minecraft:white_wool diff --git a/data/item/function/sign/click/upgrade_white/y2_304.mcfunction b/data/item/function/sign/click/upgrade_white/y2_304.mcfunction new file mode 100644 index 0000000000..c029d8d25d --- /dev/null +++ b/data/item/function/sign/click/upgrade_white/y2_304.mcfunction @@ -0,0 +1,3 @@ +#> item:sign/click/upgrade_white/y2_304 +fill ~-15 ~-2 ~-15 ~15 ~15 ~15 minecraft:quartz_block replace minecraft:snow_block +fill ~-15 ~-2 ~-15 ~15 ~15 ~15 minecraft:snow_block replace minecraft:white_wool diff --git a/data/item/function/sign/click/upgrade_white/y305_319.mcfunction b/data/item/function/sign/click/upgrade_white/y305_319.mcfunction new file mode 100644 index 0000000000..c35f5cf6eb --- /dev/null +++ b/data/item/function/sign/click/upgrade_white/y305_319.mcfunction @@ -0,0 +1,3 @@ +#> item:sign/click/upgrade_white/y305_319 +fill ~-15 ~-2 ~-15 ~15 319 ~15 minecraft:quartz_block replace minecraft:snow_block +fill ~-15 ~-2 ~-15 ~15 319 ~15 minecraft:snow_block replace minecraft:white_wool diff --git a/data/item/function/sign/click/very_glow.mcfunction b/data/item/function/sign/click/very_glow.mcfunction new file mode 100644 index 0000000000..3d8165624f --- /dev/null +++ b/data/item/function/sign/click/very_glow.mcfunction @@ -0,0 +1,5 @@ +#> item:sign/click/very_glow +effect give @s night_vision 3 0 +effect give @s glowing infinite 0 true + +function makeup:item/sign/common_firework.macro {color:16777132} diff --git a/data/item/function/sign/click/warden_kit/.mcfunction b/data/item/function/sign/click/warden_kit/.mcfunction new file mode 100644 index 0000000000..5381e53a57 --- /dev/null +++ b/data/item/function/sign/click/warden_kit/.mcfunction @@ -0,0 +1,30 @@ +#> item:sign/click/warden_kit/ +# +# ウォーデン栽培 +# +# @private + +# 空気かどうかをしっかり確かめる + scoreboard players set _ _ 0 + execute if block ~ ~ ~1 air run scoreboard players add _ _ 1 + execute if block ~ ~ ~-1 air run scoreboard players add _ _ 1 + execute if block ~1 ~ ~1 air run scoreboard players add _ _ 1 + execute if block ~1 ~ ~ air run scoreboard players add _ _ 1 + execute if block ~1 ~ ~-1 air run scoreboard players add _ _ 1 + execute if block ~-1 ~ ~1 air run scoreboard players add _ _ 1 + execute if block ~-1 ~ ~ air run scoreboard players add _ _ 1 + execute if block ~-1 ~ ~-1 air run scoreboard players add _ _ 1 + execute if block ~ ~1 ~ air run scoreboard players add _ _ 1 + execute if block ~ ~1 ~1 air run scoreboard players add _ _ 1 + execute if block ~ ~1 ~-1 air run scoreboard players add _ _ 1 + execute if block ~1 ~1 ~1 air run scoreboard players add _ _ 1 + execute if block ~1 ~1 ~ air run scoreboard players add _ _ 1 + execute if block ~1 ~1 ~-1 air run scoreboard players add _ _ 1 + execute if block ~-1 ~1 ~1 air run scoreboard players add _ _ 1 + execute if block ~-1 ~1 ~ air run scoreboard players add _ _ 1 + execute if block ~-1 ~1 ~-1 air run scoreboard players add _ _ 1 + +# 2×3の空間がない場合失敗 + execute if score _ _ matches 17 run function item:sign/click/warden_kit/success + execute unless score _ _ matches 17 run function makeup:item/sign/warden_kit/fail + execute unless score _ _ matches 17 run tellraw @s {"translate":"この印板は3×2×3の空間がなければ使用できません。","color":"red","bold":true} diff --git a/data/item/function/sign/click/warden_kit/success.mcfunction b/data/item/function/sign/click/warden_kit/success.mcfunction new file mode 100644 index 0000000000..1f10eea4eb --- /dev/null +++ b/data/item/function/sign/click/warden_kit/success.mcfunction @@ -0,0 +1,10 @@ +#> item:sign/click/warden_kit/success +# +# ウォーデン栽培 成功時 +# +# @within function item:sign/click/warden_kit/ + +fill ~-1 ~ ~-1 ~1 ~ ~1 sculk replace +setblock ~ ~1 ~1 sculk_sensor replace +setblock ~ ~1 ~-1 sculk_shrieker[can_summon=true] replace +function makeup:item/sign/warden_kit/success diff --git a/data/item/function/sign/click/white_mage_soul.mcfunction b/data/item/function/sign/click/white_mage_soul.mcfunction new file mode 100644 index 0000000000..d9c5bf9b7f --- /dev/null +++ b/data/item/function/sign/click/white_mage_soul.mcfunction @@ -0,0 +1,11 @@ +#> item:sign/click/white_mage_soul +############################## +### 白魔道士の魂 +############################## + + +## 手にアイテムを持っているかを確認 +## 持っていなかったらエラーメッセージを返す +execute unless items entity @s weapon.mainhand * run tellraw @s {"translate":"手に何かアイテムを持ってください。","color":"#CF1E0A"} +execute unless items entity @s weapon.mainhand * run function makeup:item/sign/soul_series/fail +execute if items entity @s weapon.mainhand * run function item:sign/soul_series/white_mage/ diff --git a/data/item/function/sign/soul_series/apply_to/boots.mcfunction b/data/item/function/sign/soul_series/apply_to/boots.mcfunction new file mode 100644 index 0000000000..64e4bca8f0 --- /dev/null +++ b/data/item/function/sign/soul_series/apply_to/boots.mcfunction @@ -0,0 +1,3 @@ +#> item:sign/soul_series/apply_to/boots +execute if items entity @s weapon.mainhand #minecraft:foot_armor[minecraft:attribute_modifiers~{modifiers:{size:0}}] run function settings:item/sign/soul_series/default_attributes/boots +data modify storage item: Soul.Attributes[].slot set value "feet" diff --git a/data/item/function/sign/soul_series/apply_to/chestplate.mcfunction b/data/item/function/sign/soul_series/apply_to/chestplate.mcfunction new file mode 100644 index 0000000000..c7838a9bb0 --- /dev/null +++ b/data/item/function/sign/soul_series/apply_to/chestplate.mcfunction @@ -0,0 +1,3 @@ +#> item:sign/soul_series/apply_to/chestplate +execute if items entity @s weapon.mainhand #minecraft:chest_armor[minecraft:attribute_modifiers~{modifiers:{size:0}}] run function settings:item/sign/soul_series/default_attributes/chestplate +data modify storage item: Soul.Attributes[].slot set value "chest" diff --git a/data/item/function/sign/soul_series/apply_to/helmet.mcfunction b/data/item/function/sign/soul_series/apply_to/helmet.mcfunction new file mode 100644 index 0000000000..b3674ce170 --- /dev/null +++ b/data/item/function/sign/soul_series/apply_to/helmet.mcfunction @@ -0,0 +1,3 @@ +#> item:sign/soul_series/apply_to/helmet +execute if items entity @s weapon.mainhand #minecraft:head_armor[minecraft:attribute_modifiers~{modifiers:{size:0}}] run function settings:item/sign/soul_series/default_attributes/helmet +data modify storage item: Soul.Attributes[].slot set value "head" diff --git a/data/item/function/sign/soul_series/apply_to/leggings.mcfunction b/data/item/function/sign/soul_series/apply_to/leggings.mcfunction new file mode 100644 index 0000000000..5942a4ecb9 --- /dev/null +++ b/data/item/function/sign/soul_series/apply_to/leggings.mcfunction @@ -0,0 +1,3 @@ +#> item:sign/soul_series/apply_to/leggings +execute if items entity @s weapon.mainhand #minecraft:leg_armor[minecraft:attribute_modifiers~{modifiers:{size:0}}] run function settings:item/sign/soul_series/default_attributes/leggings +data modify storage item: Soul.Attributes[].slot set value "legs" diff --git a/data/item/function/sign/soul_series/apply_to/shield.mcfunction b/data/item/function/sign/soul_series/apply_to/shield.mcfunction new file mode 100644 index 0000000000..bbd91784e9 --- /dev/null +++ b/data/item/function/sign/soul_series/apply_to/shield.mcfunction @@ -0,0 +1,2 @@ +#> item:sign/soul_series/apply_to/shield +data modify storage item: Soul.Attributes[].slot set value "offhand" diff --git a/data/item/function/sign/soul_series/apply_to/weapon.mcfunction b/data/item/function/sign/soul_series/apply_to/weapon.mcfunction new file mode 100644 index 0000000000..da0f7ab1bc --- /dev/null +++ b/data/item/function/sign/soul_series/apply_to/weapon.mcfunction @@ -0,0 +1,5 @@ +#> item:sign/soul_series/apply_to/weapon +data modify entity @s Item.components."minecraft:attribute_modifiers".modifiers append value {type:"generic.armor_toughness",id:"generic.armor_toughness",amount:10,operation:"add_value",slot:"mainhand"} +data modify entity @s Item.components."minecraft:attribute_modifiers".modifiers append value {type:"generic.armor_toughness",id:"generic.armor_toughness",amount:0.3,operation:"add_multiplied_base",slot:"mainhand"} +data modify entity @s Item.components."minecraft:attribute_modifiers".modifiers append value {type:"generic.knockback_resistance",id:"generic.knockback_resistance",amount:0.5,operation:"add_value",slot:"mainhand"} +data modify entity @s Item.components."minecraft:attribute_modifiers".modifiers append value {type:"generic.knockback_resistance",id:"generic.knockback_resistance",amount:0.25,operation:"add_multiplied_base",slot:"mainhand"} diff --git a/data/item/function/sign/soul_series/black_mage/.mcfunction b/data/item/function/sign/soul_series/black_mage/.mcfunction new file mode 100644 index 0000000000..3b20ee3a02 --- /dev/null +++ b/data/item/function/sign/soul_series/black_mage/.mcfunction @@ -0,0 +1,5 @@ +#> item:sign/soul_series/black_mage/ +## すでに付与済みだったらエラーメッセージを返す +execute if data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run tellraw @s {"translate":"そのアイテムにはすでに魂が付与されています。","color":"#CF1E0A"} +execute if data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run function makeup:item/sign/soul_series/fail +execute unless data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run function item:sign/soul_series/black_mage/apply diff --git a/data/item/function/sign/soul_series/black_mage/apply.mcfunction b/data/item/function/sign/soul_series/black_mage/apply.mcfunction new file mode 100644 index 0000000000..6b55a85faf --- /dev/null +++ b/data/item/function/sign/soul_series/black_mage/apply.mcfunction @@ -0,0 +1,29 @@ +#> item:sign/soul_series/black_mage/apply +## + +data modify storage item: Item set from entity @s SelectedItem + +data modify storage item: Soul.Attributes set value [] +function settings:item/sign/soul_series/black_mage + +execute if items entity @s weapon.mainhand minecraft:shield run function item:sign/soul_series/apply_to/shield +execute if items entity @s weapon.mainhand #minecraft:foot_armor run function item:sign/soul_series/apply_to/boots +execute if items entity @s weapon.mainhand #minecraft:leg_armor run function item:sign/soul_series/apply_to/leggings +execute if items entity @s weapon.mainhand #minecraft:chest_armor run function item:sign/soul_series/apply_to/chestplate +execute if items entity @s weapon.mainhand #minecraft:head_armor run function item:sign/soul_series/apply_to/helmet + +data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers append from storage item: Soul.Attributes[] +data modify storage item: Item.components."minecraft:custom_data".ApplyedSoul set value "黒魔導士" +data modify storage item: Item.components."minecraft:lore" insert 0 value '{"translate":"魂 : %1$s","color":"white","italic":false,"with":[{"translate":"黒魔導士","color":"white","italic":false}]}' + +## 付与 +data modify storage item: Items set value [] +data modify storage item: Items append from storage item: Item +function item:system/shulker_box/save +execute in area:control_area run item replace entity @s weapon.mainhand from block 2 2 2 container.0 + +## 演出 +function makeup:item/sign/soul_series/black_mage + +## ブロック消去 +setblock ~ ~ ~ minecraft:air diff --git a/data/item/function/sign/soul_series/hunter/.mcfunction b/data/item/function/sign/soul_series/hunter/.mcfunction new file mode 100644 index 0000000000..ae42b88973 --- /dev/null +++ b/data/item/function/sign/soul_series/hunter/.mcfunction @@ -0,0 +1,5 @@ +#> item:sign/soul_series/hunter/ +## すでに付与済みだったらエラーメッセージを返す +execute if data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run tellraw @s {"translate":"そのアイテムにはすでに魂が付与されています。","color":"#CF1E0A"} +execute if data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run function makeup:item/sign/soul_series/fail +execute unless data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run function item:sign/soul_series/hunter/apply diff --git a/data/item/function/sign/soul_series/hunter/apply.mcfunction b/data/item/function/sign/soul_series/hunter/apply.mcfunction new file mode 100644 index 0000000000..f68a6b957e --- /dev/null +++ b/data/item/function/sign/soul_series/hunter/apply.mcfunction @@ -0,0 +1,29 @@ +#> item:sign/soul_series/hunter/apply +## + +data modify storage item: Item set from entity @s SelectedItem + +data modify storage item: Soul.Attributes set value [] +function settings:item/sign/soul_series/hunter + +execute if items entity @s weapon.mainhand minecraft:shield run function item:sign/soul_series/apply_to/shield +execute if items entity @s weapon.mainhand #minecraft:foot_armor run function item:sign/soul_series/apply_to/boots +execute if items entity @s weapon.mainhand #minecraft:leg_armor run function item:sign/soul_series/apply_to/leggings +execute if items entity @s weapon.mainhand #minecraft:chest_armor run function item:sign/soul_series/apply_to/chestplate +execute if items entity @s weapon.mainhand #minecraft:head_armor run function item:sign/soul_series/apply_to/helmet + +data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers append from storage item: Soul.Attributes[] +data modify storage item: Item.components."minecraft:custom_data".ApplyedSoul set value "狩人" +data modify storage item: Item.components."minecraft:lore" insert 0 value '{"translate":"魂 : %1$s","color":"white","italic":false,"with":[{"translate":"狩人","color":"white","italic":false}]}' + +## 付与 +data modify storage item: Items set value [] +data modify storage item: Items append from storage item: Item +function item:system/shulker_box/save +execute in area:control_area run item replace entity @s weapon.mainhand from block 2 2 2 container.0 + +## 演出 +function makeup:item/sign/soul_series/hunter + +## ブロック消去 +setblock ~ ~ ~ minecraft:air diff --git a/data/item/function/sign/soul_series/knight/.mcfunction b/data/item/function/sign/soul_series/knight/.mcfunction new file mode 100644 index 0000000000..a403f5b21b --- /dev/null +++ b/data/item/function/sign/soul_series/knight/.mcfunction @@ -0,0 +1,5 @@ +#> item:sign/soul_series/knight/ +## すでに付与済みだったらエラーメッセージを返す +execute if data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run tellraw @s {"translate":"そのアイテムにはすでに魂が付与されています。","color":"#CF1E0A"} +execute if data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run function makeup:item/sign/soul_series/fail +execute unless data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run function item:sign/soul_series/knight/apply diff --git a/data/item/function/sign/soul_series/knight/apply.mcfunction b/data/item/function/sign/soul_series/knight/apply.mcfunction new file mode 100644 index 0000000000..ae4a2d8f02 --- /dev/null +++ b/data/item/function/sign/soul_series/knight/apply.mcfunction @@ -0,0 +1,29 @@ +#> item:sign/soul_series/knight/apply +## + +data modify storage item: Item set from entity @s SelectedItem + +data modify storage item: Soul.Attributes set value [] +function settings:item/sign/soul_series/knight + +execute if items entity @s weapon.mainhand minecraft:shield run function item:sign/soul_series/apply_to/shield +execute if items entity @s weapon.mainhand #minecraft:foot_armor run function item:sign/soul_series/apply_to/boots +execute if items entity @s weapon.mainhand #minecraft:leg_armor run function item:sign/soul_series/apply_to/leggings +execute if items entity @s weapon.mainhand #minecraft:chest_armor run function item:sign/soul_series/apply_to/chestplate +execute if items entity @s weapon.mainhand #minecraft:head_armor run function item:sign/soul_series/apply_to/helmet + +data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers append from storage item: Soul.Attributes[] +data modify storage item: Item.components."minecraft:custom_data".ApplyedSoul set value "剣士" +data modify storage item: Item.components."minecraft:lore" insert 0 value '{"translate":"魂 : %1$s","color":"white","italic":false,"with":[{"translate":"剣士","color":"white","italic":false}]}' + +## 付与 +data modify storage item: Items set value [] +data modify storage item: Items append from storage item: Item +function item:system/shulker_box/save +execute in area:control_area run item replace entity @s weapon.mainhand from block 2 2 2 container.0 + +## 演出 +function makeup:item/sign/soul_series/knight + +## ブロック消去 +setblock ~ ~ ~ minecraft:air diff --git a/data/item/function/sign/soul_series/ninja/.mcfunction b/data/item/function/sign/soul_series/ninja/.mcfunction new file mode 100644 index 0000000000..8bf4ff8ff6 --- /dev/null +++ b/data/item/function/sign/soul_series/ninja/.mcfunction @@ -0,0 +1,5 @@ +#> item:sign/soul_series/ninja/ +## すでに付与済みだったらエラーメッセージを返す +execute if data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run tellraw @s {"translate":"そのアイテムにはすでに魂が付与されています。","color":"#CF1E0A"} +execute if data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run function makeup:item/sign/soul_series/fail +execute unless data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run function item:sign/soul_series/ninja/apply diff --git a/data/item/function/sign/soul_series/ninja/apply.mcfunction b/data/item/function/sign/soul_series/ninja/apply.mcfunction new file mode 100644 index 0000000000..d3eae1d09e --- /dev/null +++ b/data/item/function/sign/soul_series/ninja/apply.mcfunction @@ -0,0 +1,29 @@ +#> item:sign/soul_series/ninja/apply +## + +data modify storage item: Item set from entity @s SelectedItem + +data modify storage item: Soul.Attributes set value [] +function settings:item/sign/soul_series/ninja + +execute if items entity @s weapon.mainhand minecraft:shield run function item:sign/soul_series/apply_to/shield +execute if items entity @s weapon.mainhand #minecraft:foot_armor run function item:sign/soul_series/apply_to/boots +execute if items entity @s weapon.mainhand #minecraft:leg_armor run function item:sign/soul_series/apply_to/leggings +execute if items entity @s weapon.mainhand #minecraft:chest_armor run function item:sign/soul_series/apply_to/chestplate +execute if items entity @s weapon.mainhand #minecraft:head_armor run function item:sign/soul_series/apply_to/helmet + +data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers append from storage item: Soul.Attributes[] +data modify storage item: Item.components."minecraft:custom_data".ApplyedSoul set value "忍者" +data modify storage item: Item.components."minecraft:lore" insert 0 value '{"translate":"魂 : %1$s","color":"white","italic":false,"with":[{"translate":"忍者","color":"white","italic":false}]}' + +## 付与 +data modify storage item: Items set value [] +data modify storage item: Items append from storage item: Item +function item:system/shulker_box/save +execute in area:control_area run item replace entity @s weapon.mainhand from block 2 2 2 container.0 + +## 演出 +function makeup:item/sign/soul_series/ninja + +## ブロック消去 +setblock ~ ~ ~ minecraft:air diff --git a/data/item/function/sign/soul_series/summoner/.mcfunction b/data/item/function/sign/soul_series/summoner/.mcfunction new file mode 100644 index 0000000000..bb48e583a0 --- /dev/null +++ b/data/item/function/sign/soul_series/summoner/.mcfunction @@ -0,0 +1,5 @@ +#> item:sign/soul_series/summoner/ +## すでに付与済みだったらエラーメッセージを返す +execute if data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run tellraw @s {"translate":"そのアイテムにはすでに魂が付与されています。","color":"#CF1E0A"} +execute if data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run function makeup:item/sign/soul_series/fail +execute unless data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run function item:sign/soul_series/summoner/apply diff --git a/data/item/function/sign/soul_series/summoner/apply.mcfunction b/data/item/function/sign/soul_series/summoner/apply.mcfunction new file mode 100644 index 0000000000..75832e19ff --- /dev/null +++ b/data/item/function/sign/soul_series/summoner/apply.mcfunction @@ -0,0 +1,29 @@ +#> item:sign/soul_series/summoner/apply +## + +data modify storage item: Item set from entity @s SelectedItem + +data modify storage item: Soul.Attributes set value [] +function settings:item/sign/soul_series/summoner + +execute if items entity @s weapon.mainhand minecraft:shield run function item:sign/soul_series/apply_to/shield +execute if items entity @s weapon.mainhand #minecraft:foot_armor run function item:sign/soul_series/apply_to/boots +execute if items entity @s weapon.mainhand #minecraft:leg_armor run function item:sign/soul_series/apply_to/leggings +execute if items entity @s weapon.mainhand #minecraft:chest_armor run function item:sign/soul_series/apply_to/chestplate +execute if items entity @s weapon.mainhand #minecraft:head_armor run function item:sign/soul_series/apply_to/helmet + +data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers append from storage item: Soul.Attributes[] +data modify storage item: Item.components."minecraft:custom_data".ApplyedSoul set value "召喚士" +data modify storage item: Item.components."minecraft:lore" insert 0 value '{"translate":"魂 : %1$s","color":"white","italic":false,"with":[{"translate":"召喚士","color":"white","italic":false}]}' + +## 付与 +data modify storage item: Items set value [] +data modify storage item: Items append from storage item: Item +function item:system/shulker_box/save +execute in area:control_area run item replace entity @s weapon.mainhand from block 2 2 2 container.0 + +## 演出 +function makeup:item/sign/soul_series/summoner + +## ブロック消去 +setblock ~ ~ ~ minecraft:air diff --git a/data/item/function/sign/soul_series/white_mage/.mcfunction b/data/item/function/sign/soul_series/white_mage/.mcfunction new file mode 100644 index 0000000000..b2da22a3cd --- /dev/null +++ b/data/item/function/sign/soul_series/white_mage/.mcfunction @@ -0,0 +1,5 @@ +#> item:sign/soul_series/white_mage/ +## すでに付与済みだったらエラーメッセージを返す +execute if data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run tellraw @s {"translate":"そのアイテムにはすでに魂が付与されています。","color":"#CF1E0A"} +execute if data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run function makeup:item/sign/soul_series/fail +execute unless data entity @s SelectedItem.components."minecraft:custom_data".ApplyedSoul run function item:sign/soul_series/white_mage/apply diff --git a/data/item/function/sign/soul_series/white_mage/apply.mcfunction b/data/item/function/sign/soul_series/white_mage/apply.mcfunction new file mode 100644 index 0000000000..0f8d519adc --- /dev/null +++ b/data/item/function/sign/soul_series/white_mage/apply.mcfunction @@ -0,0 +1,29 @@ +#> item:sign/soul_series/white_mage/apply +## + +data modify storage item: Item set from entity @s SelectedItem + +data modify storage item: Soul.Attributes set value [] +function settings:item/sign/soul_series/white_mage + +execute if items entity @s weapon.mainhand minecraft:shield run function item:sign/soul_series/apply_to/shield +execute if items entity @s weapon.mainhand #minecraft:foot_armor run function item:sign/soul_series/apply_to/boots +execute if items entity @s weapon.mainhand #minecraft:leg_armor run function item:sign/soul_series/apply_to/leggings +execute if items entity @s weapon.mainhand #minecraft:chest_armor run function item:sign/soul_series/apply_to/chestplate +execute if items entity @s weapon.mainhand #minecraft:head_armor run function item:sign/soul_series/apply_to/helmet + +data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers append from storage item: Soul.Attributes[] +data modify storage item: Item.components."minecraft:custom_data".ApplyedSoul set value "白魔導士" +data modify storage item: Item.components."minecraft:lore" insert 0 value '{"translate":"魂 : %1$s","color":"white","italic":false,"with":[{"translate":"白魔導士","color":"white","italic":false}]}' + +## 付与 +data modify storage item: Items set value [] +data modify storage item: Items append from storage item: Item +function item:system/shulker_box/save +execute in area:control_area run item replace entity @s weapon.mainhand from block 2 2 2 container.0 + +## 演出 +function makeup:item/sign/soul_series/white_mage + +## ブロック消去 +setblock ~ ~ ~ minecraft:air diff --git a/data/makeup/function/item/sign/annihilate/fail.mcfunction b/data/makeup/function/item/sign/annihilate/fail.mcfunction new file mode 100644 index 0000000000..f86062609c --- /dev/null +++ b/data/makeup/function/item/sign/annihilate/fail.mcfunction @@ -0,0 +1,9 @@ +#> makeup:item/sign/annihilate/fail +# +# 全滅の印板 失敗時 +# +# @within function item:sign/click/annihilate + +playsound entity.evoker.prepare_summon block @a[distance=..16] ~ ~ ~ 2 0 0 +particle witch ~ ~0.5 ~ 1 0.25 1 1 20 force +tellraw @s {"translate":"全滅の印板の力が何者かにかき消されてしまった。","color":"#BD0000","bold":true} diff --git a/data/makeup/function/item/sign/annihilate/success.mcfunction b/data/makeup/function/item/sign/annihilate/success.mcfunction new file mode 100644 index 0000000000..66dc327858 --- /dev/null +++ b/data/makeup/function/item/sign/annihilate/success.mcfunction @@ -0,0 +1,209 @@ +#> makeup:item/sign/annihilate/success +# +# 全滅の印板 成功時 +# +# @within function item:sign/click/annihilate + +# 音 +playsound entity.wither.death block @a[distance=..16] ~ ~ ~ 1 0.5 0 +playsound entity.wither.spawn block @a[distance=..16] ~ ~ ~ 1 0.5 0 + +# 円 +particle smoke ~-0.0 ~0.0 ~0.3 ~32.286 ~0.0 ~1000000000.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.029 ~0.0 ~0.299 ~98017160.0 ~0.0 ~995184704.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.059 ~0.0 ~0.294 ~195090368.0 ~0.0 ~980785216.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~0.087 ~0.0 ~0.287 ~290284704.0 ~0.0 ~956940352.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.115 ~0.0 ~0.277 ~382683456.0 ~0.0 ~923879424.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~0.141 ~0.0 ~0.265 ~471396768.0 ~0.0 ~881921216.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.167 ~0.0 ~0.249 ~555570304.0 ~0.0 ~831469568.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.19 ~0.0 ~0.232 ~634393344.0 ~0.0 ~773010432.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.212 ~0.0 ~0.212 ~707106752.0 ~0.0 ~707106752.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~0.232 ~0.0 ~0.19 ~773010432.0 ~0.0 ~634393344.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.249 ~0.0 ~0.167 ~831469568.0 ~0.0 ~555570240.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.265 ~0.0 ~0.141 ~881921216.0 ~0.0 ~471396768.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.277 ~0.0 ~0.115 ~923879424.0 ~0.0 ~382683456.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~0.287 ~0.0 ~0.087 ~956940352.0 ~0.0 ~290284672.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.294 ~0.0 ~0.059 ~980785280.0 ~0.0 ~195090352.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~0.299 ~0.0 ~0.029 ~995184704.0 ~0.0 ~98017160.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.3 ~0.0 ~-0.0 ~1000000000.0 ~0.0 ~19.868 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.299 ~0.0 ~-0.029 ~995184704.0 ~0.0 ~-98017112.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.294 ~0.0 ~-0.059 ~980785280.0 ~0.0 ~-195090320.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~0.287 ~0.0 ~-0.087 ~956940352.0 ~0.0 ~-290284640.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.277 ~0.0 ~-0.115 ~923879552.0 ~0.0 ~-382683424.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~0.265 ~0.0 ~-0.141 ~881921216.0 ~0.0 ~-471396736.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.249 ~0.0 ~-0.167 ~831469568.0 ~0.0 ~-555570176.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~0.232 ~0.0 ~-0.19 ~773010432.0 ~0.0 ~-634393344.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.212 ~0.0 ~-0.212 ~707106816.0 ~0.0 ~-707106752.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~0.19 ~0.0 ~-0.232 ~634393344.0 ~0.0 ~-773010432.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.167 ~0.0 ~-0.249 ~555570304.0 ~0.0 ~-831469568.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~0.141 ~0.0 ~-0.265 ~471396832.0 ~0.0 ~-881921216.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~0.115 ~0.0 ~-0.277 ~382683488.0 ~0.0 ~-923879424.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~0.087 ~0.0 ~-0.287 ~290284736.0 ~0.0 ~-956940352.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~0.059 ~0.0 ~-0.294 ~195090384.0 ~0.0 ~-980785216.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~0.029 ~0.0 ~-0.299 ~98017160.0 ~0.0 ~-995184704.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~-0.0 ~0.0 ~-0.3 ~32.286 ~0.0 ~-1000000000.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.029 ~0.0 ~-0.299 ~-98017096.0 ~0.0 ~-995184704.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~-0.059 ~0.0 ~-0.294 ~-195090336.0 ~0.0 ~-980785280.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.087 ~0.0 ~-0.287 ~-290284672.0 ~0.0 ~-956940352.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.115 ~0.0 ~-0.277 ~-382683456.0 ~0.0 ~-923879488.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.141 ~0.0 ~-0.265 ~-471396736.0 ~0.0 ~-881921216.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.167 ~0.0 ~-0.249 ~-555570176.0 ~0.0 ~-831469568.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.19 ~0.0 ~-0.232 ~-634393280.0 ~0.0 ~-773010432.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.212 ~0.0 ~-0.212 ~-707106752.0 ~0.0 ~-707106752.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.232 ~0.0 ~-0.19 ~-773010368.0 ~0.0 ~-634393408.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.249 ~0.0 ~-0.167 ~-831469568.0 ~0.0 ~-555570176.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.265 ~0.0 ~-0.141 ~-881921216.0 ~0.0 ~-471396768.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.277 ~0.0 ~-0.115 ~-923879488.0 ~0.0 ~-382683456.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.287 ~0.0 ~-0.087 ~-956940352.0 ~0.0 ~-290284672.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.294 ~0.0 ~-0.059 ~-980785280.0 ~0.0 ~-195090336.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.299 ~0.0 ~-0.029 ~-995184704.0 ~0.0 ~-98017120.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.3 ~0.0 ~-0.0 ~-1000000000.0 ~0.0 ~19.868 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.299 ~0.0 ~0.029 ~-995184704.0 ~0.0 ~98017160.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.294 ~0.0 ~0.059 ~-980785216.0 ~0.0 ~195090352.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.287 ~0.0 ~0.087 ~-956940352.0 ~0.0 ~290284704.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.277 ~0.0 ~0.115 ~-923879424.0 ~0.0 ~382683488.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.265 ~0.0 ~0.141 ~-881921216.0 ~0.0 ~471396832.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.249 ~0.0 ~0.167 ~-831469568.0 ~0.0 ~555570240.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~-0.232 ~0.0 ~0.19 ~-773010368.0 ~0.0 ~634393408.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.212 ~0.0 ~0.212 ~-707106752.0 ~0.0 ~707106816.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.19 ~0.0 ~0.232 ~-634393280.0 ~0.0 ~773010432.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.167 ~0.0 ~0.249 ~-555570176.0 ~0.0 ~831469568.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.141 ~0.0 ~0.265 ~-471396672.0 ~0.0 ~881921216.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.115 ~0.0 ~0.277 ~-382683424.0 ~0.0 ~923879552.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.087 ~0.0 ~0.287 ~-290284640.0 ~0.0 ~956940352.0 0.00000000068 0 force @a[distance=..16] +particle smoke ~-0.059 ~0.0 ~0.294 ~-195090320.0 ~0.0 ~980785280.0 0.00000000067 0 force @a[distance=..16] +particle smoke ~-0.029 ~0.0 ~0.299 ~-98017096.0 ~0.0 ~995184704.0 0.00000000068 0 force @a[distance=..16] + +# 円 +particle smoke ~-0.0 ~0.0 ~0.3 ~32.286 ~0.0 ~1000000000.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.029 ~0.0 ~0.299 ~98017160.0 ~0.0 ~995184704.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.059 ~0.0 ~0.294 ~195090368.0 ~0.0 ~980785216.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.087 ~0.0 ~0.287 ~290284704.0 ~0.0 ~956940352.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.115 ~0.0 ~0.277 ~382683456.0 ~0.0 ~923879424.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.141 ~0.0 ~0.265 ~471396768.0 ~0.0 ~881921216.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.167 ~0.0 ~0.249 ~555570304.0 ~0.0 ~831469568.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.19 ~0.0 ~0.232 ~634393344.0 ~0.0 ~773010432.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.212 ~0.0 ~0.212 ~707106752.0 ~0.0 ~707106752.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.232 ~0.0 ~0.19 ~773010432.0 ~0.0 ~634393344.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.249 ~0.0 ~0.167 ~831469568.0 ~0.0 ~555570240.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.265 ~0.0 ~0.141 ~881921216.0 ~0.0 ~471396768.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.277 ~0.0 ~0.115 ~923879424.0 ~0.0 ~382683456.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.287 ~0.0 ~0.087 ~956940352.0 ~0.0 ~290284672.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.294 ~0.0 ~0.059 ~980785280.0 ~0.0 ~195090352.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.299 ~0.0 ~0.029 ~995184704.0 ~0.0 ~98017160.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.3 ~0.0 ~-0.0 ~1000000000.0 ~0.0 ~19.868 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.299 ~0.0 ~-0.029 ~995184704.0 ~0.0 ~-98017112.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.294 ~0.0 ~-0.059 ~980785280.0 ~0.0 ~-195090320.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.287 ~0.0 ~-0.087 ~956940352.0 ~0.0 ~-290284640.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.277 ~0.0 ~-0.115 ~923879552.0 ~0.0 ~-382683424.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.265 ~0.0 ~-0.141 ~881921216.0 ~0.0 ~-471396736.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.249 ~0.0 ~-0.167 ~831469568.0 ~0.0 ~-555570176.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.232 ~0.0 ~-0.19 ~773010432.0 ~0.0 ~-634393344.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.212 ~0.0 ~-0.212 ~707106816.0 ~0.0 ~-707106752.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.19 ~0.0 ~-0.232 ~634393344.0 ~0.0 ~-773010432.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.167 ~0.0 ~-0.249 ~555570304.0 ~0.0 ~-831469568.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.141 ~0.0 ~-0.265 ~471396832.0 ~0.0 ~-881921216.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.115 ~0.0 ~-0.277 ~382683488.0 ~0.0 ~-923879424.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.087 ~0.0 ~-0.287 ~290284736.0 ~0.0 ~-956940352.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.059 ~0.0 ~-0.294 ~195090384.0 ~0.0 ~-980785216.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~0.029 ~0.0 ~-0.299 ~98017160.0 ~0.0 ~-995184704.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.0 ~0.0 ~-0.3 ~32.286 ~0.0 ~-1000000000.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.029 ~0.0 ~-0.299 ~-98017096.0 ~0.0 ~-995184704.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.059 ~0.0 ~-0.294 ~-195090336.0 ~0.0 ~-980785280.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.087 ~0.0 ~-0.287 ~-290284672.0 ~0.0 ~-956940352.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.115 ~0.0 ~-0.277 ~-382683456.0 ~0.0 ~-923879488.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.141 ~0.0 ~-0.265 ~-471396736.0 ~0.0 ~-881921216.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.167 ~0.0 ~-0.249 ~-555570176.0 ~0.0 ~-831469568.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.19 ~0.0 ~-0.232 ~-634393280.0 ~0.0 ~-773010432.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.212 ~0.0 ~-0.212 ~-707106752.0 ~0.0 ~-707106752.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.232 ~0.0 ~-0.19 ~-773010368.0 ~0.0 ~-634393408.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.249 ~0.0 ~-0.167 ~-831469568.0 ~0.0 ~-555570176.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.265 ~0.0 ~-0.141 ~-881921216.0 ~0.0 ~-471396768.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.277 ~0.0 ~-0.115 ~-923879488.0 ~0.0 ~-382683456.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.287 ~0.0 ~-0.087 ~-956940352.0 ~0.0 ~-290284672.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.294 ~0.0 ~-0.059 ~-980785280.0 ~0.0 ~-195090336.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.299 ~0.0 ~-0.029 ~-995184704.0 ~0.0 ~-98017120.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.3 ~0.0 ~-0.0 ~-1000000000.0 ~0.0 ~19.868 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.299 ~0.0 ~0.029 ~-995184704.0 ~0.0 ~98017160.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.294 ~0.0 ~0.059 ~-980785216.0 ~0.0 ~195090352.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.287 ~0.0 ~0.087 ~-956940352.0 ~0.0 ~290284704.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.277 ~0.0 ~0.115 ~-923879424.0 ~0.0 ~382683488.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.265 ~0.0 ~0.141 ~-881921216.0 ~0.0 ~471396832.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.249 ~0.0 ~0.167 ~-831469568.0 ~0.0 ~555570240.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.232 ~0.0 ~0.19 ~-773010368.0 ~0.0 ~634393408.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.212 ~0.0 ~0.212 ~-707106752.0 ~0.0 ~707106816.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.19 ~0.0 ~0.232 ~-634393280.0 ~0.0 ~773010432.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.167 ~0.0 ~0.249 ~-555570176.0 ~0.0 ~831469568.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.141 ~0.0 ~0.265 ~-471396672.0 ~0.0 ~881921216.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.115 ~0.0 ~0.277 ~-382683424.0 ~0.0 ~923879552.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.087 ~0.0 ~0.287 ~-290284640.0 ~0.0 ~956940352.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.059 ~0.0 ~0.294 ~-195090320.0 ~0.0 ~980785280.0 0.00000000045 0 force @a[distance=..16] +particle smoke ~-0.029 ~0.0 ~0.299 ~-98017096.0 ~0.0 ~995184704.0 0.00000000045 0 force @a[distance=..16] + +# 円 +particle smoke ~-0.0 ~0.0 ~0.3 ~32.286 ~0.0 ~1000000000.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.029 ~0.0 ~0.299 ~98017160.0 ~0.0 ~995184704.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.059 ~0.0 ~0.294 ~195090368.0 ~0.0 ~980785216.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.087 ~0.0 ~0.287 ~290284704.0 ~0.0 ~956940352.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.115 ~0.0 ~0.277 ~382683456.0 ~0.0 ~923879424.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.141 ~0.0 ~0.265 ~471396768.0 ~0.0 ~881921216.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.167 ~0.0 ~0.249 ~555570304.0 ~0.0 ~831469568.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.19 ~0.0 ~0.232 ~634393344.0 ~0.0 ~773010432.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.212 ~0.0 ~0.212 ~707106752.0 ~0.0 ~707106752.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.232 ~0.0 ~0.19 ~773010432.0 ~0.0 ~634393344.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.249 ~0.0 ~0.167 ~831469568.0 ~0.0 ~555570240.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.265 ~0.0 ~0.141 ~881921216.0 ~0.0 ~471396768.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.277 ~0.0 ~0.115 ~923879424.0 ~0.0 ~382683456.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.287 ~0.0 ~0.087 ~956940352.0 ~0.0 ~290284672.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.294 ~0.0 ~0.059 ~980785280.0 ~0.0 ~195090352.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.299 ~0.0 ~0.029 ~995184704.0 ~0.0 ~98017160.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.3 ~0.0 ~-0.0 ~1000000000.0 ~0.0 ~19.868 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.299 ~0.0 ~-0.029 ~995184704.0 ~0.0 ~-98017112.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.294 ~0.0 ~-0.059 ~980785280.0 ~0.0 ~-195090320.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.287 ~0.0 ~-0.087 ~956940352.0 ~0.0 ~-290284640.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.277 ~0.0 ~-0.115 ~923879552.0 ~0.0 ~-382683424.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.265 ~0.0 ~-0.141 ~881921216.0 ~0.0 ~-471396736.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.249 ~0.0 ~-0.167 ~831469568.0 ~0.0 ~-555570176.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.232 ~0.0 ~-0.19 ~773010432.0 ~0.0 ~-634393344.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.212 ~0.0 ~-0.212 ~707106816.0 ~0.0 ~-707106752.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.19 ~0.0 ~-0.232 ~634393344.0 ~0.0 ~-773010432.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.167 ~0.0 ~-0.249 ~555570304.0 ~0.0 ~-831469568.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.141 ~0.0 ~-0.265 ~471396832.0 ~0.0 ~-881921216.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.115 ~0.0 ~-0.277 ~382683488.0 ~0.0 ~-923879424.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.087 ~0.0 ~-0.287 ~290284736.0 ~0.0 ~-956940352.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.059 ~0.0 ~-0.294 ~195090384.0 ~0.0 ~-980785216.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~0.029 ~0.0 ~-0.299 ~98017160.0 ~0.0 ~-995184704.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.0 ~0.0 ~-0.3 ~32.286 ~0.0 ~-1000000000.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.029 ~0.0 ~-0.299 ~-98017096.0 ~0.0 ~-995184704.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.059 ~0.0 ~-0.294 ~-195090336.0 ~0.0 ~-980785280.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.087 ~0.0 ~-0.287 ~-290284672.0 ~0.0 ~-956940352.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.115 ~0.0 ~-0.277 ~-382683456.0 ~0.0 ~-923879488.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.141 ~0.0 ~-0.265 ~-471396736.0 ~0.0 ~-881921216.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.167 ~0.0 ~-0.249 ~-555570176.0 ~0.0 ~-831469568.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.19 ~0.0 ~-0.232 ~-634393280.0 ~0.0 ~-773010432.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.212 ~0.0 ~-0.212 ~-707106752.0 ~0.0 ~-707106752.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.232 ~0.0 ~-0.19 ~-773010368.0 ~0.0 ~-634393408.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.249 ~0.0 ~-0.167 ~-831469568.0 ~0.0 ~-555570176.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.265 ~0.0 ~-0.141 ~-881921216.0 ~0.0 ~-471396768.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.277 ~0.0 ~-0.115 ~-923879488.0 ~0.0 ~-382683456.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.287 ~0.0 ~-0.087 ~-956940352.0 ~0.0 ~-290284672.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.294 ~0.0 ~-0.059 ~-980785280.0 ~0.0 ~-195090336.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.299 ~0.0 ~-0.029 ~-995184704.0 ~0.0 ~-98017120.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.3 ~0.0 ~-0.0 ~-1000000000.0 ~0.0 ~19.868 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.299 ~0.0 ~0.029 ~-995184704.0 ~0.0 ~98017160.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.294 ~0.0 ~0.059 ~-980785216.0 ~0.0 ~195090352.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.287 ~0.0 ~0.087 ~-956940352.0 ~0.0 ~290284704.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.277 ~0.0 ~0.115 ~-923879424.0 ~0.0 ~382683488.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.265 ~0.0 ~0.141 ~-881921216.0 ~0.0 ~471396832.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.249 ~0.0 ~0.167 ~-831469568.0 ~0.0 ~555570240.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.232 ~0.0 ~0.19 ~-773010368.0 ~0.0 ~634393408.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.212 ~0.0 ~0.212 ~-707106752.0 ~0.0 ~707106816.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.19 ~0.0 ~0.232 ~-634393280.0 ~0.0 ~773010432.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.167 ~0.0 ~0.249 ~-555570176.0 ~0.0 ~831469568.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.141 ~0.0 ~0.265 ~-471396672.0 ~0.0 ~881921216.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.115 ~0.0 ~0.277 ~-382683424.0 ~0.0 ~923879552.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.087 ~0.0 ~0.287 ~-290284640.0 ~0.0 ~956940352.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.059 ~0.0 ~0.294 ~-195090320.0 ~0.0 ~980785280.0 0.00000000030 0 force @a[distance=..16] +particle smoke ~-0.029 ~0.0 ~0.299 ~-98017096.0 ~0.0 ~995184704.0 0.00000000030 0 force @a[distance=..16] + +particle squid_ink ~ ~0.5 ~ 1 0.25 1 0.1 20 force diff --git a/data/makeup/function/item/sign/common_firework.macro.mcfunction b/data/makeup/function/item/sign/common_firework.macro.mcfunction new file mode 100644 index 0000000000..a2e6912ab1 --- /dev/null +++ b/data/makeup/function/item/sign/common_firework.macro.mcfunction @@ -0,0 +1,2 @@ +#> makeup:item/sign/common_firework.macro +$summon firework_rocket ~ ~5 ~ {Life:1,LifeTime:1,FireworksItem:{id:"minecraft:firework_rocket",count:1b,components:{"minecraft:fireworks":{flight_duration:0b,explosions:[{shape:"star",colors:[I;$(color)]}]}}}} diff --git a/data/makeup/function/item/sign/inn/failed.mcfunction b/data/makeup/function/item/sign/inn/failed.mcfunction new file mode 100644 index 0000000000..19fb78f08d --- /dev/null +++ b/data/makeup/function/item/sign/inn/failed.mcfunction @@ -0,0 +1,14 @@ +#> data/makeup/functions/item/sign/inn +############################## +### 宿の印板 +############################## +# playsound minecraft:block.dispenser.fail block @a[distance=..16] ~ ~ ~ 1 1 +# particle minecraft:smoke ~ ~ ~ 0 0 0 0.3 30 force +# particle minecraft:block_marker minecraft:barrier ~-3 ~ ~-3 0 0 0 0 0 force +# particle minecraft:block_marker minecraft:barrier ~-3 ~ ~3 0 0 0 0 0 force +# particle minecraft:block_marker minecraft:barrier ~3 ~ ~-3 0 0 0 0 0 force +# particle minecraft:block_marker minecraft:barrier ~3 ~ ~3 0 0 0 0 0 force +# particle minecraft:block_marker minecraft:barrier ~-3 ~6 ~-3 0 0 0 0 0 force +# particle minecraft:block_marker minecraft:barrier ~-3 ~6 ~3 0 0 0 0 0 force +# particle minecraft:block_marker minecraft:barrier ~3 ~6 ~-3 0 0 0 0 0 force +# particle minecraft:block_marker minecraft:barrier ~3 ~6 ~3 0 0 0 0 0 force diff --git a/data/makeup/function/item/sign/inn/success.mcfunction b/data/makeup/function/item/sign/inn/success.mcfunction new file mode 100644 index 0000000000..6b79795dd5 --- /dev/null +++ b/data/makeup/function/item/sign/inn/success.mcfunction @@ -0,0 +1,8 @@ +#> makeup:item/sign/inn/success +############################## +### 宿の印板 +############################## +# playsound minecraft:entity.chicken.egg block @a[distance=..16] ~ ~ ~ 1 1 +# playsound minecraft:entity.player.levelup block @a[distance=..16] ~ ~ ~ 1 1 +# particle minecraft:happy_villager ~ ~3 ~ 3 3 3 0 100 force +# particle minecraft:firework ~ ~3 ~ 3 3 3 0 100 force diff --git a/data/makeup/function/item/sign/sheep_spawner.mcfunction b/data/makeup/function/item/sign/sheep_spawner.mcfunction new file mode 100644 index 0000000000..0cf4334a61 --- /dev/null +++ b/data/makeup/function/item/sign/sheep_spawner.mcfunction @@ -0,0 +1,9 @@ +#> makeup:item/sign/sheep_spawner +# @within function item:sign/click/sheep_spawner + +particle firework ~ ~0.5 ~ 0.75 0.75 0.75 0 30 force +playsound entity.sheep.ambient block @a[distance=..16] ~ ~ ~ 1 1.5 +playsound entity.sheep.ambient block @a[distance=..16] ~ ~ ~ 1 1.53 +playsound entity.sheep.ambient block @a[distance=..16] ~ ~ ~ 1 1.56 +playsound entity.firework_rocket.large_blast block @a[distance=..16] ~ ~ ~ 2 0.5 +playsound entity.firework_rocket.large_blast block @a[distance=..16] ~ ~ ~ 2 0.55 diff --git a/data/makeup/function/item/sign/soul_series/black_mage.mcfunction b/data/makeup/function/item/sign/soul_series/black_mage.mcfunction new file mode 100644 index 0000000000..dc01b2ffe3 --- /dev/null +++ b/data/makeup/function/item/sign/soul_series/black_mage.mcfunction @@ -0,0 +1,5 @@ +#> makeup:item/sign/soul_series/black_mage +## 付与演出 +particle enchant ^ ^ ^0.5 0.25 0 0.25 3 500 +playsound block.enchantment_table.use block @a ~ ~ ~ 1.0 1.0 +playsound entity.blaze.shoot block @a ~ ~ ~ 1 0.65 diff --git a/data/makeup/function/item/sign/soul_series/fail.mcfunction b/data/makeup/function/item/sign/soul_series/fail.mcfunction new file mode 100644 index 0000000000..ca3f4661a2 --- /dev/null +++ b/data/makeup/function/item/sign/soul_series/fail.mcfunction @@ -0,0 +1,3 @@ +#> makeup:item/sign/soul_series/fail +## 失敗演出 +playsound ui.button.click block @s ~ ~ ~ 1.0 1.0 diff --git a/data/makeup/function/item/sign/soul_series/hunter.mcfunction b/data/makeup/function/item/sign/soul_series/hunter.mcfunction new file mode 100644 index 0000000000..1eb68aad4a --- /dev/null +++ b/data/makeup/function/item/sign/soul_series/hunter.mcfunction @@ -0,0 +1,5 @@ +#> makeup:item/sign/soul_series/hunter +## 付与演出 +particle enchant ^ ^ ^0.5 0.25 0 0.25 3 500 +playsound block.enchantment_table.use block @a ~ ~ ~ 1.0 1.0 +playsound entity.arrow.hit block @a ~ ~ ~ 1 0.7 diff --git a/data/makeup/function/item/sign/soul_series/knight.mcfunction b/data/makeup/function/item/sign/soul_series/knight.mcfunction new file mode 100644 index 0000000000..dec953bc52 --- /dev/null +++ b/data/makeup/function/item/sign/soul_series/knight.mcfunction @@ -0,0 +1,5 @@ +#> makeup:item/sign/soul_series/knight +## 付与演出 +particle enchant ^ ^ ^0.5 0.25 0 0.25 3 500 +playsound block.enchantment_table.use block @a ~ ~ ~ 1.0 1.0 +playsound block.anvil.use block @a ~ ~ ~ 1.0 1.5 diff --git a/data/makeup/function/item/sign/soul_series/ninja.mcfunction b/data/makeup/function/item/sign/soul_series/ninja.mcfunction new file mode 100644 index 0000000000..2956e7391a --- /dev/null +++ b/data/makeup/function/item/sign/soul_series/ninja.mcfunction @@ -0,0 +1,5 @@ +#> makeup:item/sign/soul_series/ninja +## 付与演出 +particle enchant ^ ^ ^0.5 0.25 0 0.25 3 500 +playsound block.enchantment_table.use block @a ~ ~ ~ 1.0 1.0 +playsound entity.firework_rocket.large_blast_far block @a ~ ~ ~ 1 0.7 diff --git a/data/makeup/function/item/sign/soul_series/summoner.mcfunction b/data/makeup/function/item/sign/soul_series/summoner.mcfunction new file mode 100644 index 0000000000..4c5503ac04 --- /dev/null +++ b/data/makeup/function/item/sign/soul_series/summoner.mcfunction @@ -0,0 +1,5 @@ +#> makeup:item/sign/soul_series/summoner +## 付与演出 +particle enchant ^ ^ ^0.5 0.25 0 0.25 3 500 +playsound block.enchantment_table.use block @a ~ ~ ~ 1.0 1.0 +playsound block.portal.ambient block @a ~ ~ ~ 1 1.7 diff --git a/data/makeup/function/item/sign/soul_series/white_mage.mcfunction b/data/makeup/function/item/sign/soul_series/white_mage.mcfunction new file mode 100644 index 0000000000..15557db4da --- /dev/null +++ b/data/makeup/function/item/sign/soul_series/white_mage.mcfunction @@ -0,0 +1,5 @@ +#> makeup:item/sign/soul_series/white_mage +## 付与演出 +particle enchant ^ ^ ^0.5 0.25 0 0.25 3 500 +playsound block.enchantment_table.use block @a ~ ~ ~ 1.0 1.0 +playsound entity.experience_orb.pickup block @a ~ ~ ~ 1 1.08 diff --git a/data/makeup/function/item/sign/teleport/after.mcfunction b/data/makeup/function/item/sign/teleport/after.mcfunction new file mode 100644 index 0000000000..86c04bb6ac --- /dev/null +++ b/data/makeup/function/item/sign/teleport/after.mcfunction @@ -0,0 +1,6 @@ +#> data/makeup/functions/item/sign/teleport +############################## +### 転移の印版 +############################## +execute positioned as @a[sort=nearest,limit=1] run particle minecraft:firework ~ ~38 ~ 0.01 80 0.01 0.1 500 force +execute positioned as @a[sort=nearest,limit=1] run playsound minecraft:entity.enderman.teleport block @a[distance=..16] ~ ~ ~ 1 1 diff --git a/data/makeup/function/item/sign/teleport/before.mcfunction b/data/makeup/function/item/sign/teleport/before.mcfunction new file mode 100644 index 0000000000..3d6b7e31d8 --- /dev/null +++ b/data/makeup/function/item/sign/teleport/before.mcfunction @@ -0,0 +1,6 @@ +#> makeup:item/sign/teleport/before +############################## +### 転移の印版 +############################## +execute positioned as @a[sort=nearest,limit=1] run particle minecraft:portal ~ ~1 ~ 0 0.5 0 1 100 force +execute positioned as @a[sort=nearest,limit=1] run playsound minecraft:entity.enderman.teleport block @a[distance=..16] ~ ~ ~ 1 1 diff --git a/data/makeup/function/item/sign/trade/fail.mcfunction b/data/makeup/function/item/sign/trade/fail.mcfunction new file mode 100644 index 0000000000..c2b46cd16e --- /dev/null +++ b/data/makeup/function/item/sign/trade/fail.mcfunction @@ -0,0 +1,8 @@ +#> makeup:item/sign/trade/fail +# +# トレード失敗時 +# +# @within function item:sign/click/trade + +playsound minecraft:block.lever.click block @a[distance=..16] ~ ~ ~ 1 1 +tellraw @s {"translate":"羊毛または砂利を32個以上持った状態でクリックしてください","color":"red"} diff --git a/data/makeup/function/item/sign/trade/success.mcfunction b/data/makeup/function/item/sign/trade/success.mcfunction new file mode 100644 index 0000000000..8b18fd4cb5 --- /dev/null +++ b/data/makeup/function/item/sign/trade/success.mcfunction @@ -0,0 +1,8 @@ +#> makeup:item/sign/trade/success +# +# トレード成功時 +# +# @within function item:sign/click/trade + +particle minecraft:happy_villager ~ ~0.4 ~ 0.3 0.3 0.3 1 4 force +playsound minecraft:entity.experience_orb.pickup block @a[distance=..16] ~ ~ ~ 0.7 0.5 diff --git a/data/makeup/function/item/sign/upgrade_black.mcfunction b/data/makeup/function/item/sign/upgrade_black.mcfunction new file mode 100644 index 0000000000..993c2facd4 --- /dev/null +++ b/data/makeup/function/item/sign/upgrade_black.mcfunction @@ -0,0 +1,10 @@ +#> makeup:item/sign/upgrade_black +############################## +### 黒材強化の印板 +############################## +particle minecraft:smoke ~ ~-0.5 ~ 0 0 0 0.05 100 force +particle minecraft:smoke ~ ~5 ~ 0.3 9 0.3 0 300 force +particle minecraft:smoke ~ ~5 ~ 10 7 10 0.1 2000 force +playsound minecraft:block.beacon.power_select block @a[distance=..16] ~ ~ ~ 1 0 +playsound minecraft:block.beacon.power_select block @a[distance=..16] ~ ~ ~ 1 1 +playsound minecraft:block.beacon.power_select block @a[distance=..16] ~ ~ ~ 1 2 diff --git a/data/makeup/function/item/sign/upgrade_white.mcfunction b/data/makeup/function/item/sign/upgrade_white.mcfunction new file mode 100644 index 0000000000..0eda48a6d5 --- /dev/null +++ b/data/makeup/function/item/sign/upgrade_white.mcfunction @@ -0,0 +1,10 @@ +#> makeup:item/sign/upgrade_white +############################## +### 白材強化の印板 +############################## +particle minecraft:instant_effect ~ ~-0.5 ~ 0 0 0 1 100 force +particle minecraft:firework ~ ~5 ~ 0.3 9 0.3 0 100 force +particle minecraft:firework ~ ~5 ~ 10 7 10 0.1 1000 force +playsound minecraft:block.beacon.power_select block @a[distance=..16] ~ ~ ~ 1 0 +playsound minecraft:block.beacon.power_select block @a[distance=..16] ~ ~ ~ 1 1 +playsound minecraft:block.beacon.power_select block @a[distance=..16] ~ ~ ~ 1 2 diff --git a/data/makeup/function/item/sign/warden_kit/fail.mcfunction b/data/makeup/function/item/sign/warden_kit/fail.mcfunction new file mode 100644 index 0000000000..82f03415e8 --- /dev/null +++ b/data/makeup/function/item/sign/warden_kit/fail.mcfunction @@ -0,0 +1,2 @@ +#> makeup:item/sign/warden_kit/fail +playsound block.lever.click block @a[distance=..16] ~ ~ ~ 1 1 \ No newline at end of file diff --git a/data/makeup/function/item/sign/warden_kit/success.mcfunction b/data/makeup/function/item/sign/warden_kit/success.mcfunction new file mode 100644 index 0000000000..cbd03c5963 --- /dev/null +++ b/data/makeup/function/item/sign/warden_kit/success.mcfunction @@ -0,0 +1,2 @@ +#> makeup:item/sign/warden_kit/success +playsound entity.warden.agitated block @a[distance=..32] ~ ~ ~ 1.0 1 0.0 diff --git a/data/settings/function/item/sign/soul_series/black_mage.mcfunction b/data/settings/function/item/sign/soul_series/black_mage.mcfunction new file mode 100644 index 0000000000..f0a1df1873 --- /dev/null +++ b/data/settings/function/item/sign/soul_series/black_mage.mcfunction @@ -0,0 +1,3 @@ +#> settings:item/sign/soul_series/black_mage +data modify storage item: Soul.Attributes append value {type:"generic.attack_damage",id:"item:black_mage_soul",amount:0.15,operation:"add_multiplied_base",slot:"mainhand"} +data modify storage item: Soul.Attributes append value {type:"generic.luck",id:"item:black_mage_soul",amount:1.5,operation:"add_value",slot:"mainhand"} diff --git a/data/settings/function/item/sign/soul_series/default_attributes/boots.mcfunction b/data/settings/function/item/sign/soul_series/default_attributes/boots.mcfunction new file mode 100644 index 0000000000..77fcbabb28 --- /dev/null +++ b/data/settings/function/item/sign/soul_series/default_attributes/boots.mcfunction @@ -0,0 +1,7 @@ +#> settings:item/sign/soul_series/default_attributes/boots +execute if data storage item: Item{id:"minecraft:leather_boots"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:1,operation:"add_value",slot:"feet"}] +execute if data storage item: Item{id:"minecraft:chainmail_boots"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:1,operation:"add_value",slot:"feet"}] +execute if data storage item: Item{id:"minecraft:iron_boots"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:2,operation:"add_value",slot:"feet"}] +execute if data storage item: Item{id:"minecraft:diamond_boots"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:3,operation:"add_value",slot:"feet"},{type:"generic.armor_toughness",id:"tusb:default",amount:2,operation:"add_value",slot:"feet"}] +execute if data storage item: Item{id:"minecraft:golden_boots"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:1,operation:"add_value",slot:"feet"}] +execute if data storage item: Item{id:"minecraft:netherite_boots"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:3,operation:"add_value",slot:"feet"},{type:"generic.armor_toughness",id:"tusb:default",amount:3,operation:"add_value",slot:"feet"},{type:"generic.knockback_resistance",id:"tusb:default",amount:0.1,operation:"add_value",slot:"feet"}] diff --git a/data/settings/function/item/sign/soul_series/default_attributes/chestplate.mcfunction b/data/settings/function/item/sign/soul_series/default_attributes/chestplate.mcfunction new file mode 100644 index 0000000000..6232387738 --- /dev/null +++ b/data/settings/function/item/sign/soul_series/default_attributes/chestplate.mcfunction @@ -0,0 +1,7 @@ +#> settings:item/sign/soul_series/default_attributes/chestplate +execute if data storage item: Item{id:"minecraft:leather_chestplate"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:3,operation:"add_value",slot:"chest"}] +execute if data storage item: Item{id:"minecraft:chainmail_chestplate"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:5,operation:"add_value",slot:"chest"}] +execute if data storage item: Item{id:"minecraft:iron_chestplate"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:6,operation:"add_value",slot:"chest"}] +execute if data storage item: Item{id:"minecraft:diamond_chestplate"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:8,operation:"add_value",slot:"chest"},{type:"generic.armor_toughness",id:"tusb:default",amount:2,operation:"add_value",slot:"chest"}] +execute if data storage item: Item{id:"minecraft:golden_chestplate"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:5,operation:"add_value",slot:"chest"}] +execute if data storage item: Item{id:"minecraft:netherite_chestplate"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:8,operation:"add_value",slot:"chest"},{type:"generic.armor_toughness",id:"tusb:default",amount:3,operation:"add_value",slot:"chest"},{type:"generic.knockback_resistance",id:"tusb:default",amount:0.1,operation:"add_value",slot:"chest"}] diff --git a/data/settings/function/item/sign/soul_series/default_attributes/helmet.mcfunction b/data/settings/function/item/sign/soul_series/default_attributes/helmet.mcfunction new file mode 100644 index 0000000000..fbce7166e6 --- /dev/null +++ b/data/settings/function/item/sign/soul_series/default_attributes/helmet.mcfunction @@ -0,0 +1,8 @@ +#> settings:item/sign/soul_series/default_attributes/helmet +execute if data storage item: Item{id:"minecraft:turtle_helmet"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:2,operation:"add_value",slot:"head"}] +execute if data storage item: Item{id:"minecraft:leather_helmet"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:1,operation:"add_value",slot:"head"}] +execute if data storage item: Item{id:"minecraft:chainmail_helmet"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:2,operation:"add_value",slot:"head"}] +execute if data storage item: Item{id:"minecraft:iron_helmet"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:2,operation:"add_value",slot:"head"}] +execute if data storage item: Item{id:"minecraft:diamond_helmet"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:3,operation:"add_value",slot:"head"},{type:"generic.armor_toughness",id:"tusb:default",amount:2,operation:"add_value",slot:"head"}] +execute if data storage item: Item{id:"minecraft:golden_helmet"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:2,operation:"add_value",slot:"head"}] +execute if data storage item: Item{id:"minecraft:netherite_helmet"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:3,operation:"add_value",slot:"head"},{type:"generic.armor_toughness",id:"tusb:default",amount:3,operation:"add_value",slot:"head"},{type:"generic.knockback_resistance",id:"tusb:default",amount:0.1,operation:"add_value",slot:"head"}] diff --git a/data/settings/function/item/sign/soul_series/default_attributes/leggings.mcfunction b/data/settings/function/item/sign/soul_series/default_attributes/leggings.mcfunction new file mode 100644 index 0000000000..e510748de9 --- /dev/null +++ b/data/settings/function/item/sign/soul_series/default_attributes/leggings.mcfunction @@ -0,0 +1,7 @@ +#> settings:item/sign/soul_series/default_attributes/leggings +execute if data storage item: Item{id:"minecraft:leather_leggings"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:2,operation:"add_value",slot:"legs"}] +execute if data storage item: Item{id:"minecraft:chainmail_leggings"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:4,operation:"add_value",slot:"legs"}] +execute if data storage item: Item{id:"minecraft:iron_leggings"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:5,operation:"add_value",slot:"legs"}] +execute if data storage item: Item{id:"minecraft:diamond_leggings"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:6,operation:"add_value",slot:"legs"},{type:"generic.armor_toughness",id:"tusb:default",amount:2,operation:"add_value",slot:"legs"}] +execute if data storage item: Item{id:"minecraft:golden_leggings"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:3,operation:"add_value",slot:"legs"}] +execute if data storage item: Item{id:"minecraft:netherite_leggings"} run data modify storage item: Item.components."minecraft:attribute_modifiers".modifiers set value [{type:"generic.armor",id:"tusb:default",amount:6,operation:"add_value",slot:"legs"},{type:"generic.armor_toughness",id:"tusb:default",amount:3,operation:"add_value",slot:"legs"},{type:"generic.knockback_resistance",id:"tusb:default",amount:0.1,operation:"add_value",slot:"legs"}] diff --git a/data/settings/function/item/sign/soul_series/hunter.mcfunction b/data/settings/function/item/sign/soul_series/hunter.mcfunction new file mode 100644 index 0000000000..85d348d04f --- /dev/null +++ b/data/settings/function/item/sign/soul_series/hunter.mcfunction @@ -0,0 +1,3 @@ +#> settings:item/sign/soul_series/hunter +data modify storage item: Soul.Attributes append value {type:"generic.attack_damage",id:"item:hunter_soul",amount:0.07,operation:"add_multiplied_base",UUID:[I;11,0,3,41],slot:"mainhand"} +data modify storage item: Soul.Attributes append value {type:"generic.movement_speed",id:"item:hunter_soul",amount:0.05,operation:"add_multiplied_base",UUID:[I;11,0,3,31],slot:"mainhand"} diff --git a/data/settings/function/item/sign/soul_series/knight.mcfunction b/data/settings/function/item/sign/soul_series/knight.mcfunction new file mode 100644 index 0000000000..d71de30a2f --- /dev/null +++ b/data/settings/function/item/sign/soul_series/knight.mcfunction @@ -0,0 +1,3 @@ +#> settings:item/sign/soul_series/knight +data modify storage item: Soul.Attributes append value {type:"generic.armor_toughness",id:"item:knight_soul",amount:15,operation:"add_value",slot:"mainhand"} +data modify storage item: Soul.Attributes append value {type:"generic.knockback_resistance",id:"item:knight_soul",amount:0.2,operation:"add_value",slot:"mainhand"} diff --git a/data/settings/function/item/sign/soul_series/ninja.mcfunction b/data/settings/function/item/sign/soul_series/ninja.mcfunction new file mode 100644 index 0000000000..726c7c7fd1 --- /dev/null +++ b/data/settings/function/item/sign/soul_series/ninja.mcfunction @@ -0,0 +1,3 @@ +#> settings:item/sign/soul_series/ninja +data modify storage item: Soul.Attributes append value {type:"generic.attack_speed",id:"item:ninja_soul",amount:1,operation:"add_value",slot:"mainhand"} +data modify storage item: Soul.Attributes append value {type:"generic.movement_speed",id:"item:ninja_soul",amount:0.25,operation:"add_multiplied_base",UUID:[I;11,0,3,31],slot:"mainhand"} diff --git a/data/settings/function/item/sign/soul_series/summoner.mcfunction b/data/settings/function/item/sign/soul_series/summoner.mcfunction new file mode 100644 index 0000000000..d6978f79ba --- /dev/null +++ b/data/settings/function/item/sign/soul_series/summoner.mcfunction @@ -0,0 +1,4 @@ +#> settings:item/sign/soul_series/summoner +data modify storage item: Soul.Attributes append value {type:"generic.max_health",id:"item:summoner_soul",amount:0.03,operation:"add_multiplied_base",slot:"mainhand"} +data modify storage item: Soul.Attributes append value {type:"generic.movement_speed",id:"item:summoner_soul",amount:0.1,operation:"add_multiplied_base",slot:"mainhand"} +data modify storage item: Soul.Attributes append value {type:"generic.luck",id:"item:summoner_soul",amount:0.25,operation:"add_value",slot:"mainhand"} diff --git a/data/settings/function/item/sign/soul_series/white_mage.mcfunction b/data/settings/function/item/sign/soul_series/white_mage.mcfunction new file mode 100644 index 0000000000..def4437bed --- /dev/null +++ b/data/settings/function/item/sign/soul_series/white_mage.mcfunction @@ -0,0 +1,3 @@ +#> settings:item/sign/soul_series/white_mage +data modify storage item: Soul.Attributes append value {type:"generic.max_health",id:"item:white_mage_soul",amount:0.1,operation:"add_multiplied_base",slot:"mainhand"} +data modify storage item: Soul.Attributes append value {type:"generic.luck",id:"item:white_mage_soul",amount:1,operation:"add_value",slot:"mainhand"}