我讓MC的村民變良心了!8個有趣的指令分享
HTML-код
- Опубликовано: 17 окт 2024
- 讓村民變的良心
/execute as @e[type=minecraft:villager,distance=..4] at @s run data merge entity @s
{Offers:{Recipes:[{buy:{id:'minecraft:dirt',Count:1},sell:{id:'minecraft:diamond',Count:1}}]}}
獲得鉆石獎勵箱
/give @p chest{BlockEntityTag:{Items:[{id:'diamond_helmet',Count:1},{id:'diamond_chestplate',Count:1,Slot:1b},
{id:'diamond_leggings',Count:1,Slot:2b},{id:'diamond_boots',Count:1,Slot:3b},{id:'diamond_sword',Count:1,Slot:4b}]},display:{Name:'"鉆石套獎勵箱"'}}
關閉衰落傷害
/gamerule fallDamage false
挖到的鉆石變成煤炭
execute as @e[type=item,nbt={Item:{id:'minecraft:diamond'}}] at @s if entity
@a[name=MuMu_damowang,distance=..2] run data merge entity @s {Item:{id:'minecraft:coal'}}
睡覺就會掉巖漿
execute as @a at @s run fill ~ ~ ~ ~ ~ ~ lava replace white_bed
召喚鉆石刷怪籠
/setblock ~ ~1 ~ minecraft:spawner{SpawnPotentials:[{weight:1,data:{entity:{id:'item',Item:{id:'diamond',Count:1}}}}]}
釣魚竿挖礦機
execute as @e[type=minecraft:fishing_bobber,nbt={OnGround:1b}] at @s run fill ~5 ~-1 ~5 ~-5 ~ ~-5 air destroy
時間暫停
/tick freeze
時間恢復
/tick unfreeze