村民黄金
import mods.contenttweaker.VanillaFactory;
import mods.contenttweaker.ResourceLocation;


var bedrockiumIngot = VanillaFactory.createItem("bedrockiumIngot");
bedrockiumIngot.maxStackSize = 64;
bedrockiumIngot.creativeTab = <creativetab:misc>;
bedrockiumIngot.register();


以上是代码和报错

天赐manna
本帖最后由 天赐manna 于 2021-10-28 00:39 编辑

在整段第一行加入
  1. #loader contenttweaker
复制代码

还需要
  1. import mods.contenttweaker.Item;
复制代码