本帖最后由 Milky_way_boy 于 2022-11-24 14:32 编辑
目的:创建物品一重压缩泥土,二重压缩泥土,三重压缩泥土和修改原木硬度
脚本(zhu_xian2):
复制代码报错内容:
复制代码大致意思应该是找不到这个方块,也就是没创建成功,那么该怎么正确注册请问大佬们
目的:创建物品一重压缩泥土,二重压缩泥土,三重压缩泥土和修改原木硬度
脚本(zhu_xian2):
- #loader contenttweaker
- import crafttweaker.item.IItemStack;
- import mods.ltt.LootTable;
- import loottweaker.LootTweaker;
- import mods.contenttweaker.VanillaFactory;//专用
- import mods.contenttweaker.Item;
- import mods.contenttweaker.Block;
- import mods.contenttweaker.Fluid;
- import mods.contenttweaker.CreativeTab;
- //尝试创建压缩泥土
- val dc1 as Item = VanillaFactory.createItem("dirt_c1");
- var dc1 as Block = VanillaFactory.createBlock("dirt_c1",<hdxk:dirt_c1>);
- dc1.blockHardness = 4.5;
- dc1.blockResistance = 4.5;
- dc1.dropHandler = <dirt_c1>;
- dc1.toolLevel = 1;
- dc1.toolClass = "shovel";
- dc1.register();
- <hdxk:dirt_c1>.displayName = "一重压缩泥土";
- //二重压缩泥土
- val dc2 as Item = VanillaFactory.createItem("dirt_c2");
- var dc2 as Block = VanillaFactory.createBlock("dirt_c2",<hdxk:dirt_c2>);
- dc2.blockHardness = 10;
- dc2.blockResistance = 10;
- dc2.dropHandler = <dirt_c2>;
- dc2.toolLevel = 2;
- dc2.toolClass = "shovel";
- dc2.register();
- <hdxk:dirt_c2>.displayName = "二重压缩泥土";
- //三重压缩泥土
- val dc3 as Item = VanillaFactory.createItem("dirt_c3");
- var dc3 as Block = VanillaFactory.createBlock("dirt_c3",<hdxk:dirt_c3>);
- dc3.blockHardness = 30;
- dc3.blockResistance = 30;
- dc3.dropHandler = <dirt_c3>;
- dc3.toolLevel = 3;
- dc3.toolClass = "shovel";
- dc3.register();
- <hdxk:dirt_c3>.displayName = "三重压缩泥土";
- //合成配方
- recipes.addShaped(<hdxk:dirt_c1>,
- [[<ore:dirt>, <ore:dirt>, <ore:dirt>],
- [<ore:dirt>, <ore:dirt>, <ore:dirt>],
- [<ore:dirt>,<ore:dirt>, <ore:dirt>]]);
- recipes.addShaped(<hdxk:dirt_c2>,
- [[<hdxk:dirt_c2>, <hdxk:dirt_c2>, <hdxk:dirt_c2>],
- [<hdxk:dirt_c2>, <hdxk:dirt_c2>, <hdxk:dirt_c2>],
- [<hdxk:dirt_c2>,<hdxk:dirt_c2>, <hdxk:dirt_c2>]]);
- recipes.addShaped(<hdxk:dirt_c3>,
- [[<hdxk:dirt_c3>, <hdxk:dirt_c3>, <hdxk:dirt_c3>],
- [<hdxk:dirt_c3>, <hdxk:dirt_c3>, <hdxk:dirt_c3>],
- [<hdxk:dirt_c3>,<hdxk:dirt_c3>, <hdxk:dirt_c3>]]);
- //修改<ore:logWood>硬度
- <ore:logWood>.blockHardness = 10;
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:12: Could not resolve <hdxk : dirt_c1>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:15: Could not resolve <dirt_c1>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:19: Could not resolve <hdxk : dirt_c1>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:22: Could not resolve <hdxk : dirt_c2>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:25: Could not resolve <dirt_c2>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:29: Could not resolve <hdxk : dirt_c2>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:32: Could not resolve <hdxk : dirt_c3>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:35: Could not resolve <dirt_c3>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:39: Could not resolve <hdxk : dirt_c3>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:41: Could not resolve <hdxk : dirt_c1>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:45: Could not resolve <hdxk : dirt_c2>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:46: Could not resolve <hdxk : dirt_c2>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:46: Could not resolve <hdxk : dirt_c2>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:46: Could not resolve <hdxk : dirt_c2>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:47: Could not resolve <hdxk : dirt_c2>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:47: Could not resolve <hdxk : dirt_c2>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:47: Could not resolve <hdxk : dirt_c2>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:48: Could not resolve <hdxk : dirt_c2>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:48: Could not resolve <hdxk : dirt_c2>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:48: Could not resolve <hdxk : dirt_c2>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:49: Could not resolve <hdxk : dirt_c3>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:50: Could not resolve <hdxk : dirt_c3>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:50: Could not resolve <hdxk : dirt_c3>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:50: Could not resolve <hdxk : dirt_c3>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:51: Could not resolve <hdxk : dirt_c3>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:51: Could not resolve <hdxk : dirt_c3>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:51: Could not resolve <hdxk : dirt_c3>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:52: Could not resolve <hdxk : dirt_c3>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:52: Could not resolve <hdxk : dirt_c3>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:52: Could not resolve <hdxk : dirt_c3>
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:12 > Value already defined in this scope: dc1
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:13 > No such member in mods.contenttweaker.Item: blockHardness
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:13 > not a valid lvalue
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:14 > No such member in mods.contenttweaker.Item: blockResistance
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:14 > not a valid lvalue
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:15 > No such member in mods.contenttweaker.Item: dropHandler
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:15 > not a valid lvalue
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:19 > not a valid lvalue
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:22 > Value already defined in this scope: dc2
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:23 > No such member in mods.contenttweaker.Item: blockHardness
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:23 > not a valid lvalue
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:24 > No such member in mods.contenttweaker.Item: blockResistance
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:24 > not a valid lvalue
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:25 > No such member in mods.contenttweaker.Item: dropHandler
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:25 > not a valid lvalue
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:29 > not a valid lvalue
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:32 > Value already defined in this scope: dc3
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:33 > No such member in mods.contenttweaker.Item: blockHardness
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:33 > not a valid lvalue
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:34 > No such member in mods.contenttweaker.Item: blockResistance
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:34 > not a valid lvalue
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:35 > No such member in mods.contenttweaker.Item: dropHandler
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:35 > not a valid lvalue
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:39 > not a valid lvalue
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:54 > No such member in crafttweaker.oredict.IOreDictEntry: blockHardness
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:54 > not a valid lvalue
- [20:00:17] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: [contenttweaker]: Error executing {[0:contenttweaker]: zhu_xian2.zs}: null, caused by java.lang.NullPointerException
本人学识有限 但应该是这样的:
WalkThrough - CraftTweaker Documentation (blamejared.com) cot的文档 在章节"FirstBlock"有示范
我不太会zs 理论上应该是这样的 照着文档改的
——————————分割线————————
如果不是这个问题 那也许是vanilla factory的问题 就是11,12,21,22,31,32行的问题
详见Vanilla Factory - CraftTweaker Documentation (blamejared.com)的create item和create block章节
这个我不太懂 但楼主大概应该写的没错
WalkThrough - CraftTweaker Documentation (blamejared.com) cot的文档 在章节"FirstBlock"有示范
我不太会zs 理论上应该是这样的 照着文档改的
——————————分割线————————
如果不是这个问题 那也许是vanilla factory的问题 就是11,12,21,22,31,32行的问题
详见Vanilla Factory - CraftTweaker Documentation (blamejared.com)的create item和create block章节
这个我不太懂 但楼主大概应该写的没错
为什么你要定义两个不同的量却使用同一个变量名?不知道你能不能分清楚,但是显然cot已经分不清楚你写的名字应该指代哪个变量了
VanillaFactory.createBlock("dirt_c1",<hdxk:dirt_c1>)这里……如果你想定义一个新的BlockMaterial那应该提前写,而且名字格式也不对
多数时候也没必要定义一个新的BlockMaterial,随便用一个现成的就是
还有,dropHandler应该是一个函数而不是一个物品,而且如果你想让方块被破坏时掉落自身,那就应该直接不写dropHandler,也不需要定义新物品
比如第一个方块就该像这样写复制代码至于复制代码应该写在另一个脚本里,另一个不以#loader contenttweaker开头的脚本里,当然你也可以不写在脚本里而是写在资源包里
VanillaFactory.createBlock("dirt_c1",<hdxk:dirt_c1>)这里……如果你想定义一个新的BlockMaterial那应该提前写,而且名字格式也不对
多数时候也没必要定义一个新的BlockMaterial,随便用一个现成的就是
还有,dropHandler应该是一个函数而不是一个物品,而且如果你想让方块被破坏时掉落自身,那就应该直接不写dropHandler,也不需要定义新物品
比如第一个方块就该像这样写
- var dc1 as Block = VanillaFactory.createBlock("dirt_c1", <blockmaterial:clay>);
- dc1.blockHardness = 4.5;
- dc1.blockResistance = 4.5;
- dc1.toolLevel = 1;
- dc1.toolClass = "shovel";
- dc1.register();
- <contenttweaker:dirt_c1>.displayName = "一重压缩泥土";
无敌三脚猫 发表于 2022-11-24 18:33
为什么你要定义两个不同的量却使用同一个变量名?不知道你能不能分清楚,但是显然cot已经分不清楚你写的名 ...
另一个脚本需要设置加载顺序之类的吗?如果需要怎么设置
谢谢,我先去试一下
把代码部分用代码格式就行,但还是报错,这次根本不明白
现在的的报错是什么情况,我进游戏看了物品还是
- #loader contenttweaker
- import crafttweaker.item.IItemStack;
- import mods.ltt.LootTable;
- import loottweaker.LootTweaker;
- import mods.contenttweaker.VanillaFactory;//专用
- import mods.contenttweaker.Item;
- import mods.contenttweaker.Block;
- import mods.contenttweaker.Fluid;
- import mods.contenttweaker.CreativeTab;
- //尝试创建压缩泥土
- var dc1 as Block = VanillaFactory.createBlock("dirt_c1", <blockmaterial:dirt_c1>);
- dc1.blockHardness = 4.5;
- dc1.blockResistance = 4.5;
- dc1.toolLevel = 1;
- dc1.toolClass = "shovel";
- dc1.register();
- //二重压缩泥土
- var dc2 as Block = VanillaFactory.createBlock("dirt_c2", <blockmaterial:dirt_c2>);
- dc2.blockHardness = 10;
- dc2.blockResistance = 10;
- dc2.toolLevel = 2;
- dc2.toolClass = "shovel";
- dc2.register();
- //三重压缩泥土
- var dc3 as Block = VanillaFactory.createBlock("dirt_c3", <blockmaterial:dirt_c3>);
- dc3.blockHardness = 30;
- dc3.blockResistance = 30;
- dc3.toolLevel = 3;
- dc3.toolClass = "shovel";
- dc3.register();
- //修改<ore:logWood>硬度
- <ore:logWood>.blockHardness = 10;
- 脚本zhu_xian1(从第66行开始):
- //重命名压缩泥土
- <blockmaterial:dirt_c1>.displayName = "一重简易压缩泥土";
- <blockmaterial:dirt_c1>.addTooltip("4块泥土");
- <blockmaterial:dirt_c2>.displayName = "二重简易压缩泥土";
- <blockmaterial:dirt_c2>.addTooltip("16块泥土");
- <blockmaterial:dirt_c3>.displayName = "三重简易压缩泥土";
- <blockmaterial:dirt_c3>.addTooltip("64块泥土");
- //合成配方(压缩泥土)
- recipes.addShaped(<blockmaterial:dirt_c1>,
- [[<ore:dirt>, <ore:dirt>, <ore:dirt>],
- [<ore:dirt>, <ore:dirt>, <ore:dirt>],
- [<ore:dirt>,<ore:dirt>, <ore:dirt>]]);
- recipes.addShaped(<blockmaterial:dirt_c2>,
- [[<blockmaterial:dirt_c1>,<blockmaterial:dirt_c1>, null],
- [<blockmaterial:dirt_c1>,<blockmaterial:dirt_c1>, null],
- [null,null,null]]);
- recipes.addShaped(<blockmaterial:dirt_c3>,
- [[<blockmaterial:dirt_c2>,<blockmaterial:dirt_c2>, null],
- [<blockmaterial:dirt_c2>,<blockmaterial:dirt_c2>, null],
- [null,null,null]]);
- 报错内容:
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:32 > No such member in crafttweaker.oredict.IOreDictEntry: blockHardness
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian2.zs:32 > not a valid lvalue
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: Could not find BlockMaterial for name: dirt_c1
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: [contenttweaker]: Error executing {[0:contenttweaker]: zhu_xian2.zs}: null, caused by java.lang.NullPointerException
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian1.zs:63 > a method available but §4none§r matches the parameters (ZenTypeNative: crafttweaker.item.IItemStack)\nThis is §ousually§r an error in your script, not in the mod\nmirror(§rZenTypeNative: crafttweaker.oredict.IOreDictEntry)
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian1.zs:67 > No such member in mods.contenttweaker.BlockMaterial: displayName
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian1.zs:67 > not a valid lvalue
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian1.zs:68 > No such member in mods.contenttweaker.BlockMaterial: addTooltip
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian1.zs:69 > No such member in mods.contenttweaker.BlockMaterial: displayName
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian1.zs:69 > not a valid lvalue
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian1.zs:70 > No such member in mods.contenttweaker.BlockMaterial: addTooltip
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian1.zs:71 > No such member in mods.contenttweaker.BlockMaterial: displayName
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian1.zs:71 > not a valid lvalue
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian1.zs:72 > No such member in mods.contenttweaker.BlockMaterial: addTooltip
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian1.zs:74 > 2 methods available but §4none§r matches the parameters (ZenTypeNative: mods.contenttweaker.BlockMaterial, ZenTypeNative: crafttweaker.item.IIngredient[][])\nThis is §ousually§r an error in your script, not in the mod\naddShaped(§rZenTypeNative: crafttweaker.item.IItemStack, §rZenTypeNative: crafttweaker.item.IIngredient[][], §aOptional §rZenTypeNative: crafttweaker.recipes.IRecipeFunction, §aOptional §rZenTypeNative: crafttweaker.recipes.IRecipeAction)\naddShaped(§rstring, §rZenTypeNative: crafttweaker.item.IItemStack, §rZenTypeNative: crafttweaker.item.IIngredient[][], §aOptional §rZenTypeNative: crafttweaker.recipes.IRecipeFunction, §aOptional §rZenTypeNative: crafttweaker.recipes.IRecipeAction)
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian1.zs:78 > 2 methods available but §4none§r matches the parameters (ZenTypeNative: mods.contenttweaker.BlockMaterial, ZenTypeNative: crafttweaker.item.IIngredient[][])\nThis is §ousually§r an error in your script, not in the mod\naddShaped(§rZenTypeNative: crafttweaker.item.IItemStack, §rZenTypeNative: crafttweaker.item.IIngredient[][], §aOptional §rZenTypeNative: crafttweaker.recipes.IRecipeFunction, §aOptional §rZenTypeNative: crafttweaker.recipes.IRecipeAction)\naddShaped(§rstring, §rZenTypeNative: crafttweaker.item.IItemStack, §rZenTypeNative: crafttweaker.item.IIngredient[][], §aOptional §rZenTypeNative: crafttweaker.recipes.IRecipeFunction, §aOptional §rZenTypeNative: crafttweaker.recipes.IRecipeAction)
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: zhu_xian1.zs:82 > 2 methods available but §4none§r matches the parameters (ZenTypeNative: mods.contenttweaker.BlockMaterial, ZenTypeNative: crafttweaker.item.IIngredient[][])\nThis is §ousually§r an error in your script, not in the mod\naddShaped(§rZenTypeNative: crafttweaker.item.IItemStack, §rZenTypeNative: crafttweaker.item.IIngredient[][], §aOptional §rZenTypeNative: crafttweaker.recipes.IRecipeFunction, §aOptional §rZenTypeNative: crafttweaker.recipes.IRecipeAction)\naddShaped(§rstring, §rZenTypeNative: crafttweaker.item.IItemStack, §rZenTypeNative: crafttweaker.item.IIngredient[][], §aOptional §rZenTypeNative: crafttweaker.recipes.IRecipeFunction, §aOptional §rZenTypeNative: crafttweaker.recipes.IRecipeAction)
- [07:57:00] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] §cERROR: [crafttweaker]: Error executing {[0:crafttweaker]: zhu_xian1.zs}: Bad type on operand stack\nException Details:\n Location:\n Zhu_xian1.__script__()V @1229: invokestatic\n Reason:\n Type 'stanhebben/zenscript/value/IAny' (current frame, stack[4]) is not assignable to 'java/lang/String'\n Current Frame:\n bci: @1229\n flags: { }\n locals: { }\n stack: { null, '[Lstanhebben/zenscript/value/IAny;', '[Lstanhebben/zenscript/value/IAny;', integer, 'stanhebben/zenscript/value/IAny' }\n Bytecode:\n 0x0000000: b200 0f12 1112 12b8 0018 03b9 001e 0300\n 0x0000010: b200 0f12 2012 12b8 0018 03b9 001e 0300\n 0x0000020: b200 0f12 2212 12b8 0018 03b9 001e 0300\n 0x0000030: b200 0f12 2412 12b8 0018 03b9 001e 0300\n 0x0000040: b200 0f12 1112 12b8 0018 1225 bd00 2759\n 0x0000050: 1212 1225 bd00 2959 1212 122b b800 3153\n 0x0000060: 5912 3212 34b8 0031 5359 1235 122b b800\n 0x0000070: 3153 5359 1232 1225 bd00 2959 1212 1234\n 0x0000080: b800 3153 5912 3201 5359 1235 1234 b800\n 0x0000090: 3153 5359 1235 1225 bd00 2959 1212 0153\n 0x00000a0: 5912 3201 5359 1235 0153 5301 01b9 0039\n 0x00000b0: 0500 b200 0f12 2012 12b8 0018 1225 bd00\n 0x00000c0: 2759 1212 1225 bd00 2959 1212 1234 b800\n 0x00000d0: 3153 5912 3201 5359 1235 1234 b800 3153\n 0x00000e0: 5359 1232 1225 bd00 2959 1212 122b b800\n 0x00000f0: 3153 5912 3212 34b8 0031 5359 1235 122b\n 0x0000100: b800 3153 5359 1235 1225 bd00 2959 1212\n 0x0000110: 1234 b800 3153 5912 3212 2bb8 0031 5359\n 0x0000120: 1235 1234 b800 3153 5301 01b9 0039 0500\n 0x0000130: b200 0f12 2212 12b8 0018 1225 bd00 2759\n 0x0000140: 1212 1225 bd00 2959 1212 1234 b800 3153\n 0x0000150: 5912 3212 34b8 0031 5359 1235 1234 b800\n 0x0000160: 3153 5359 1232 1225 bd00 2959 1212 1234\n 0x0000170: b800 3153 5912 3201 5359 1235 1234 b800\n 0x0000180: 3153 5359 1235 1225 bd00 2959 1212 1234\n 0x0000190: b800 3153 5912 3201 5359 1235 1234 b800\n 0x00001a0: 3153 5301 01b9 0039 0500 b200 0f12 2412\n 0x00001b0: 12b8 0018 1225 bd00 2759 1212 1225 bd00\n 0x00001c0: 2959 1212 122b b800 3153 5912 3201 5359\n 0x00001d0: 1235 122b b800 3153 5359 1232 1225 bd00\n 0x00001e0: 2959 1212 1234 b800 3153 5912 3201 5359\n 0x00001f0: 1235 1234 b800 3153 5359 1235 1225 bd00\n 0x0000200: 2959 1212 0153 5912 3201 5359 1235 0153\n 0x0000210: 5301 01b9 0039 0500 123b 1212 b800 1812\n 0x0000220: 3db9 0043 0200 b200 0f12 4512 12b8 0018\n 0x0000230: 03b9 001e 0300 b200 0f12 4712 12b8 0018\n 0x0000240: 03b9 001e 0300 b200 0f12 4912 12b8 0018\n 0x0000250: 03b9 001e 0300 b200 0f12 4b12 12b8 0018\n 0x0000260: 03b9 001e 0300 b200 0f12 4512 12b8 0018\n 0x0000270: 1225 bd00 2759 1212 1225 bd00 2959 1212\n 0x0000280: 124d 1212 b800 1853 5912 3212 1112 12b8\n 0x0000290: 0018 b900 5101 00b8 0057 5359 1235 124d\n 0x00002a0: 1212 b800 1853 5359 1232 1225 bd00 2959\n 0x00002b0: 1212 123b 1212 b800 1853 5912 3201 5359\n 0x00002c0: 1235 123b 1212 b800 1853 5359 1235 1225\n 0x00002d0: bd00 2959 1212 0153 5912 3201 5359 1235\n 0x00002e0: 0153 5301 01b9 0039 0500 b200 0f12 4712\n 0x00002f0: 12b8 0018 1225 bd00 2759 1212 1225 bd00\n 0x0000300: 2959 1212 123b 1212 b800 1853 5912 3201\n 0x0000310: 5359 1235 123b 1212 b800 1853 5359 1232\n 0x0000320: 1225 bd00 2959 1212 124d 1212 b800 1853\n 0x0000330: 5912 3212 2012 12b8 0018 b900 5101 00b8\n 0x0000340: 0057 5359 1235 124d 1212 b800 1853 5359\n 0x0000350: 1235 1225 bd00 2959 1212 123b 1212 b800\n 0x0000360: 1853 5912 3212 4d12 12b8 0018 5359 1235\n 0x0000370: 123b 1212 b800 1853 5301 01b9 0039 0500\n 0x0000380: b200 0f12 4912 12b8 0018 1225 bd00 2759\n 0x0000390: 1212 1225 bd00 2959 1212 123b 1212 b800\n 0x00003a0: 1853 5912 3212 2212 12b8 0018 b900 5101\n 0x00003b0: 00b8 0057 5359 1235 123b 1212 b800 1853\n 0x00003c0: 5359 1232 1225 bd00 2959 1212 124d 1212\n 0x00003d0: b800 1853 5912 3201 5359 1235 124d 1212\n 0x00003e0: b800 1853 5359 1235 1225 bd00 2959 1212\n 0x00003f0: 123b 1212 b800 1853 5912 3201 5359 1235\n 0x0000400: 123b 1212 b800 1853 5301 01b9 0039 0500\n 0x0000410: b200 0f12 4b12 12b8 0018 1225 bd00 2759\n 0x0000420: 1212 1225 bd00 2959 1212 124d 1212 b800\n 0x0000430: 1853 5912 3201 5359 1235 1224 1212 b800\n 0x0000440: 18b9 0051 0100 b800 5753 5359 1232 1225\n 0x0000450: bd00 2959 1212 123b 1212 b800 1853 5912\n 0x0000460: 3201 5359 1235 123b 1212 b800 1853 5359\n 0x0000470: 1235 1225 bd00 2959 1212 0153 5912 3201\n 0x0000480: 5359 1235 0153 5301 01b9 0039 0500 b200\n 0x0000490: 5b12 5d12 12b8 0018 125f 1212 b800 1814\n 0x00004a0: 0060 b900 6705 0012 69b8 0031 126b b800\n 0x00004b0: 31b9 0071 0200 0112 32bd 0073 5912 1212\n 0x00004c0: 7559 c700 0857 01a7 0006 b800 7bb8 0081\n 0x00004d0: 53b9 0085 0200 5701 1232 bd00 7359 1212\n 0x00004e0: 1287 59c7 0008 5701 a700 06b8 007b b800\n 0x00004f0: 8153 b900 8502 0057 0112 32bd 0073 5912\n 0x0000500: 1212 8959 c700 0857 01a7 0006 b800 7bb8\n 0x0000510: 0081 53b9 0085 0200 57b1 \n Stackmap Table:\n full_frame(@1226,{},{Null,Object[#139],Object[#139],Integer,Object[#141]})\n full_frame(@1229,{},{Null,Object[#139],Object[#139],Integer,Object[#115]})\n full_frame(@1259,{},{Null,Object[#139],Object[#139],Integer,Object[#141]})\n full_frame(@1262,{},{Null,Object[#139],Object[#139],Integer,Object[#115]})\n full_frame(@1292,{},{Null,Object[#139],Object[#139],Integer,Object[#141]})\n full_frame(@1295,{},{Null,Object[#139],Object[#139],Integer,Object[#115]})\n, caused by java.lang.VerifyError: Bad type on operand stack\nException Details:\n Location:\n Zhu_xian1.__script__()V @1229: invokestatic\n Reason:\n Type 'stanhebben/zenscript/value/IAny' (current frame, stack[4]) is not assignable to 'java/lang/String'\n Current Frame:\n bci: @1229\n flags: { }\n locals: { }\n stack: { null, '[Lstanhebben/zenscript/value/IAny;', '[Lstanhebben/zenscript/value/IAny;', integer, 'stanhebben/zenscript/value/IAny' }\n Bytecode:\n 0x0000000: b200 0f12 1112 12b8 0018 03b9 001e 0300\n 0x0000010: b200 0f12 2012 12b8 0018 03b9 001e 0300\n 0x0000020: b200 0f12 2212 12b8 0018 03b9 001e 0300\n 0x0000030: b200 0f12 2412 12b8 0018 03b9 001e 0300\n 0x0000040: b200 0f12 1112 12b8 0018 1225 bd00 2759\n 0x0000050: 1212 1225 bd00 2959 1212 122b b800 3153\n 0x0000060: 5912 3212 34b8 0031 5359 1235 122b b800\n 0x0000070: 3153 5359 1232 1225 bd00 2959 1212 1234\n 0x0000080: b800 3153 5912 3201 5359 1235 1234 b800\n 0x0000090: 3153 5359 1235 1225 bd00 2959 1212 0153\n 0x00000a0: 5912 3201 5359 1235 0153 5301 01b9 0039\n 0x00000b0: 0500 b200 0f12 2012 12b8 0018 1225 bd00\n 0x00000c0: 2759 1212 1225 bd00 2959 1212 1234 b800\n 0x00000d0: 3153 5912 3201 5359 1235 1234 b800 3153\n 0x00000e0: 5359 1232 1225 bd00 2959 1212 122b b800\n 0x00000f0: 3153 5912 3212 34b8 0031 5359 1235 122b\n 0x0000100: b800 3153 5359 1235 1225 bd00 2959 1212\n 0x0000110: 1234 b800 3153 5912 3212 2bb8 0031 5359\n 0x0000120: 1235 1234 b800 3153 5301 01b9 0039 0500\n 0x0000130: b200 0f12 2212 12b8 0018 1225 bd00 2759\n 0x0000140: 1212 1225 bd00 2959 1212 1234 b800 3153\n 0x0000150: 5912 3212 34b8 0031 5359 1235 1234 b800\n 0x0000160: 3153 5359 1232 1225 bd00 2959 1212 1234\n 0x0000170: b800 3153 5912 3201 5359 1235 1234 b800\n 0x0000180: 3153 5359 1235 1225 bd00 2959 1212 1234\n 0x0000190: b800 3153 5912 3201 5359 1235 1234 b800\n 0x00001a0: 3153 5301 01b9 0039 0500 b200 0f12 2412\n 0x00001b0: 12b8 0018 1225 bd00 2759 1212 1225 bd00\n 0x00001c0: 2959 1212 122b b800 3153 5912 3201 5359\n 0x00001d0: 1235 122b b800 3153 5359 1232 1225 bd00\n 0x00001e0: 2959 1212 1234 b800 3153 5912 3201 5359\n 0x00001f0: 1235 1234 b800 3153 5359 1235 1225 bd00\n 0x0000200: 2959 1212 0153 5912 3201 5359 1235 0153\n 0x0000210: 5301 01b9 0039 0500 123b 1212 b800 1812\n 0x0000220: 3db9 0043 0200 b200 0f12 4512 12b8 0018\n 0x0000230: 03b9 001e 0300 b200 0f12 4712 12b8 0018\n 0x0000240: 03b9 001e 0300 b200 0f12 4912 12b8 0018\n 0x0000250: 03b9 001e 0300 b200 0f12 4b12 12b8 0018\n 0x0000260: 03b9 001e 0300 b200 0f12 4512 12b8 0018\n 0x0000270: 1225 bd00 2759 1212 1225 bd00 2959 1212\n 0x0000280: 124d 1212 b800 1853 5912 3212 1112 12b8\n 0x0000290: 0018 b900 5101 00b8 0057 5359 1235 124d\n 0x00002a0: 1212 b800 1853 5359 1232 1225 bd00 2959\n 0x00002b0: 1212 123b 1212 b800 1853 5912 3201 5359\n 0x00002c0: 1235 123b 1212 b800 1853 5359 1235 1225\n 0x00002d0: bd00 2959 1212 0153 5912 3201 5359 1235\n 0x00002e0: 0153 5301 01b9 0039 0500 b200 0f12 4712\n 0x00002f0: 12b8 0018 1225 bd00 2759 1212 1225 bd00\n 0x0000300: 2959 1212 123b 1212 b800 1853 5912 3201\n 0x0000310: 5359 1235 123b 1212 b800 1853 5359 1232\n 0x0000320: 1225 bd00 2959 1212 124d 1212 b800 1853\n 0x0000330: 5912 3212 2012 12b8 0018 b900 5101 00b8\n 0x0000340: 0057 5359 1235 124d 1212 b800 1853 5359\n 0x0000350: 1235 1225 bd00 2959 1212 123b 1212 b800\n 0x0000360: 1853 5912 3212 4d12 12b8 0018 5359 1235\n 0x0000370: 123b 1212 b800 1853 5301 01b9 0039 0500\n 0x0000380: b200 0f12 4912 12b8 0018 1225 bd00 2759\n 0x0000390: 1212 1225 bd00 2959 1212 123b 1212 b800\n 0x00003a0: 1853 5912 3212 2212 12b8 0018 b900 5101\n 0x00003b0: 00b8 0057 5359 1235 123b 1212 b800 1853\n 0x00003c0: 5359 1232 1225 bd00 2959 1212 124d 1212\n 0x00003d0: b800 1853 5912 3201 5359 1235 124d 1212\n 0x00003e0: b800 1853 5359 1235 1225 bd00 2959 1212\n 0x00003f0: 123b 1212 b800 1853 5912 3201 5359 1235\n 0x0000400: 123b 1212 b800 1853 5301 01b9 0039 0500\n 0x0000410: b200 0f12 4b12 12b8 0018 1225 bd00 2759\n 0x0000420: 1212 1225 bd00 2959 1212 124d 1212 b800\n 0x0000430: 1853 5912 3201 5359 1235 1224 1212 b800\n 0x0000440: 18b9 0051 0100 b800 5753 5359 1232 1225\n 0x0000450: bd00 2959 1212 123b 1212 b800 1853 5912\n 0x0000460: 3201 5359 1235 123b 1212 b800 1853 5359\n 0x0000470: 1235 1225 bd00 2959 1212 0153 5912 3201\n 0x0000480: 5359 1235 0153 5301 01b9 0039 0500 b200\n 0x0000490: 5b12 5d12 12b8 0018 125f 1212 b800 1814\n 0x00004a0: 0060 b900 6705 0012 69b8 0031 126b b800\n 0x00004b0: 31b9 0071 0200 0112 32bd 0073 5912 1212\n 0x00004c0: 7559 c700 0857 01a7 0006 b800 7bb8 0081\n 0x00004d0: 53b9 0085 0200 5701 1232 bd00 7359 1212\n 0x00004e0: 1287 59c7 0008 5701 a700 06b8 007b b800\n 0x00004f0: 8153 b900 8502 0057 0112 32bd 0073 5912\n 0x0000500: 1212 8959 c700 0857 01a7 0006 b800 7bb8\n 0x0000510: 0081 53b9 0085 0200 57b1 \n Stackmap Table:\n full_frame(@1226,{},{Null,Object[#139],Object[#139],Integer,Object[#141]})\n full_frame(@1229,{},{Null,Object[#139],Object[#139],Integer,Object[#115]})\n full_frame(@1259,{},{Null,Object[#139],Object[#139],Integer,Object[#141]})\n full_frame(@1262,{},{Null,Object[#139],Object[#139],Integer,Object[#115]})\n full_frame(@1292,{},{Null,Object[#139],Object[#139],Integer,Object[#141]})\n full_frame(@1295,{},{Null,Object[#139],Object[#139],Integer,Object[#115]})\n
没有成功创建,且我在上面还提了一个修改原木硬度的问题,也没解决