如题,scripts路径下的其他zs文件都正常,就Vanilla.zs不能加载
复制代码另外,log里面也有报错:
复制代码
- //Crafting Tables
- recipes.addShapeless(<minecraft:coal:1>, [<minecraft:fire_charge>,<ore:logWood>]);
- recipes.remove(<minecraft:stone_sword>);
- recipes.addShaped(<minecraft:stone_sword>, [[null, <minecraft:stone>, null],
- [null, <minecraft:stone>, null],
- [null, <minecraft:stick>, null]]);
- recipes.remove(<minecraft:stone_pickaxe>);
- recipes.addShaped(<minecraft:stone_pickaxe>, [[<minecraft:stone>, <minecraft:stone>, <minecraft:stone>],
- [null, <minecraft:stick>, null],
- [null, <minecraft:stick>, null]]);
- recipes.remove(<minecraft:stone_axe>);
- recipes.addShaped(<minecraft:stone_axe>, [[<minecraft:stone>, <minecraft:stone>, null],
- [<minecraft:stone>, <minecraft:stick>, null],
- [null, <minecraft:stick>, null]]);
- recipes.addShaped(<minecraft:stone_axe>, [[null, <minecraft:stone>, <minecraft:stone>],
- [null, <minecraft:stick>, <minecraft:stone>],
- [null, <minecraft:stick>, null]]);
- recipes.remove(<minecraft:stone_hoe>);
- recipes.addShaped(<minecraft:stone_hoe>, [[<minecraft:stone>, <minecraft:stone>, null],
- [null, <minecraft:stick>, null],
- [null, <minecraft:stick>, null]]);
- recipes.addShaped(<minecraft:stone_hoe>, [[null, <minecraft:stone>, <minecraft:stone>],
- [null, <minecraft:stick>, null],
- [null, <minecraft:stick>, null]]);
- recipes.remove(<minecraft:stone_shovel>);
- recipes.addShaped(<minecraft:stone_shovel>, [[null, <minecraft:stone>, null],
- [null, <minecraft:stick>, null],
- [null, <minecraft:stick>, null]]);
- recipes.remove(<minecraft:furnace>);
- recipes.addShaped(<minecraft:furnace>, [[<minecraft:cobblestone>, <minecraft:cobblestone>, <minecraft:cobblestone>],
- [<minecraft:cobblestone>, <minecraft:coal:1>, <minecraft:cobblestone>],
- [<minecraft:cobblestone>, <minecraft:cobblestone>, <minecraft:cobblestone>]]);
- recipes.remove(<minecraft:glowstone>);
- recipes.addShapeless(<minecraft:glowstone>,
- [<minecraft:glowstone_dust>,<minecraft:glowstone_dust>,<minecraft:glowstone_dust>,
- <minecraft:glowstone_dust>,<minecraft:glowstone_dust>,<minecraft:glowstone_dust>,
- <minecraft:glowstone_dust>,<minecraft:glowstone_dust>,<minecraft:glowstone_dust>]);
- recipes.remove(<minecraft:blaze_powder>, [<minecraft:blaze_rod>]);
- recipes.addShapeless(<minecraft:blaze_powder>, [<minecraft:blaze_rod>]);
- recipes.remove(<minecraft:brewing_stand>);
- recipes.addShaped(<minecraft:brewing_stand>, [[<minecraft:obsidian>, <minecraft:blaze_rod>, <minecraft:obsidian>],
- [null, <minecraft:blaze_rod>, null],
- [<ore:stone>, <ore:stone>, <ore:stone>]]);
- recipes.remove(<minecraft:beacon>);
- recipes.addShaped(<minecraft:beacon>, [[<ore:blockGlassColorless>, <minecraft:diamond>, <ore:blockGlassColorless>],
- [<minecraft:diamond>, <minecraft:nether_star>, <minecraft:diamond>],
- [<minecraft:obsidian>, <minecraft:obsidian>, <minecraft:obsidian>]]);
- recipes.remove(<minecraft:ender_eye>);
- recipes.addShapeless(<minecraft:ender_eye>*3, [<minecraft:ender_pearl>,<minecraft:blaze_powder>,<abyssalcraft:transmutationgem>]);
- //Furnaces
- furnace.remove(<minecraft:coal:1>);
- furnace.setFuel(<minecraft:fire_charge>, 3200);
- [00:36:03] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: Vanilla.zs:46 > Cannot cast ZenTypeNative: crafttweaker.item.IItemStack to ZenTypeNative: crafttweaker.data.IData
- [00:36:03] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: [crafttweaker]: Error executing {[0:crafttweaker]: Vanilla.zs}: Bad type on operand stack\nException Details:\n Location:\n Vanilla.__script__()V @1283: invokestatic\n Reason:\n Type integer (current frame, stack[2]) is not assignable to '[Lcrafttweaker/api/data/IData;'\n Current Frame:\n bci: @1283\n flags: { }\n
暗夜awa 发表于 2021-8-10 08:04
提示你46行类搞错了
看看文件是不是发错了
我看你这文件里面没有IData类
没发错,。
本帖最后由 qq857945782 于 2021-8-10 09:31 编辑
你46行就是有问题吧recipes.remove(<minecraft:blaze_powder>, [<minecraft:blaze_rod>]);
应该是recipes.removeShapeless(<minecraft:blaze_powder>, <minecraft:blaze_rod>);
你46行就是有问题吧recipes.remove(<minecraft:blaze_powder>, [<minecraft:blaze_rod>]);
应该是recipes.removeShapeless(<minecraft:blaze_powder>, <minecraft:blaze_rod>);
qq857945782 发表于 2021-8-10 09:27
你46行就是有问题吧recipes.remove(, []);
不知道你想写的是什么
所以有什么问题吗
MashKJo 发表于 2021-8-10 09:28
所以有什么问题吗
https://docs.blamejared.com/1.12 ... pes_Crafting_Table/
只有 recipes.remove(output, NBTMatch);
recipes.removeShaped(output, inputs);
recipes.removeShapeless(output, inputs, wildcard); 三种