Browse Source

修改replaceitem的格式为item replace

HerobrineXia 4 years ago
parent
commit
ea36aa689d

+ 1 - 1
data/item/functions/disable_slot/disable_slot_7.mcfunction

@@ -1,4 +1,4 @@
 clear @s red_dye{LockItem:1b,LockSlot:7b}
 execute if data entity @s Inventory[{Slot:7b}] run scoreboard players set @s item_slot 7
 execute if data entity @s Inventory[{Slot:7b}] at @s run function item:pop_slot/return_item
-replaceitem entity @s hotbar.7 red_dye{LockItem:1b,LockSlot:7b,display:{Name:'{"text":"已锁定","color":"red","italic":false}'}}
+item replace entity @s hotbar.7 with red_dye{LockItem:1b,LockSlot:7b,display:{Name:'{"text":"已锁定","color":"red","italic":false}'}}

+ 1 - 1
data/item/functions/disable_slot/disable_slot_8.mcfunction

@@ -1,4 +1,4 @@
 clear @s red_dye{LockItem:1b,LockSlot:8b}
 execute if data entity @s Inventory[{Slot:8b}] run scoreboard players set @s item_slot 8
 execute if data entity @s Inventory[{Slot:8b}] at @s run function item:pop_slot/return_item
-replaceitem entity @s hotbar.8 red_dye{LockItem:1b,LockSlot:8b,display:{Name:'{"text":"已锁定","color":"red","italic":false}'}}
+item replace entity @s hotbar.8 with red_dye{LockItem:1b,LockSlot:8b,display:{Name:'{"text":"已锁定","color":"red","italic":false}'}}

+ 2 - 2
data/item/functions/pop_slot/pop_all.mcfunction

@@ -81,5 +81,5 @@ execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
 scoreboard players set @s item_slot -106
 execute at @s positioned ~ ~ ~ run function item:pop_slot/pop_item
 give @s dead_bush 2304
-replaceitem entity @s weapon.offhand dead_bush 64
-replaceitem entity @s armor.head dead_bush 64
+item replace entity @s weapon.offhand dead_bush 64
+item replace entity @s armor.head dead_bush 64

+ 41 - 41
data/item/functions/pop_slot/select_item.mcfunction

@@ -40,46 +40,46 @@ execute if score @s item_slot matches 102 run data modify entity @e[type=item,ta
 execute if score @s item_slot matches 103 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:103b}]
 execute if score @s item_slot matches -106 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:-106b}]
 
-execute if score @s item_slot matches 0 run replaceitem entity @s hotbar.0 air
-execute if score @s item_slot matches 1 run replaceitem entity @s hotbar.1 air
-execute if score @s item_slot matches 2 run replaceitem entity @s hotbar.2 air
-execute if score @s item_slot matches 3 run replaceitem entity @s hotbar.3 air
-execute if score @s item_slot matches 4 run replaceitem entity @s hotbar.4 air
-execute if score @s item_slot matches 5 run replaceitem entity @s hotbar.5 air
-execute if score @s item_slot matches 6 run replaceitem entity @s hotbar.6 air
-execute if score @s item_slot matches 7 run replaceitem entity @s hotbar.7 air
-execute if score @s item_slot matches 8 run replaceitem entity @s hotbar.8 air
-execute if score @s item_slot matches 9 run replaceitem entity @s inventory.0 air
-execute if score @s item_slot matches 10 run replaceitem entity @s inventory.1 air
-execute if score @s item_slot matches 11 run replaceitem entity @s inventory.2 air
-execute if score @s item_slot matches 12 run replaceitem entity @s inventory.3 air
-execute if score @s item_slot matches 13 run replaceitem entity @s inventory.4 air
-execute if score @s item_slot matches 14 run replaceitem entity @s inventory.5 air
-execute if score @s item_slot matches 15 run replaceitem entity @s inventory.6 air
-execute if score @s item_slot matches 16 run replaceitem entity @s inventory.7 air
-execute if score @s item_slot matches 17 run replaceitem entity @s inventory.8 air
-execute if score @s item_slot matches 18 run replaceitem entity @s inventory.9 air
-execute if score @s item_slot matches 19 run replaceitem entity @s inventory.10 air
-execute if score @s item_slot matches 20 run replaceitem entity @s inventory.11 air
-execute if score @s item_slot matches 21 run replaceitem entity @s inventory.12 air
-execute if score @s item_slot matches 22 run replaceitem entity @s inventory.13 air
-execute if score @s item_slot matches 23 run replaceitem entity @s inventory.14 air
-execute if score @s item_slot matches 24 run replaceitem entity @s inventory.15 air
-execute if score @s item_slot matches 25 run replaceitem entity @s inventory.16 air
-execute if score @s item_slot matches 26 run replaceitem entity @s inventory.17 air
-execute if score @s item_slot matches 27 run replaceitem entity @s inventory.18 air
-execute if score @s item_slot matches 28 run replaceitem entity @s inventory.19 air
-execute if score @s item_slot matches 29 run replaceitem entity @s inventory.20 air
-execute if score @s item_slot matches 30 run replaceitem entity @s inventory.21 air
-execute if score @s item_slot matches 31 run replaceitem entity @s inventory.22 air
-execute if score @s item_slot matches 32 run replaceitem entity @s inventory.23 air
-execute if score @s item_slot matches 33 run replaceitem entity @s inventory.24 air
-execute if score @s item_slot matches 34 run replaceitem entity @s inventory.25 air
-execute if score @s item_slot matches 35 run replaceitem entity @s inventory.26 air
-execute if score @s item_slot matches 100 run replaceitem entity @s armor.feet air
-execute if score @s item_slot matches 101 run replaceitem entity @s armor.legs air
-execute if score @s item_slot matches 102 run replaceitem entity @s armor.chest air
-execute if score @s item_slot matches 103 run replaceitem entity @s armor.head air
-execute if score @s item_slot matches -106 run replaceitem entity @s weapon.offhand air
+execute if score @s item_slot matches 0 run item replace entity @s hotbar.0 with air
+execute if score @s item_slot matches 1 run item replace entity @s hotbar.1 with air
+execute if score @s item_slot matches 2 run item replace entity @s hotbar.2 with air
+execute if score @s item_slot matches 3 run item replace entity @s hotbar.3 with air
+execute if score @s item_slot matches 4 run item replace entity @s hotbar.4 with air
+execute if score @s item_slot matches 5 run item replace entity @s hotbar.5 with air
+execute if score @s item_slot matches 6 run item replace entity @s hotbar.6 with air
+execute if score @s item_slot matches 7 run item replace entity @s hotbar.7 with air
+execute if score @s item_slot matches 8 run item replace entity @s hotbar.8 with air
+execute if score @s item_slot matches 9 run item replace entity @s inventory.0 with air
+execute if score @s item_slot matches 10 run item replace entity @s inventory.1 with air
+execute if score @s item_slot matches 11 run item replace entity @s inventory.2 with air
+execute if score @s item_slot matches 12 run item replace entity @s inventory.3 with air
+execute if score @s item_slot matches 13 run item replace entity @s inventory.4 with air
+execute if score @s item_slot matches 14 run item replace entity @s inventory.5 with air
+execute if score @s item_slot matches 15 run item replace entity @s inventory.6 with air
+execute if score @s item_slot matches 16 run item replace entity @s inventory.7 with air
+execute if score @s item_slot matches 17 run item replace entity @s inventory.8 with air
+execute if score @s item_slot matches 18 run item replace entity @s inventory.9 with air
+execute if score @s item_slot matches 19 run item replace entity @s inventory.10 with air
+execute if score @s item_slot matches 20 run item replace entity @s inventory.11 with air
+execute if score @s item_slot matches 21 run item replace entity @s inventory.12 with air
+execute if score @s item_slot matches 22 run item replace entity @s inventory.13 with air
+execute if score @s item_slot matches 23 run item replace entity @s inventory.14 with air
+execute if score @s item_slot matches 24 run item replace entity @s inventory.15 with air
+execute if score @s item_slot matches 25 run item replace entity @s inventory.16 with air
+execute if score @s item_slot matches 26 run item replace entity @s inventory.17 with air
+execute if score @s item_slot matches 27 run item replace entity @s inventory.18 with air
+execute if score @s item_slot matches 28 run item replace entity @s inventory.19 with air
+execute if score @s item_slot matches 29 run item replace entity @s inventory.20 with air
+execute if score @s item_slot matches 30 run item replace entity @s inventory.21 with air
+execute if score @s item_slot matches 31 run item replace entity @s inventory.22 with air
+execute if score @s item_slot matches 32 run item replace entity @s inventory.23 with air
+execute if score @s item_slot matches 33 run item replace entity @s inventory.24 with air
+execute if score @s item_slot matches 34 run item replace entity @s inventory.25 with air
+execute if score @s item_slot matches 35 run item replace entity @s inventory.26 with air
+execute if score @s item_slot matches 100 run item replace entity @s armor.feet with air
+execute if score @s item_slot matches 101 run item replace entity @s armor.legs with air
+execute if score @s item_slot matches 102 run item replace entity @s armor.chest with air
+execute if score @s item_slot matches 103 run item replace entity @s armor.head with air
+execute if score @s item_slot matches -106 run item replace entity @s weapon.offhand with air
 
 scoreboard players reset @s item_slot

