SolidCraft
-
Posts
2 -
Joined
-
Last visited
Posts posted by SolidCraft
-
-
Hello, I am trying to do a quick little override with a custom item so that it gives you back a glass bottle when you craft with my item (similar to crafting with a milk bucket). According to various wiki's the glass bottle's numeric Id is 374 but when I use that I get a lilac back instead? I'm not sure if this is due to Minecraft steering away from the numeric Id's but I couldn't figure out how to use the namespaced id since I am still new to this. Thanks in advance.
Here's part of the code:
@Override public boolean hasContainerItem(ItemStack stack) { return true; } @Override public ItemStack getContainerItem(ItemStack itemStack) { ItemStack cm = new ItemStack(getItemById(374)); return cm;
SOLVED. getItemById giving me the wrong items? (1.16.1)
in Modder Support
Posted
Yeah I just used Items.GLASS_BOTTLE I don't really know why I got stuck on this haha. Thanks for the support