
循环后接连锁,这一段接在垂直向上、向下 tp @e[type=villager,name=NPC] ~~0.5~ facing @p[r=8] effect @e[type=villager,name=NPC] instant_health 1 255 true effect @e[type=villager,name=NPC] resistance 1 255 true effect @e[type=villager,name=NPC] health_boost 1 255 true replaceitem entity @e[type=villager,name=NPC] slot.armor.feet 0 keep iron_boots 1 1000 有条件 scoreboard players add @p npc 1 第二段,随便位置做,循环接连锁 titleraw @a[scores={npc=1..}] actionbar {"rawtext":[{"text":"§l§a你好,冒险家\n§r今日的地形,不知为何,变成了§7超平坦§f\n我无法收集物质,但我需要\n§e再生药水x20§f\n作为报酬,我会给你§b1000金币\n§7抬头接受/提交 低头拒绝/取消"}]} title @a[scores={npc=2..5}] title §l§o§c你干嘛啊 title @a[scores={npc=6..9}] title §l§o§c你最好小心点 kill @a[scores={npc=10..}] title @a[scores={npc=10..}] title §l§o§c就你事多 scoreboard players reset @a[scores={npc=10..}] npc title @a[scores={npc=1..},rxm=88,tag=!任务] actionbar 已关闭对话 title @a[scores={npc=1..},rx=-88,tag=!任务] actionbar 已接取任务 tag @a[scores={npc=1..},rx=-88,tag=!任务] add 任务 title @a[scores={npc=1..},rxm=88,tag=任务] actionbar 已取消任务 tag @a[scores={npc=1..},rxm=88,tag=任务] remove 任务 execute as @a[scores={npc=1..},tag=任务,rx=-88,hasitem={item=potion,data=28,quantity=20..}] at @s run title @s actionbar 任务已完成,获得金币x1000 execute as @a[scores={npc=1..},tag=任务,rx=-88,hasitem={item=potion,data=28,quantity=20..}] at @s run scoreboard players add @s emerald 1000 execute as @a[scores={npc=1..},tag=任务,rx=-88,hasitem={item=potion,data=28,quantity=20..}] at @s run clear @s potion 28 20 execute as @a[scores={npc=1..},tag=任务,rx=-88,hasitem={item=potion,data=28,quantity=20..}] at @s run tag @s remove 任务 scoreboard players reset @a[scores={npc=1..},rxm=88] npc scoreboard players reset @a[scores={npc=1..},rx=-88] npc
2025-11-24 01:46:55 发布在
我的世界新鲜事
说点好听的...
收藏
0
0