+ 6 - 6
data/item/functions/shop/refresh_equip.mcfunction

@@ -28,9 +28,9 @@ give @s[scores={shop_arrow=3}] tipped_arrow{Potion:"minecraft:slowness"} 2
 clear @s crossbow
 give @s[scores={shop_firework=1}] minecraft:crossbow{display:{Name:'{"text":"烟花弩","italic":false,"color":"gray"}',Lore:['{"text":"发射一个漂亮的烟花!","italic":false,"color":"gray"}']},Damage:326,Charged:1b,ChargedProjectiles:[{id:"firework_rocket",Count:1b,tag:{Fireworks:{Flight:1b,Explosions:[{Type:0b,Colors:[I;11743532,15435844,14602026,4312372,6719955,2437522,8073150]}]}}}]} 1
 
-replaceitem entity @s armor.chest air
-replaceitem entity @s[scores={shop_armor=3..}] armor.chest golden_chestplate{display:{Name:'{"text":"金胸甲","italic":false,"color":"gray"}'}}
-replaceitem entity @s armor.legs air
-replaceitem entity @s[scores={shop_armor=2}] armor.legs golden_leggings{display:{Name:'{"text":"金护腿","italic":false,"color":"gray"}'}}
-replaceitem entity @s armor.feet air
-replaceitem entity @s[scores={shop_armor=1}] armor.feet golden_boots{display:{Name:'{"text":"金靴子","italic":false,"color":"gray"}'}}
+item replace entity @s armor.chest air
+item replace entity @s[scores={shop_armor=3..}] armor.chest golden_chestplate{display:{Name:'{"text":"金胸甲","italic":false,"color":"gray"}'}}
+item replace entity @s armor.legs air
+item replace entity @s[scores={shop_armor=2}] armor.legs golden_leggings{display:{Name:'{"text":"金护腿","italic":false,"color":"gray"}'}}
+item replace entity @s armor.feet air
+item replace entity @s[scores={shop_armor=1}] armor.feet golden_boots{display:{Name:'{"text":"金靴子","italic":false,"color":"gray"}'}}

+ 2 - 2
data/ltw/functions/state/0/parkour/tempo_block/marker_spawn.mcfunction

