我们都知道,官方在前几天更新了Code Block命令块/编程块,在几天之内,已经被无所不能的玩家们玩出了新花样,那么让我们看看都有哪些最实用、对你的服务器最有帮助,同时也是最好玩的指令
披风
由于事关Arthur收入,不得不修
api.changePlayerIntoSkin(myId, "cape", "%"),%处可填:super, super_inverted, pig, youtuber, cow_normal, sheep;还有一个白色牛的不知道
穿墙
老好玩辣
api.setWalkThroughType(myId, "%", false)
%处填方块名字,与WorldBuilder里的方式一样
无限时长(de)buff
api.applyEffect(myId, "%", null, {inbuiltlevel:#})
%处填写(de)buff名称,#处填写等级 那个null肯定是时长
如给自己上一个5级(V)跳跃:
api.applyEffect(myId, "Jump Boost", null, {inbuiltlevel:5})
姿势
api.setPlayerPose(myId,"%")
%处填:standing, sitting, driving, gliding, zombie
皮肤
api.changePlayerIntoSkin(myId, "head", "@") api.changePlayerIntoSkin(myId, "body", "#") api.changePlayerIntoSkin(myId, "legs", "%")
@、#、%处均可填:IronMelon, Zombie, TraderOne, Wizard, FireWizard, TraderTwo, TraderThree
违禁方块
终于!最牛逼的到辣
第一种:无法破坏的
将以下代码复制粘贴到一个命令块里,在上面贴一个press to code,再顺着贴一个press to get 999 Stone,确保能和press to code同时触发,最后在附近放一个炼药台就完事了,操作:点击press to code不用管它给你提示什么,同时领到一组石头,接着点击打开炼药台就可以啦~
说明:
Unloaded(也叫1)无法获取,因此没有显示
前缀INTERNAL_MESH_的是小模型,类似于手办
那个loot chest长得跟普通箱子一样贴图、名字也一样无法(真正地发挥其作为宝藏箱的作用)使用,合成了也没用
彩蛋枪可以打人
toxin ball毒球,豪丸
更新:现在都代码可以获取彩蛋炸药块和硬床,同时大家也可以在代码中再自行添加内容
stackableItems=["Toxin Ball","Timed Spike Bomb Block","Water","Lava", "Invisible Solid","Block of Emerald","Iron Watermelon","Block of Lapis Lazuli", "Melting Ice","Ice Bridge","Loot Chest","Faction Protector","Beacon", "Yellowstone","Sponge","Dim Lamp Off","Dim Lamp On","Chiseled Block of Quartz" ] unstackableItems=["Cornbread","Obby RPG","Timed Spike Bomb","Artisan Shears", "Artisan Axe","INTERNAL_MESH_Wood Hang Glider","INTERNAL_MESH_Iron Hang Glider", "INTERNAL_MESH_Gold Hang Glider","INTERNAL_MESH_Diamond Hang Glider", "INTERNAL_MESH_Boat","INTERNAL_MESH_Obsidian Boat","INTERNAL_MESH_Kart"] for(x=0;x<stackableItems.length;x++) {api.editItemCraftingRecipes(myId, stackableItems[x], [{requires:[{items:["Stone"],amt: 1}], produces: 999, station:"Potion Table"}])} for(x=0;x<unstackableItems.length;x++) {api.editItemCraftingRecipes(myId, unstackableItems[x], [{requires:[{items:["Stone"],amt: 1}], produces: 1, station:"Potion Table"}])} api.log("Use the Potion table nearby to get insane illegal items") const colors = [ "Red", "Lime", "Pink", "Gray", "Cyan", "Blue", "White", "Brown", "Green", "Black", "Orange", "Yellow", "Purple", "Magenta", "Light Blue", "Light Gray" ]; const categories = [ "Balloon", "Popup Tower", "Paintball Gun", "Heavy Paintball Gun", "Paint Bow", "Paintball Explosive", "Quick Paintball Explosive", "Sticky Paintball Explosive Item", "Seeking Paintball Explosive Item","Strongbed" ]; const categorySingleCraft = [ "Paintball Gun", "Heavy Paintball Gun", "Paint Bow" ]; const craftableItems = []; colors.forEach(color => { categories.forEach(category => { craftableItems.push({ name: `${color} ${category}`, produces: categorySingleCraft.includes(category) ? 1 : 999 }); }); }); craftableItems.forEach(item => { api.editItemCraftingRecipes(myId, item.name, [{ requires: [{ items: ["Stone"], amt: 1 }], produces: item.produces, station: "Potion Table" }]); });
第二种:可以破坏的
先使用/设置并点击——
r="setBlockRect" r=api[r]
然后设置一堆的:
s=""+@ r([p1],[p2],s)
@处填物品ID,p1、p2处填坐标,以便你在指定坐标用爆炸物炸你设置的方块来获得它
提供一些无法用“第一个”获得的物品id:
gravel:7
free_placeholder:30
lapis ore:43
emerald ore:44
pumpkin_placeholder:104
UNUSED BLOCK TYPE(单面玻璃):123
block of quartz:132
hay bale:141
temp:144
双层光滑原石半砖(英文太长):148
azure bluet:161
lilly(of the valley):162
withered rose:163
reservedbread blockrotation 1:319
rotation2:320
rotation3:321
useless soil:472
green stone:478
green bricks:479
placeholder packed ice:489
palceholder blue ice:490
fireball block:961
iceball block:962
grenade block:1221
bouncy bomb block:1271
rpg block:1272
toxin ball block:1511
各种彩蛋炸药块:从1297至1312
后面的还是看物块列表吧