@s表示玩家的id
死亡不掉落物品
/gamerule keepInventory true苦力怕、末影人不会破坏方块
/gamerule mobGriefing false锁定时间,停止昼夜交替
/gamerule doDaylightCycle false锁定天气,不再下雨打雷
/gamerule doWeatherCycle false切换生存模式
/gamemode 0切换创造模式
/gamemode 1和平难度,不生成怪物
/difficulty peaceful困难难度
/difficulty hard设置为白天
/time set day设置为夜晚
/time set night设置晴天
/weather clear设置雷雨天气
/weather thunder传送到指定坐标,x y z替换成数字
/tp @s x y z把当前位置设为个人重生点
/spawnpoint @s查找最近村庄的坐标
/locate structure village查找最近下界要塞的坐标
/locate structure fortress查找最近末地城的坐标
/locate structure end_city#获得64个铁块
/give @s minecraft:iron_block 64#获得64个金块
/give @s minecraft:gold_block 64#获得64个绿宝石块
/give @s minecraft:emerald_block 64获得64个钻石块
/give @s minecraft:diamond_block 64获得64个下界合金块
/give @s minecraft:netherite_block 64获得钻石剑
/give @p diamond_sword 1 0 {Unbreakable:1,ench:[{id:16,lvl:5},{id:20,lvl:2},{id:21,lvl:3}]}获得钻石斧
/give @p diamond_axe 1 0 {Unbreakable:1,ench:[{id:32,lvl:5},{id:35,lvl:3}]}获得钻石镐
/give @p diamond_pickaxe 1 0 {Unbreakable:1,ench:[{id:32,lvl:5},{id:35,lvl:3}]}获得钻石铲
/give @p diamond_shovel 1 0 {Unbreakable:1,ench:[{id:32,lvl:5},{id:35,lvl:3}]}获得弓
/give @p bow 1 0 {Unbreakable:1,ench:[{id:48,lvl:5},{id:49,lvl:2},{id:50,lvl:1},{id:51,lvl:1}]}获得箭
/give @p arrow 64 0获得钻石头盔
/give @p diamond_helmet 1 0 {Unbreakable:1,ench:[{id:0,lvl:4},{id:5,lvl:3},{id:6,lvl:1}]}获得钻石胸甲
/give @p diamond_chestplate 1 0 {Unbreakable:1,ench:[{id:0,lvl:4}]}获得钻石护腿
/give @p diamond_leggings 1 0 {Unbreakable:1,ench:[{id:0,lvl:4}]}获得钻石靴子
/give @p diamond_boots 1 0 {Unbreakable:1,ench:[{id:0,lvl:4},{id:8,lvl:3}]}获得附魔金苹果
/give @p golden_apple 64 1获得64个附魔之瓶
/give @s minecraft:experience_bottle 64获得火把
/give @p torch 64 0清空自己全部背包物品
/clear @s永久高跳效果
/effect @s jump_boost 99999 2 true永久速度提升效果(没事别用255的速度提升效果,太离谱了)
/effect @s speed 99999 2 true永久隐身
/effect @s invisibility 99999 0 true永久夜视
/effect @s night_vision 99999 0 true永久水下呼吸
/effect @s water_breathing 99999 0 true永久防火不怕岩浆
/effect @s fire_resistance 99999 0 true召唤铁傀儡
/summon iron_golem召唤末影龙(没事别弄末影龙)
/summon ender_dragon把指定区域全部替换成空气(清空区域)
/fill x1 y1 z1 x2 y2 z2 air把指定区域全部填充石头
/fill x1 y1 z1 x2 y2 z2 stone召唤闪电劈向自己
/execute @s ~ ~ ~ summon LightningBolt将自己传送至y=120的高空
/tp @s ~ 120 ~将自己传送至y=-60的虚空
/tp @s ~ -60 ~脚下刷苦力怕
/execute @s ~ ~ ~ summon Creeper刷一个瞬间后爆炸的TNT
/execute @s ~ ~ ~ summon PrimedTnt ~ ~2 ~ {Fuse:200}附魔:
/enchant @s 英文id名 最高等级| 数字ID | 中文名称 | ID | 最高等级 |
|---|---|---|---|
| 0 | 保护 | protection | 4 |
| 1 | 火焰保护 | fire_protection | 4 |
| 2 | 摔落保护 | feather_falling | 4 |
| 3 | 爆炸保护 | blast_protection | 4 |
| 4 | 弹射物保护 | projectile_protection | 4 |
| 5 | 荆棘 | thorns | 3 |
| 6 | 水下呼吸 | respiration | 3 |
| 7 | 深海探索者 | depth_strider | 3 |
| 8 | 水下速掘 | aqua_affinity | 1 |
| 9 | 锋利 | sharpness | 5 |
| 10 | 亡灵杀手 | smite | 5 |
| 11 | 节肢杀手 | bane_of_arthropods | 5 |
| 12 | 击退 | knockback | 2 |
| 13 | 火焰附加 | fire_aspect | 2 |
| 14 | 抢夺 | looting | 3 |
| 15 | 效率 | efficiency | 5 |
| 16 | 精准采集 | silk_touch | 1 |
| 17 | 耐久 | unbreaking | 3 |
| 18 | 时运 | fortune | 3 |
| 19 | 力量 | power | 5 |
| 20 | 冲击 | punch | 2 |
| 21 | 火矢 | flame | 1 |
| 22 | 无限 | infinity | 1 |
| 23 | 海之眷顾 | luck_of_the_sea | 3 |
| 24 | 饵钓 | lure | 3 |
| 25 | 冰霜行者 | frost_walker | 2 |
| 26 | 经验修补 | mending | 1 |
| 27 | 绑定诅咒 | binding_curse | 1 |
| 28 | 消失诅咒 | vanishing_curse | 1 |
| 29 | 穿刺 | impaling | 5 |
| 30 | 激流 | riptide | 3 |
| 31 | 忠诚 | loyalty | 3 |
| 32 | 引雷 | channeling | 1 |
| 33 | 多重箭 | multishot | 1 |
| 34 | 穿透 | piercing | 4 |
| 35 | 快速装填 | quick_charge | 3 |
| 36 | 灵魂疾行 | soul_speed | 3 |
| 37 | 迅捷潜行 | swift_sneak | 3 |
| 38 | 横扫之刃 | sweeping_edge | 3 |
| 39 | 密度 | density | 5 |
| 40 | 破甲 | breach | 4 |
| 41 | 风爆 | wind_burst | 3 |