@@ -35,5 +35,5 @@ execute positioned 14 50 -30 run summon armor_stand ~ ~-0.4 ~ {Marker:1b,Invisib
 execute positioned 21 49 -34 run summon armor_stand ~ ~-0.4 ~ {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["lobby_tempo","tempo_blue_r"]}
 
 # 显示as
-replaceitem entity @e[type=armor_stand,tag=tempo_red_t,tag=lobby_tempo] armor.head red_stained_glass
-replaceitem entity @e[type=armor_stand,tag=tempo_blue_t,tag=lobby_tempo] armor.head blue_stained_glass
+item replace entity @e[type=armor_stand,tag=tempo_red_t,tag=lobby_tempo] armor.head red_stained_glass
+item replace entity @e[type=armor_stand,tag=tempo_blue_t,tag=lobby_tempo] armor.head blue_stained_glass

+ 1 - 1
data/ltw/functions/state/0/state/join_game.mcfunction

@@ -4,7 +4,7 @@ clear @s gray_dye{lobby_item:1b,lobby_watch:1b}
 kill @e[type=item,nbt={Item:{id:"minecraft:gray_dye",tag:{lobby_item:1b,lobby_watch:1b}}}]
 execute if data entity @s Inventory[{Slot:8b}] run scoreboard players set @s item_slot 8
 execute if data entity @s Inventory[{Slot:8b}] at @s run function item:pop_slot/return_item
-replaceitem entity @s hotbar.8 lime_dye{lobby_item:1b,lobby_ready:1b,display:{Name:'[{"text":"已准备 (按 ","color":"green","italic":false},{"keybind":"key.drop","color":"green","italic":false},{"text":" 切换)","color":"green","italic":false}]',Lore:['{"text":"你将在下一局参与游戏","color":"gray","italic":false}']}}
+item replace entity @s hotbar.8 with lime_dye{lobby_item:1b,lobby_ready:1b,display:{Name:'[{"text":"已准备 (按 ","color":"green","italic":false},{"keybind":"key.drop","color":"green","italic":false},{"text":" 切换)","color":"green","italic":false}]',Lore:['{"text":"你将在下一局参与游戏","color":"gray","italic":false}']}}
 execute at @s run function lib:sounds/hit
 
 # 处理数据

+ 1 - 1
data/ltw/functions/state/0/state/join_watch.mcfunction

@@ -4,7 +4,7 @@ clear @s gray_dye{lobby_item:1b,lobby_watch:1b}
 kill @e[type=item,nbt={Item:{id:"minecraft:lime_dye",tag:{lobby_item:1b,lobby_ready:1b}}}]
 execute if data entity @s Inventory[{Slot:8b}] run scoreboard players set @s item_slot 8
 execute if data entity @s Inventory[{Slot:8b}] at @s run function item:pop_slot/return_item
-replaceitem entity @s hotbar.8 gray_dye{lobby_item:1b,lobby_watch:1b,display:{Name:'[{"text":"旁观 (按 ","color":"white","italic":false},{"keybind":"key.drop","color":"white","italic":false},{"text":" 切换)","color":"white","italic":false}]',Lore:['{"text":"你将在下一局旁观游戏","color":"gray","italic":false}']}}
+item replace entity @s hotbar.8 with gray_dye{lobby_item:1b,lobby_watch:1b,display:{Name:'[{"text":"旁观 (按 ","color":"white","italic":false},{"keybind":"key.drop","color":"white","italic":false},{"text":" 切换)","color":"white","italic":false}]',Lore:['{"text":"你将在下一局旁观游戏","color":"gray","italic":false}']}}
 execute at @s run function lib:sounds/hit2
 
 # 处理数据

+ 1 - 1
data/mini/functions/ass/game/give_creeper.mcfunction

@@ -4,4 +4,4 @@ clear @s creeper_spawn_egg{game_item:1b}
 execute if data entity @s Inventory[{Slot:-106b}] run scoreboard players set @s item_slot -106
 execute if data entity @s Inventory[{Slot:-106b}] at @s run function item:pop_slot/return_item
 
-replaceitem entity @s weapon.offhand creeper_spawn_egg{game_item:1b,display:{Name:'{"text":"苦力怕刷怪蛋","italic":false}'},EntityTag:{CustomName:'',ignited:1b,Fuse:34s,AbsorptionAmount:1000},CanPlaceOn:["#mini:creeper_block"],HideFlags:16} 1
+item replace entity @s weapon.offhand creeper_spawn_egg{game_item:1b,display:{Name:'{"text":"苦力怕刷怪蛋","italic":false}'},EntityTag:{CustomName:'',ignited:1b,Fuse:34s,AbsorptionAmount:1000},CanPlaceOn:["#mini:creeper_block"],HideFlags:16} 1

+ 1 - 1
data/mini/functions/ass/game/give_stick.mcfunction

@@ -4,4 +4,4 @@ clear @s stick{game_item:1b}
 execute if data entity @s Inventory[{Slot:8b}] run scoreboard players set @s item_slot 8
 execute if data entity @s Inventory[{Slot:8b}] at @s run function item:pop_slot/return_item
 
-replaceitem entity @s hotbar.8 stick{game_item:1b,display:{Name:'{"text":"击退棒","italic":false}'},Enchantments:[{id:"knockback",lvl:2}]} 1
+item replace entity @s hotbar.8 with stick{game_item:1b,display:{Name:'{"text":"击退棒","italic":false}'},Enchantments:[{id:"knockback",lvl:2}]} 1

+ 10 - 10
data/mini/functions/colormatch/game/show_floor_block.mcfunction

@@ -6,13 +6,13 @@ execute if data entity @s Inventory[{Slot:8b}] run scoreboard players set @s ite
 execute if data entity @s Inventory[{Slot:8b}] at @s run function item:pop_slot/return_item
 
 # 物品栏显示
-execute if score $color_match_current mem matches 1 run replaceitem entity @s hotbar.8 acacia_planks{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
-execute if score $color_match_current mem matches 2 run replaceitem entity @s hotbar.8 birch_planks{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
-execute if score $color_match_current mem matches 3 run replaceitem entity @s hotbar.8 soul_soil{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
-execute if score $color_match_current mem matches 4 run replaceitem entity @s hotbar.8 crimson_planks{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
-execute if score $color_match_current mem matches 5 run replaceitem entity @s hotbar.8 warped_planks{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
-execute if score $color_match_current mem matches 6 run replaceitem entity @s hotbar.8 purpur_block{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
-execute if score $color_match_current mem matches 7 run replaceitem entity @s hotbar.8 bricks{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
-execute if score $color_match_current mem matches 8 run replaceitem entity @s hotbar.8 mossy_cobblestone{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
-# execute if score $color_match_current mem matches 9 run replaceitem entity @s hotbar.8 purpur_block{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
-# execute if score $color_match_current mem matches 10 run replaceitem entity @s hotbar.8 prismarine{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
+execute if score $color_match_current mem matches 1 run item replace entity @s hotbar.8 with acacia_planks{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
+execute if score $color_match_current mem matches 2 run item replace entity @s hotbar.8 with birch_planks{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
+execute if score $color_match_current mem matches 3 run item replace entity @s hotbar.8 with soul_soil{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
+execute if score $color_match_current mem matches 4 run item replace entity @s hotbar.8 with crimson_planks{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
+execute if score $color_match_current mem matches 5 run item replace entity @s hotbar.8 with warped_planks{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
+execute if score $color_match_current mem matches 6 run item replace entity @s hotbar.8 with purpur_block{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
+execute if score $color_match_current mem matches 7 run item replace entity @s hotbar.8 with bricks{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
+execute if score $color_match_current mem matches 8 run item replace entity @s hotbar.8 with mossy_cobblestone{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
+# execute if score $color_match_current mem matches 9 run item replace entity @s hotbar.8 with purpur_block{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}
+# execute if score $color_match_current mem matches 10 run item replace entity @s hotbar.8 with prismarine{game_item:1b,display:{Name:'[{"text":"本轮的地板方块","color":"white","italic":false}]'}}

+ 1 - 1
data/mini/functions/hotpm/game/pm_show.mcfunction

@@ -3,4 +3,4 @@ execute if data entity @s Inventory[{Slot:8b}] run scoreboard players set @s ite
 execute if data entity @s Inventory[{Slot:8b}] at @s run function item:pop_slot/return_item
 
 # 给予tnt显示
-replaceitem entity @s hotbar.8 tnt{game_item:1b,display:{Name:'[{"text":"炸弹","color":"red","italic":false}]'}} 1
+item replace entity @s hotbar.8 with tnt{game_item:1b,display:{Name:'[{"text":"炸弹","color":"red","italic":false}]'}} 1

+ 2 - 2
data/mini/functions/parkour/game/marker_spawn.mcfunction

@@ -20,5 +20,5 @@ summon armor_stand 1012 7.6 1036 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1
 summon armor_stand 1014 8.6 1039 {Marker:1b,Invisible:1b,Invulnerable:1b,Small:1b,NoGravity:1b,Tags:["parkour_tempo","tempo_blue"]}
 
 # 显示as
-replaceitem entity @e[type=armor_stand,tag=tempo_red,tag=parkour_tempo] armor.head red_stained_glass
-replaceitem entity @e[type=armor_stand,tag=tempo_blue,tag=parkour_tempo] armor.head blue_stained_glass
+item replace entity @e[type=armor_stand,tag=tempo_red,tag=parkour_tempo] armor.head red_stained_glass
+item replace entity @e[type=armor_stand,tag=tempo_blue,tag=parkour_tempo] armor.head blue_stained_glass

+ 1 - 1
data/mini/functions/phantom/game/give_trident.mcfunction

@@ -4,4 +4,4 @@ clear @s trident{game_item:1b}
 execute if data entity @s Inventory[{Slot:8b}] run scoreboard players set @s item_slot 8
 execute if data entity @s Inventory[{Slot:8b}] at @s run function item:pop_slot/return_item
 
-replaceitem entity @s hotbar.8 trident{Damage:248,game_item:1b,display:{Name:'{"text":"补给用三叉戟","italic":false}'}} 1
+item replace entity @s hotbar.8 with trident{Damage:248,game_item:1b,display:{Name:'{"text":"补给用三叉戟","italic":false}'}} 1

+ 1 - 1
data/mini/functions/trade/game/paper_show.mcfunction

@@ -6,4 +6,4 @@ execute if data entity @s Inventory[{Slot:8b}] run scoreboard players set @s ite
 execute if data entity @s Inventory[{Slot:8b}] at @s run function item:pop_slot/return_item
 
 # 设置最后一格的物品
-replaceitem entity @s hotbar.8 paper{game_item:1b,display:{Name:'[{"text":"交易契约","color":"aqua","italic":false}]',Lore:['[{"text":"奇物, 珍稀","italic":true,"color":"gray"}]','[{"color":"white","italic":false,"text":"在你握持该纸时, 一位村民"},{"text":" villager ","italic":true},{"color":"white","italic":false,"text":"将会出现在你周围 10 尺内"}]','[{"color":"white","italic":false,"text":"的一处尚未被占据的区域, 直到你不握持该纸时, 它会使用以"}]','[{"color":"white","italic":false,"text":"太化"},{"text":" etherealness ","color":"white","italic":true},{"color":"white","italic":false,"text":"进入以太位面并消失。"}]','[{"color":"white","italic":false,"text":"该村民被永久的浮空术"},{"text":" levitate ","color":"white","italic":true},{"color":"white","italic":false,"text":"影响, 且持续保持在与你相同"}]','[{"color":"white","italic":false,"text":"的高度。你可以穿过它所占据的空间, 且可以与它进行交易, 不"}]','[{"color":"white","italic":false,"text":"过对它的攻击会自动失手。它会通过所有豁免检定, 并且免疫所"}]','[{"color":"white","italic":false,"text":"有的伤害和异常状态。"}]']}}
+item replace entity @s hotbar.8 with paper{game_item:1b,display:{Name:'[{"text":"交易契约","color":"aqua","italic":false}]',Lore:['[{"text":"奇物, 珍稀","italic":true,"color":"gray"}]','[{"color":"white","italic":false,"text":"在你握持该纸时, 一位村民"},{"text":" villager ","italic":true},{"color":"white","italic":false,"text":"将会出现在你周围 10 尺内"}]','[{"color":"white","italic":false,"text":"的一处尚未被占据的区域, 直到你不握持该纸时, 它会使用以"}]','[{"color":"white","italic":false,"text":"太化"},{"text":" etherealness ","color":"white","italic":true},{"color":"white","italic":false,"text":"进入以太位面并消失。"}]','[{"color":"white","italic":false,"text":"该村民被永久的浮空术"},{"text":" levitate ","color":"white","italic":true},{"color":"white","italic":false,"text":"影响, 且持续保持在与你相同"}]','[{"color":"white","italic":false,"text":"的高度。你可以穿过它所占据的空间, 且可以与它进行交易, 不"}]','[{"color":"white","italic":false,"text":"过对它的攻击会自动失手。它会通过所有豁免检定, 并且免疫所"}]','[{"color":"white","italic":false,"text":"有的伤害和异常状态。"}]']}}