00ll00 6 سال پیش
والد
کامیت
57a3d48c50
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      data/item/functions/check_item.mcfunction
  2. 1 1
      data/item/functions/check_item_.mcfunction

+ 1 - 1
data/item/functions/check_item.mcfunction

@@ -1 +1 @@
-execute as @a if data entity @s Inventory[{"tag":{"ltw_item_new":1b}}] run function test:check_item_
+execute as @a if data entity @s Inventory[{"tag":{"ltw_item_new":1b}}] run function item:check_item_

+ 1 - 1
data/item/functions/check_item_.mcfunction

@@ -2,6 +2,6 @@ setblock 8 12 2009 jukebox
 data modify block 8 12 2009 RecordItem set from entity @s Inventory[{"tag":{"ltw_item_new":1b}}]
 data modify block 8 12 2009 RecordItem set from entity @s Inventory[{"tag":{"ltw_item_new":1b}}]
 tellraw @a [{"selector": "@s"},{"text":"获得了道具:"},{"nbt": "RecordItem.tag.ltw_item_name","block": "8 12 2009","interpret": true}]
 tellraw @a [{"selector": "@s"},{"text":"获得了道具:"},{"nbt": "RecordItem.tag.ltw_item_name","block": "8 12 2009","interpret": true}]
 data modify block 8 12 2009 RecordItem.tag.ltw_item_new set value 0b
 data modify block 8 12 2009 RecordItem.tag.ltw_item_new set value 0b
-clear @s #test:items{"ltw_item_new":1b}
+clear @s #item:items{"ltw_item_new":1b}
 fill 8 12 2009 8 12 2009 air destroy
 fill 8 12 2009 8 12 2009 air destroy
 execute positioned 8 12 2009 as @e[type=item,nbt={"Item":{"tag":{"ltw_item":1b}}},sort=nearest,limit=1] at @s run tp ~ ~ ~
 execute positioned 8 12 2009 as @e[type=item,nbt={"Item":{"tag":{"ltw_item":1b}}},sort=nearest,limit=1] at @s run tp ~ ~ ~