好吧,我们指令的更新还是太快了,上一次的甚至已经有些过时了,就来看看最新的实用指令叭~
违禁方块2
这回的代码不限于上次的一大串,大家可以自行添加所需
首先看看它的基本结构:(指上一次中更改合成表的方法)
api.editItemCraftingRecipes(myId,"@",[{requires:[{items:["#"],amt:¥},{items:["%"],amt:^}......], produces: &,station:"*"}])
其中,@处填你所需物品名称,#、%处填原料名称1,¥、^处填原料数量2,&处填获得数量,*处填媒介3
物品可以看物块列表
那么,让我们看看一些范例叭~
均来自coding_test服务器人家更新尖端科技速度老快了
初版:
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", "Seeking Paintball Explosive","Strongbed"//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" }]); });
服务器方面改进1次:
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","Gravel", "Useless Soil","Fireball Block","Iceball Block","Grenade","Toxin Ball Block", "Rocket","Super Rocket", "Yellowstone","Sponge","Dim Lamp Off","Dim Lamp On","Chiseled Block of Quartz", "Hay Bale","temp","UNUSED BLOCK TYPE", ,"Purple Paintball Explosive", "Pink Paintball Explosive","Yellow Paintball Explosive", "Red Paintball Explosive","Gray Paintball Explosive","Black Paintball Explosive", "Blue Paintball Explosive","Light Blue Paintball Explosive", "White Paintball Explosive","Cyan Paintball Explosive", "Light Gray Paintball Explosive","Brown Paintball Explosive","Orange Balloon", "Blue Balloon", "Orange Popup Tower","Blue Popup Tower","Light Blue Popup Tower" "Blue Strongbed","Light Blue Strongbed","Red Strongbed","Green Strongbed", "Yellow Strongbed","Cyan Strongbed","Orange Strongbed","Gray Strongbed", "Pink Strongbed","Lime Strongbed","White Strongbed","Black Strongbed", "Brown Strongbed","Purple Strongbed","Light Gray Strongbed","Magenta Strongbed" ] unstackableItems=["Red Paintball Gun","Orange Paintball Gun", "Blue Paintball Gun", "Orange Heavy Paintball Gun","Artisan Shears","Orange Paint Bow","Cornbread", "Artisan Axe"] 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")
经我改进1次后:
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", "Mystery Block","Mushroom Stem" ] 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", "Seeking Paintball Explosive","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" }]); });
增加一些遗漏:
stackableItems=["Emerald Ore","Lapis Lazuli Ore","Azure Bluet","Wither Rose", "Lily of the Valley","Pumpkin_placeholder","_Maple Door Top","_Aspen Door Top", "_Pine Door Top","_Elm Door Top","_Pear Door Top","_Cherry Door Top", "_Plum Door Top","_Cedar Door Top","ReservedBread BlockRotation1", "ReservedBread BlockRotation2","ReservedBread BlockRotation3","_Red Bed Head", "_Cyan Bed Head","Attached Watermelon Stem"] for(x=0;x<stackableItems.length;x++) {api.editItemCraftingRecipes(myId, stackableItems[x], [{requires:[{items:["Stone"],amt: 0}], produces: 999, station:"Potion Table"}])} api.log("Use the Potion table nearby to get insane illegal items")
服务器现版:
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","Gravel", "Useless Soil","Fireball Block","Iceball Block","Grenade","Toxin Ball Block", "Rocket","Super Rocket", "Yellowstone","Sponge","Dim Lamp Off","Dim Lamp On","Chiseled Block of Quartz", "Hay Bale","temp","UNUSED BLOCK TYPE","Mystery Block","Bouncy Bomb Block", "Purple Paintball Explosive", "Pink Paintball Explosive","Yellow Paintball Explosive", "Red Paintball Explosive","Gray Paintball Explosive","Black Paintball Explosive", "Blue Paintball Explosive","Light Blue Paintball Explosive", "White Paintball Explosive","Cyan Paintball Explosive", "Light Gray Paintball Explosive","Brown Paintball Explosive","Orange Balloon", "Blue Balloon", "Orange Popup Tower","Blue Popup Tower","Light Blue Popup Tower" "Blue Strongbed","Light Blue Strongbed","Red Strongbed","Green Strongbed", "Yellow Strongbed","Cyan Strongbed","Orange Strongbed","Gray Strongbed", "Pink Strongbed","Lime Strongbed","White Strongbed","Black Strongbed", "Brown Strongbed","Purple Strongbed","Light Gray Strongbed","Magenta Strongbed" ] unstackableItems=["Red Paintball Gun","Orange Paintball Gun", "Blue Paintball Gun", "Orange Heavy Paintball Gun","Artisan Shears","Orange Paint Bow","Cornbread", "Artisan Axe"] 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")
_MX_Infinity的超长代码
管他呢,只管复制粘贴就对了
stackableItems=["Fireball Block","Iceball Block","Water","Lava","Melting Ice","UNUSED BLOCK TYPE","Iron Watermelon","Useless Soil","Sponge","Mystery Block","Rocket","Super Rocket","Grenade","Bouncy Bomb Block","Dim Lamp On","Dim Lamp Off","Block of Quartz","Chiseled Block of Quartz","Block of Lapis Lazuli","Block of Emerald","Lapis Lazuli Ore","Emerald Ore","Yellowstone","Hay Bale","Beacon","Gravel","Mushroom Stem","Faction Protector","Green Stone","Dark Green Bricks","Green Bricks","ReservedBread BlockRotation1","ReservedBread BlockRotation2","ReservedBread BlockRotation3","Pumpkin_placeholder","free_placeholder","temp","Invisible Solid","Wither Rose","Azure Bluet","Lily of the Valley","Placeholder Packed Ice","Placeholder Blue Ice","Toxin Ball Block","Red Paintball Explosive","Orange Paintball Explosive","Yellow Paintball Explosive","Lime Paintball Explosive","Green Paintball Explosive","Light Blue Paintball Explosive","Cyan Paintball Explosive","Blue Paintball Explosive","Magenta Paintball Explosive","Pink Paintball Explosive","Purple Paintball Explosive","Brown Paintball Explosive","Light Gray Paintball Explosive","Gray Paintball Explosive","White Paintball Explosive","Black Paintball Explosive","Red Quick Paintball Explosive","Orange Quick Paintball Explosive","Yellow Quick Paintball Explosive","Lime Quick Paintball Explosive","Green Quick Paintball Explosive","Light Blue Quick Paintball Explosive","Cyan Quick Paintball Explosive","Blue Quick Paintball Explosive","Magenta Quick Paintball Explosive","Pink Quick Paintball Explosive","Purple Quick Paintball Explosive","Brown Quick Paintball Explosive","Light Gray Quick Paintball Explosive","Gray Quick Paintball Explosive","White Quick Paintball Explosive","Black Quick Paintball Explosive","Red Seeking Paintball Explosive","Orange Seeking Paintball Explosive","Yellow Seeking Paintball Explosive","Lime Seeking Paintball Explosive","Green Seeking Paintball Explosive","Light Blue Seeking Paintball Explosive","Cyan Seeking Paintball Explosive","Blue Seeking Paintball Explosive","Magenta Seeking Paintball Explosive","Pink Seeking Paintball Explosive","Purple Seeking Paintball Explosive","Brown Seeking Paintball Explosive","Light Gray Seeking Paintball Explosive","Gray Seeking Paintball Explosive","White Seeking Paintball Explosive","Black Seeking Paintball Explosive","Red Sticky Paintball Explosive","Orange Sticky Paintball Explosive","Yellow Sticky Paintball Explosive","Lime Sticky Paintball Explosive","Green Sticky Paintball Explosive","Light Blue Sticky Paintball Explosive","Cyan Sticky Paintball Explosive","Blue Sticky Paintball Explosive","Magenta Sticky Paintball Explosive","Pink Sticky Paintball Explosive","Purple Sticky Paintball Explosive","Brown Sticky Paintball Explosive","Light Gray Sticky Paintball Explosive","Gray Sticky Paintball Explosive","White Sticky Paintball Explosive","Black Sticky Paintball Explosive","Red Strongbed","Orange Strongbed","Yellow Strongbed","Lime Strongbed","Green Strongbed","Light Blue Strongbed","Cyan Strongbed","Blue Strongbed","Magenta Strongbed","Pink Strongbed","Purple Strongbed","Brown Strongbed","Light Gray Strongbed","Gray Strongbed","White Strongbed","Black Strongbed","Toxin Ball","Timed Spike Bomb Block","Ice Bridge","Red Balloon","Orange Balloon","Yellow Balloon","Lime Balloon","Green Balloon","Light Blue Balloon","Cyan Balloon","Blue Balloon","Magenta Balloon","Pink Balloon","Purple Balloon","Brown Balloon","Light Gray Balloon","Gray Balloon","White Balloon","Black Balloon","Red Popup Tower","Orange Popup Tower","Yellow Popup Tower","Lime Popup Tower","Green Popup Tower","Light Blue Popup Tower","Cyan Popup Tower","Blue Popup Tower","Magenta Popup Tower","Pink Popup Tower","Purple Popup Tower","Brown Popup Tower","Light Gray Popup Tower","Gray Popup Tower","White Popup Tower","Black Popup Tower","Red Paintball Explosive Item","Orange Paintball Explosive Item","Yellow Paintball Explosive Item","Lime Paintball Explosive Item","Green Paintball Explosive Item","Light Blue Paintball Explosive Item","Cyan Paintball Explosive Item","Blue Paintball Explosive Item","Magenta Paintball Explosive Item","Pink Paintball Explosive Item","Purple Paintball Explosive Item","Brown Paintball Explosive Item","Light Gray Paintball Explosive Item","Gray Paintball Explosive Item","White Paintball Explosive Item","Black Paintball Explosive Item","Red Quick Paintball Explosive Item","Orange Quick Paintball Explosive Item","Yellow Quick Paintball Explosive Item","Lime Quick Paintball Explosive Item","Green Quick Paintball Explosive Item","Light Blue Quick Paintball Explosive Item","Cyan Quick Paintball Explosive Item","Blue Quick Paintball Explosive Item","Magenta Quick Paintball Explosive Item","Pink Quick Paintball Explosive Item","Purple Quick Paintball Explosive Item","Brown Quick Paintball Explosive Item","Light Gray Quick Paintball Explosive Item","Gray Quick Paintball Explosive Item","White Quick Paintball Explosive Item","Black Quick Paintball Explosive Item","Red Sticky Paintball Explosive Item","Orange Sticky Paintball Explosive Item","Yellow Sticky Paintball Explosive Item","Lime Sticky Paintball Explosive Item","Green Sticky Paintball Explosive Item","Light Blue Sticky Paintball Explosive Item","Cyan Sticky Paintball Explosive Item","Blue Sticky Paintball Explosive Item","Magenta Sticky Paintball Explosive Item","Pink Sticky Paintball Explosive Item","Purple Sticky Paintball Explosive Item","Brown Sticky Paintball Explosive Item","Light Gray Sticky Paintball Explosive Item","Gray Sticky Paintball Explosive Item","White Sticky Paintball Explosive Item","Black Sticky Paintball Explosive Item","Red Seeking Paintball Explosive Item","Orange Seeking Paintball Explosive Item","Yellow Seeking Paintball Explosive Item","Lime Seeking Paintball Explosive Item","Green Seeking Paintball Explosive Item","Light Blue Seeking Paintball Explosive Item","Cyan Seeking Paintball Explosive Item","Blue Seeking Paintball Explosive Item","Magenta Seeking Paintball Explosive Item","Pink Seeking Paintball Explosive Item","Purple Seeking Paintball Explosive Item","Brown Seeking Paintball Explosive Item","Light Gray Seeking Paintball Explosive Item","Gray Seeking Paintball Explosive Item","White Seeking Paintball Explosive Item","Black Seeking Paintball Explosive Item"] 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","Red Paintball Gun","Orange Paintball Gun","Yellow Paintball Gun","Lime Paintball Gun","Green Paintball Gun","Light Blue Paintball Gun","Cyan Paintball Gun","Blue Paintball Gun","Magenta Paintball Gun","Pink Paintball Gun","Purple Paintball Gun","Brown Paintball Gun","Light Gray Paintball Gun","Gray Paintball Gun","White Paintball Gun","Black Paintball Gun","Red Heavy Paintball Gun","Orange Heavy Paintball Gun","Yellow Heavy Paintball Gun","Lime Heavy Paintball Gun","Green Heavy Paintball Gun","Light Blue Heavy Paintball Gun","Cyan Heavy Paintball Gun","Blue Heavy Paintball Gun","Magenta Heavy Paintball Gun","Pink Heavy Paintball Gun","Purple Heavy Paintball Gun","Brown Heavy Paintball Gun","Light Gray Heavy Paintball Gun","Gray Heavy Paintball Gun","White Heavy Paintball Gun","Black Heavy Paintball Gun","Red Paint Bow","Orange Paint Bow","Yellow Paint Bow","Lime Paint Bow","Green Paint Bow","Light Blue Paint Bow","Cyan Paint Bow","Blue Paint Bow","Magenta Paint Bow","Pink Paint Bow","Purple Paint Bow","Brown Paint Bow","Light Gray Paint Bow","Gray Paint Bow","White Paint Bow","Black Paint Bow"] for(x=0;x<stackableItems.length;x++) {api.editItemCraftingRecipes(myId, stackableItems[x], [{requires:[{items:["Gold Coin"],amt: 1}], produces: 1, station:"Artisan Bench"}])} for(x=0;x<unstackableItems.length;x++) {api.editItemCraftingRecipes(myId, unstackableItems[x], [{requires:[{items:["Gold Coin"],amt: 1}], produces: 1, station:"Artisan Bench"}])}
看这个真的挺累的
2025、4、26更新加入了one shot pistol
stackableItems=["Fireball Block","Iceball Block","Water","Lava","Melting Ice","UNUSED BLOCK TYPE","Iron Watermelon","Useless Soil","Sponge","Mystery Block","Rocket","Super Rocket","Grenade","Bouncy Bomb Block","Dim Lamp On","Dim Lamp Off","Block of Quartz","Chiseled Block of Quartz","Block of Lapis Lazuli","Block of Emerald","Lapis Lazuli Ore","Emerald Ore","Yellowstone","Hay Bale","Beacon","Gravel","Mushroom Stem","Faction Protector","Green Stone","Dark Green Bricks","Green Bricks","ReservedBread BlockRotation1","ReservedBread BlockRotation2","ReservedBread BlockRotation3","Pumpkin_placeholder","free_placeholder","temp","Invisible Solid","Wither Rose","Azure Bluet","Lily of the Valley","Placeholder Packed Ice","Placeholder Blue Ice","Toxin Ball Block","Red Paintball Explosive","Orange Paintball Explosive","Yellow Paintball Explosive","Lime Paintball Explosive","Green Paintball Explosive","Light Blue Paintball Explosive","Cyan Paintball Explosive","Blue Paintball Explosive","Magenta Paintball Explosive","Pink Paintball Explosive","Purple Paintball Explosive","Brown Paintball Explosive","Light Gray Paintball Explosive","Gray Paintball Explosive","White Paintball Explosive","Black Paintball Explosive","Red Quick Paintball Explosive","Orange Quick Paintball Explosive","Yellow Quick Paintball Explosive","Lime Quick Paintball Explosive","Green Quick Paintball Explosive","Light Blue Quick Paintball Explosive","Cyan Quick Paintball Explosive","Blue Quick Paintball Explosive","Magenta Quick Paintball Explosive","Pink Quick Paintball Explosive","Purple Quick Paintball Explosive","Brown Quick Paintball Explosive","Light Gray Quick Paintball Explosive","Gray Quick Paintball Explosive","White Quick Paintball Explosive","Black Quick Paintball Explosive","Red Seeking Paintball Explosive","Orange Seeking Paintball Explosive","Yellow Seeking Paintball Explosive","Lime Seeking Paintball Explosive","Green Seeking Paintball Explosive","Light Blue Seeking Paintball Explosive","Cyan Seeking Paintball Explosive","Blue Seeking Paintball Explosive","Magenta Seeking Paintball Explosive","Pink Seeking Paintball Explosive","Purple Seeking Paintball Explosive","Brown Seeking Paintball Explosive","Light Gray Seeking Paintball Explosive","Gray Seeking Paintball Explosive","White Seeking Paintball Explosive","Black Seeking Paintball Explosive","Red Sticky Paintball Explosive","Orange Sticky Paintball Explosive","Yellow Sticky Paintball Explosive","Lime Sticky Paintball Explosive","Green Sticky Paintball Explosive","Light Blue Sticky Paintball Explosive","Cyan Sticky Paintball Explosive","Blue Sticky Paintball Explosive","Magenta Sticky Paintball Explosive","Pink Sticky Paintball Explosive","Purple Sticky Paintball Explosive","Brown Sticky Paintball Explosive","Light Gray Sticky Paintball Explosive","Gray Sticky Paintball Explosive","White Sticky Paintball Explosive","Black Sticky Paintball Explosive","Red Strongbed","Orange Strongbed","Yellow Strongbed","Lime Strongbed","Green Strongbed","Light Blue Strongbed","Cyan Strongbed","Blue Strongbed","Magenta Strongbed","Pink Strongbed","Purple Strongbed","Brown Strongbed","Light Gray Strongbed","Gray Strongbed","White Strongbed","Black Strongbed","Toxin Ball","Timed Spike Bomb Block","Ice Bridge","Red Balloon","Orange Balloon","Yellow Balloon","Lime Balloon","Green Balloon","Light Blue Balloon","Cyan Balloon","Blue Balloon","Magenta Balloon","Pink Balloon","Purple Balloon","Brown Balloon","Light Gray Balloon","Gray Balloon","White Balloon","Black Balloon","Red Popup Tower","Orange Popup Tower","Yellow Popup Tower","Lime Popup Tower","Green Popup Tower","Light Blue Popup Tower","Cyan Popup Tower","Blue Popup Tower","Magenta Popup Tower","Pink Popup Tower","Purple Popup Tower","Brown Popup Tower","Light Gray Popup Tower","Gray Popup Tower","White Popup Tower","Black Popup Tower","Red Paintball Explosive Item","Orange Paintball Explosive Item","Yellow Paintball Explosive Item","Lime Paintball Explosive Item","Green Paintball Explosive Item","Light Blue Paintball Explosive Item","Cyan Paintball Explosive Item","Blue Paintball Explosive Item","Magenta Paintball Explosive Item","Pink Paintball Explosive Item","Purple Paintball Explosive Item","Brown Paintball Explosive Item","Light Gray Paintball Explosive Item","Gray Paintball Explosive Item","White Paintball Explosive Item","Black Paintball Explosive Item","Red Quick Paintball Explosive Item","Orange Quick Paintball Explosive Item","Yellow Quick Paintball Explosive Item","Lime Quick Paintball Explosive Item","Green Quick Paintball Explosive Item","Light Blue Quick Paintball Explosive Item","Cyan Quick Paintball Explosive Item","Blue Quick Paintball Explosive Item","Magenta Quick Paintball Explosive Item","Pink Quick Paintball Explosive Item","Purple Quick Paintball Explosive Item","Brown Quick Paintball Explosive Item","Light Gray Quick Paintball Explosive Item","Gray Quick Paintball Explosive Item","White Quick Paintball Explosive Item","Black Quick Paintball Explosive Item","Red Sticky Paintball Explosive Item","Orange Sticky Paintball Explosive Item","Yellow Sticky Paintball Explosive Item","Lime Sticky Paintball Explosive Item","Green Sticky Paintball Explosive Item","Light Blue Sticky Paintball Explosive Item","Cyan Sticky Paintball Explosive Item","Blue Sticky Paintball Explosive Item","Magenta Sticky Paintball Explosive Item","Pink Sticky Paintball Explosive Item","Purple Sticky Paintball Explosive Item","Brown Sticky Paintball Explosive Item","Light Gray Sticky Paintball Explosive Item","Gray Sticky Paintball Explosive Item","White Sticky Paintball Explosive Item","Black Sticky Paintball Explosive Item","Red Seeking Paintball Explosive Item","Orange Seeking Paintball Explosive Item","Yellow Seeking Paintball Explosive Item","Lime Seeking Paintball Explosive Item","Green Seeking Paintball Explosive Item","Light Blue Seeking Paintball Explosive Item","Cyan Seeking Paintball Explosive Item","Blue Seeking Paintball Explosive Item","Magenta Seeking Paintball Explosive Item","Pink Seeking Paintball Explosive Item","Purple Seeking Paintball Explosive Item","Brown Seeking Paintball Explosive Item","Light Gray Seeking Paintball Explosive Item","Gray Seeking Paintball Explosive Item","White Seeking Paintball Explosive Item","Black Seeking Paintball Explosive Item"] 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","Red Paintball Gun","Orange Paintball Gun","Yellow Paintball Gun","Lime Paintball Gun","Green Paintball Gun","Light Blue Paintball Gun","Cyan Paintball Gun","Blue Paintball Gun","Magenta Paintball Gun","Pink Paintball Gun","Purple Paintball Gun","Brown Paintball Gun","Light Gray Paintball Gun","Gray Paintball Gun","White Paintball Gun","Black Paintball Gun","Red Heavy Paintball Gun","Orange Heavy Paintball Gun","Yellow Heavy Paintball Gun","Lime Heavy Paintball Gun","Green Heavy Paintball Gun","Light Blue Heavy Paintball Gun","Cyan Heavy Paintball Gun","Blue Heavy Paintball Gun","Magenta Heavy Paintball Gun","Pink Heavy Paintball Gun","Purple Heavy Paintball Gun","Brown Heavy Paintball Gun","Light Gray Heavy Paintball Gun","Gray Heavy Paintball Gun","White Heavy Paintball Gun","Black Heavy Paintball Gun","Red Paint Bow","Orange Paint Bow","Yellow Paint Bow","Lime Paint Bow","Green Paint Bow","Light Blue Paint Bow","Cyan Paint Bow","Blue Paint Bow","Magenta Paint Bow","Pink Paint Bow","Purple Paint Bow","Brown Paint Bow","Light Gray Paint Bow","Gray Paint Bow","White Paint Bow","Black Paint Bow","One Shot Pistol"] for(x=0;x<stackableItems.length;x++) {api.editItemCraftingRecipes(myId, stackableItems[x], [{requires:[{items:["Gold Coin"],amt: 0}], produces: 1, station:"Artisan Bench"}])} for(x=0;x<unstackableItems.length;x++) {api.editItemCraftingRecipes(myId, unstackableItems[x], [{requires:[{items:["Gold Coin"],amt: 0}], produces: 1, station:"Artisan Bench"}])}
消息类
这个对服务器的出生点升级较有帮助…
右上方消息
个人认为这个最好看
基本结构:
api.sendTopRightHelper(myId, "bolt", "#", {duration: 10, width: 300, height: 80, color: "rgb(255, 200, 0)", iconSizeMult: 3, textAndIconColor:"white", fontSize: "16px"})
#处可以自行修改文字,duration决定显示时间单位为秒,width、height决定大小,color决定图表的背景色,iconSizeMult决定图表大小,fontSize决定字体大小
4、30更新:添加了textAndIconColor参数
图标来自font awesome。
——冬梅
冬梅提供——屑屑(气泡音)
飞~~~~~的文字
肯定跟开枪的时候那一串飞~~~的数字是一起的啊
基本结构:
api.sendFlyingMiddleMessage(myId,["#"],10 )
#处填文字,后面的10也可以修改,数值越小飞得越远
公开消息
这种一般是所有人都能看到的消息,适合通知4
还是基本结构:
api.broadcastMessage("%", { color: "&" })
%处填文字,&处填颜色5
个人消息
这种消息只有点击发送的玩家能看到
api.sendMessage(myId,"#",{color:"&"})
#处为文字,&处为颜色
粒子效果
比较复杂,我也记不住鹅鹅鹅
不过!还是可以玩的 反正大家应该都是直接复制代码的…
烟花
哇偶~~~~~~~~~
范例请展开~
coding_test6的代码:
let [x, y, z] = thisPos pos_name="pos"+x+"_"+y+"_"+z try{ rate_limiting_map } catch { rate_limiting_map={}; } if(rate_limiting_map[pos_name]===undefined){rate_limiting_map[pos_name]=0;} if(api.now()-rate_limiting_map[pos_name]<1000*10) { err="DONT SPAM AND MAKE US ALL LAG BRO JUST WAIT!"; api.sendMessage(myId, err, {color: "red"}); throw err; } rate_limiting_map[pos_name]=api.now(); y += 1 api.playParticleEffect({ dir1: [-1, -1, -1], dir2: [1, 1, 1], pos1: [x, y, z], pos2: [x + 1, y + 1, z + 1], texture: "bubble", minLifeTime: 2, maxLifeTime: 6, minEmitPower: 10, maxEmitPower: 10, minSize: 0.15, maxSize: 0.15, manualEmitCount: 500, gravity: [0, 0, 0], colorGradients: [ { timeFraction: 0, minColor: [128, 128, 128, 1], maxColor: [128, 128, 128, 1], }, ], velocityGradients: [ { timeFraction: 0, factor: 1, factor2: 1, }, ], blendMode: 1, })
let [x, y, z] = thisPos pos_name="pos"+x+"_"+y+"_"+z try{ rate_limiting_map } catch { rate_limiting_map={}; } if(rate_limiting_map[pos_name]===undefined){rate_limiting_map[pos_name]=0;} if(api.now()-rate_limiting_map[pos_name]<1000*10) { err="DONT SPAM AND MAKE US ALL LAG BRO JUST WAIT!"; api.sendMessage(myId, err, {color: "red"}); throw err; } rate_limiting_map[pos_name]=api.now(); y += 1 api.playParticleEffect({ dir1: [-1, -1, -1], dir2: [1, 1, 1], pos1: [x, y, z], pos2: [x + 1, y + 1, z + 1], texture: "bubble", minLifeTime: 2, maxLifeTime: 6, minEmitPower: 10, maxEmitPower: 10, minSize: 0.15, maxSize: 0.15, manualEmitCount: 500, gravity: [0, 0, 0], colorGradients: [ { timeFraction: 0, minColor: [128, 128, 128, 1], maxColor: [128, 128, 128, 1], }, ], velocityGradients: [ { timeFraction: 0, factor: 1, factor2: 1, }, ], blendMode: 1, })
以上两个需一起使用
这个是啥,我也不知道,但是豪堪啊
let [x, y, z] = thisPos pos_name="pos"+x+"_"+y+"_"+z try{ rate_limiting_map } catch { rate_limiting_map={}; } if(rate_limiting_map[pos_name]===undefined){rate_limiting_map[pos_name]=0;} if(api.now()-rate_limiting_map[pos_name]<1000*40) { err="You need to wait for some time after pressing it for first time"; api.sendMessage(myId, err, {color: "red"}); throw err; } rate_limiting_map[pos_name]=api.now(); y += 1 api.playParticleEffect({ dir1: [-1, -1, -1], dir2: [1, 1, 1], pos1: [x-0.5, y-1, z-0.5], pos2: [x + 0.5, y + 1, z + 0.5], texture: "glint", minLifeTime: 40, maxLifeTime: 50, minEmitPower: 2, maxEmitPower: 5, minSize: 0.25, maxSize: 0.35, manualEmitCount: 62*50, gravity: [0, 0, 0], colorGradients: [ { timeFraction: 0, minColor: [125, 245, 255, 0.1], maxColor: [255, 165, 255, 1], }, ], velocityGradients: [ { timeFraction: 3, factor: 0.1, factor2: 0.09, }, ], blendMode: 1, })
某怪物pvp服的代码:
let [x, y, z] = thisPos y += 1 api.playParticleEffect({ dir1: [-1, -1, -1], dir2: [1, 1, 1], pos1: [x, y, z], pos2: [x + 1, y + 200, z + 1], texture: "glint", minLifeTime: 2, maxLifeTime: 2, minEmitPower: 0, maxEmitPower: 0, minSize: 0.5, maxSize: 0.5, manualEmitCount: 100, gravity: [0, 0, 0], colorGradients: [ { timeFraction: 0, minColor: [150, 60, 60, 1], maxColor: [255, 200, 200, 1], }, ], velocityGradients: [ { timeFraction: 0, factor: 1, factor2: 1, }, ], blendMode: 1, })
这个感觉最好看且最实用
let [x, y, z] = thisPos y += 1 api.playParticleEffect({ dir1: [-1, -1, -1], dir2: [1, 1, 1], pos1: [x, 200, z], pos2: [x + 1, y + 200, z + 1], texture: "glint", minLifeTime: 5, maxLifeTime: 5, minEmitPower: 10, maxEmitPower: 10, minSize: 0.7, maxSize: 0.7, manualEmitCount: 10000, gravity: [0, 0, 0], colorGradients: [ { timeFraction: 0, minColor: [150, 60, 60, 1], maxColor: [255, 200, 200, 1], }, ], velocityGradients: [ { timeFraction: 0, factor: 1, factor2: 1, }, ], blendMode: 1, })
状态
有点类似之前的姿势,但是它们是有实际作用的
api.setPlayerPhysicsState(myId,{type:#,tier:&})
#为大类,&为小类
各种数据:
- type:0,tier:任意;普通站立
- type:1,tier:1坐普通船;
- type:1,tier:2坐黑曜石船
- type:2,tier:我也不知道有多少个;各种颜色的气球的floating,可以漂浮
- type:3,tier:0;rush racing中一开始待定的那个,驾驶姿势,但是无法移动
- type:3,tier:1;rush racing中开卡丁车的状态,视角会强制看向一个方向,不能跳,速度极快
如在type中填入超过3的数字会报错,在tier中填超过限度的数字会以最后一种状态为准
绑定物品
基本格式:
api.updateEntityNodeMeshAttachment(myId, "TorsoNode", "BloxdBlock", {blockName:"@", size:#, meshOffset:[0, 0, 0]}, [0, 0, 0], [0, 0, 0])
目前的格式我只知道@处填物品/方块名,#处填大小,其他的就得去问snowdi了
服里还提供了一些范例:
api.updateEntityNodeMeshAttachment(myId, "TorsoNode", "BloxdBlock", {blockName:"INTERNAL_MESH_Kart", size:8, meshOffset:[0, 0, 0]}, [0, -1, 0], [0, 3.15, 0])//开卡丁车
api.updateEntityNodeMeshAttachment(myId, "TorsoNode", "BloxdBlock", {blockName:"Updraft", size:0.8, meshOffset:[0, 0, 0]}, [-0.6, -0.8, 0], [1.65, 0, 0])//将updraft贴在脚上
更多代码就得去bloxd命令方块网址上面有了
感谢能看到这里,希望这些能对你的服务器建设起到帮助,我也就知足了
当然是Silverpiston___费劲去复制粘贴代码啦~~
Silverpiston___:石粒!!!
给个+1评分吧,让这篇文章被更多人看到,同时也让更多人知道它们、知道这些代码不普通的存在
最好还是和肥肠实用的指令合并罢
以及违禁方块貌似可以用setItem直接获得?
当然想合并,但是那玩意不知道怎么回事不能编辑了
豪,我试试
——————还是我设备的问题?
好吧又可以了,但是不想弄了怎么办?
要不我帮你?如果你同意我就试试
算了吧不想弄了
还有其他的么
会不断更新哒
✌
天哪卡到点了
有没有那种可以操控生物指定掉落物品类型的求解答
这个还在努力学习~
不过可以翻官方文档里的mob settings
hi
有沒有能調整怪物血量跟攻擊的指令:) 想學
帖文预览:
关闭预览