-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
data/skill/functions/act/common/restore_item/restore/picnic/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# ピクニックのとき、生前持っていたアイテムはその場に返却 | ||
data modify storage item: Items set from entity @s Inventory | ||
data remove storage item: Items[].Slot | ||
function skill:act/common/restore_item/restore/picnic/loop |
7 changes: 7 additions & 0 deletions
7
data/skill/functions/act/common/restore_item/restore/picnic/loop.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
summon item ~ ~ ~ {Tags:[Initializing],PickupDelay:0s,Item:{id:"minecraft:stone",Count:1b}} | ||
data modify entity @e[tag=Initializing,distance=0,limit=1] Item set from storage item: Items[-1] | ||
tag @e[distance=0,tag=Initializing] remove Initializing | ||
data remove storage item: Items[-1] | ||
|
||
execute if data storage item: Items[-1] run function skill:act/common/restore_item/restore/picnic/loop |