Skip to content
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

BlockEntityWithoutLevelRenderer rendering block entity in inventory as item #180

Open
CoolerProYT opened this issue Oct 16, 2024 · 4 comments · May be fixed by #178
Open

BlockEntityWithoutLevelRenderer rendering block entity in inventory as item #180

CoolerProYT opened this issue Oct 16, 2024 · 4 comments · May be fixed by #178
Labels
addition Adding or rewriting information.

Comments

@CoolerProYT
Copy link

I am trying to use BlockEntityWithoutLevelRenderer to render my Fluid Tank Block entity when it is inside inventory, but failed, i use

event.registerItem(
    new ModClientItemExtensions(),
    ModBlocks.FLUID_TANK.get().asItem()
);

Nothing is rendering other can default model for it.

@ChampionAsh5357 ChampionAsh5357 added the addition Adding or rewriting information. label Oct 17, 2024
@ChampionAsh5357
Copy link
Contributor

Does your item model have a parent of minecraft:builtin/entity? This is required, or the BakedModel instance for the item must have #isCustomRenderer return true. The code is technically correct, but as there is still an issue, I will keep this open.

ChampionAsh5357 added a commit to ChampionAsh5357/NeoForge-Docs that referenced this issue Oct 17, 2024
@CoolerProYT
Copy link
Author

CoolerProYT commented Oct 17, 2024

I have updated my item model to

{
  "parent": "minecraft:builtin/entity"
}

But now I am encountering another issue, only the fluid is rendering with BEWLR and the fluid tank texture is not rendering.

@ChampionAsh5357
Copy link
Contributor

Yes, using a BEWLR on its own will not render an existing block model as well. I'm not sure what you are referring to when you say the fluid tank texture here, however. I would recommend joining the discord and asking for help there as this seems to be more of modder support than a specific issue with the docs, other than the part I've outlined.

@CoolerProYT
Copy link
Author

Alright, Thanks.

@ChampionAsh5357 ChampionAsh5357 linked a pull request Oct 17, 2024 that will close this issue
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition Adding or rewriting information.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants