-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.13.2] ItemBlocks do not render in creative inventory #5470
Comments
So it appears the patch to redirect I'm happy to put a PR together if desired? |
Thanks for looking into this issue! |
As a temporary fix you can add this to your block class: //TODO: remove this once the forge registry is fixed
@Override
public Item asItem() {
return ForgeRegistries.ITEMS.getValue(this.getRegistryName());
} Note: my |
As of 25.0.20 and PR #5483, this issue has been resolved. Closing... |
ExampleMod: https://github.com/drekryan/ExampleMod
Note: Everything is setup in the ExampleMod provided in the link above, just git clone and run. It registers a Block, slab, and stair which all have the issue as well as provides an ItemGroup.
Brief Description:
Registered ItemBlocks are not rendering or displaying tooltips in the creative inventory or item group tabs. This does not appear to affect regular Items, just ItemBlocks.
Steps to Reproduce:
blockRegistryEvent.getRegistry().registerAll( altar_stone = new Block( Block.Properties.create( Material.ROCK ) ).setRegistryName( "examplemod", "altar_stone" ) );
itemRegistryEvent.getRegistry().registerAll( new ItemBlock( altar_stone, new Item.Properties() ).setRegistryName( "examplemod", altar_stone.getRegistryName().toString() ) );
What I expected to happen:
I expected the item block to appear in the all items tab of the creative inventory with proper rendering and tooltip. Also assigning an ItemGroup to the item I also expect it to appear in the ItemGroup tab.
What happened:
The ItemBlock was properly registered. I can use .give to get the item and hold it in my inventory but I can not obtain it from the creative inventory or see it rendered.
Versions:
Minecraft: 1.13.2
Forge: 25.0.9
The text was updated successfully, but these errors were encountered: