Skip to content

Commit

Permalink
TUSBメモリーのスキル削除エラー時の挙動を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
yabane committed May 4, 2024
1 parent 4660822 commit 0e87178
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tellraw @s {"translate":"TUSBメモリーのスキルは削除できません。","color":"red"}
playsound block.dispenser.fail master @s ~ ~ ~ 1 1.2
2 changes: 1 addition & 1 deletion data/skill/functions/trigger/delete/detection.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ data remove storage item: Item
data modify storage item: Item set from entity @s SelectedItem

# TUSBメモリーかどうかで分岐
execute if data storage item: Item{tag:{Skill:{Type:"TUSBMemory"}}} run tellraw @s {"translate":"TUSBメモリーのスキルは削除できません。","color":"red"}
execute if data storage item: Item{tag:{Skill:{Type:"TUSBMemory"}}} run function makeup:skill/trigger/error/delete_to_tusb_memory
execute unless data storage item: Item{tag:{Skill:{Type:"TUSBMemory"}}} run function skill:trigger/delete/delete

0 comments on commit 0e87178

Please sign in to comment.