import mods.contenttweaker.VanillaFactory;
import mods.contenttweaker.ResourceLocation;
var bedrockiumIngot = VanillaFactory.createItem("bedrockiumIngot");
bedrockiumIngot.maxStackSize = 64;
bedrockiumIngot.creativeTab = <creativetab:misc>;
bedrockiumIngot.register();
 
 
以上是代码和报错
import mods.contenttweaker.ResourceLocation;
var bedrockiumIngot = VanillaFactory.createItem("bedrockiumIngot");
bedrockiumIngot.maxStackSize = 64;
bedrockiumIngot.creativeTab = <creativetab:misc>;
bedrockiumIngot.register();
以上是代码和报错
 本帖最后由 天赐manna 于 2021-10-28 00:39 编辑 
在整段第一行加入复制代码
还需要复制代码
在整段第一行加入
- #loader contenttweaker
还需要
- import mods.contenttweaker.Item;