LD_LIBRARY_PATH=. ./bedrock_server
启动 服务器
/give 玩家 minecraft:iron_ingot 64 给铁锭
/give @p minecraft:netherite_ingot 1 下届合金
give @p enchanted_book{StoredEnchantments:[{id:"minecraft:mending",lvl:1}]} 1
经验修补
/give 玩家 minecraft:diamond 64 钻石
/give 玩家 minecraft:book 128 书
/give 玩家 minecraft:obsidian 64 黑曜石
/give 玩家 minecraft:gold_ingot 64 金锭
/give 玩家 minecraft:dropper 64 投掷器
/give 玩家 minecraft:spider_eye 64 蜘蛛眼
/give 玩家 minecraft:wither_skeleton_skull 2 凋零头
/kill @e[type=!player] 清楚所以实体
/execute as @a[distance=..10] run summon lightning_bolt ~ ~ ~
@a[distance=..10] ==玩家 闪电批人
/execute as 玩家 run summon minecraft:lightning_bolt 召唤闪电给某个玩家
/weather thunder 天气 雷暴
execute as @e at @s run tp ^ ^ ^1:所有实体向各自所朝方向移动一格。
execute as @a run tp ^ ^ ^1
summon minecraft:zombie_villager 62 65 -242{ArmorItems:[{},{},{},{id:"minecraft:diamond_helmet",Count:1b,Damage:0s}],ArmorDropChances:[0.0f,0.0f,0.0f,1f]}
生成村民
effect 玩家 resistance 99999 255 抗性
effect 玩家 night_vision 99999 250 夜视
effect 玩家 speed 1 1 急速
effect 玩家 Regeneration 99999 250生命恢复
effect 玩家 Nausea 1 1
Nausea 反胃
give 玩家 minecraft:skull 39 1 凋零头
清楚指定类型的掉落物品: kill @e[type=item]
清理服务器掉落物品: /remove drops 999999
XP 999999 玩家 经验
give 玩家 fire_charge 3 给三个火焰球
give 玩家 emerald_block 657绿宝石块
give 玩家 milk_bucket 1 牛奶同
give 玩家 cooked_porkchop 64 熟猪排
give 玩家 powder_snow_bucket 8 细雪桶
give 玩家 lapis_lazuli 64 青金石
玩家 677 -993
玩家
give 玩家 elytra 1
give 玩家 elytra 1
give 玩家 book 128 书
give 玩家 elytra 20 鞘翅
give 玩家 firework_rocket 128 烟火
/gamemode 1 玩家 后面输入要给权限的玩家的名字。创造模式玩家
gamerule showcoordinates true 打开坐标
/spawnpoint 玩家 x y z 这个人重生点设置在这个坐标
spawnpoint kali 1000 -55 1000
spawnpoint 玩家 5856 63 -931
tp 玩家 5870 63 -406
tp 玩家 203 210 -115
execute as 玩家 in nether run teleport 434 40 367 将所有玩家传送到下届中
execute as 玩家 in nether run teleport 400 40 368 恶魂塔 挂机点
execute as @a in the_end run teleport 84 57 79 将所有玩家传送到末地中
execute as @a in nether run teleport 84 57 79 将所有玩家传送到下届中
spawnpoint respool 1000 -55 996
spawnpoint aichentianyu -2812 71 -2994
spawnpoint aichentianyu -2812 71 -2994
spawnpoint aichentianyu -2812 71 -2994
将玩家传送到主世界中x=251、y=64、z=-160的位置:
execute as 玩家 in minecraft:overworld run teleport 251 64 -160
execute as 玩家 in minecraft:the_nether run teleport 251 64 -160
将执行实体传送到下界中坐标与其目前所在主世界坐标相同的位置(X和Z坐标将自动除以8):execute in minecraft:the_nether run teleport ~ ~ ~
将所有玩家传送到末地中x=84、y=57、z=79的位置:execute as @a in minecraft:the_end run teleport 84 57 79
-393 71 15
一般传送指令形式是:/tp x y z,或者/tp 玩家名 x y z,坐标是有xyz组成的,按f3显示的第一个数对应x,第二个数对应y,第三个数对应z
spawnpoint jia1 -2815 59 -2966 这个人重生点设置在这个坐标
服务器相关指令
设置管理员:/op <玩家名>
移除管理员:/deop <玩家名>
打开白名单:/whitelist on
关闭白名单:/whitelist off
添加用户到白名单:/whitelist add <玩家名>
从白名单中删除用户:/whitelist remove <玩家名>