Skip to content

Custom Block Entity With A GUI Blinks #2477

Discussion options

You must be logged in to vote

Your next problem is here:
https://github.com/Gamer069/illia_fabric_1_19_mod/blob/1d1864562ece267a6bbf5f35f2f9c0d9cfd1cdd6/src/main/java/net/illia/illiafabricmod1_19/block/custom/DiamondCraftingTable.java#L77

You are telling it to display the vanilla crafting table screen.
This will check your block is a vanilla crafting table and close the screen if it is not.
See CraftingScreenHandler.canUse()

You want it to use your ScreenHandler
You are using a BlockEntity - the vanilla crafting table is not a block entity so the code is different.

You want something like the following in DiamondCraftingTable (untested code):

	@Override
	public ActionResult onUse(BlockState state, World world, BlockPo…

Replies: 2 comments 31 replies

Comment options

You must be logged in to vote
19 replies
@Gamer069
Comment options

@warjort
Comment options

warjort Aug 23, 2022
Collaborator

@Gamer069
Comment options

@Gamer069
Comment options

@warjort
Comment options

warjort Aug 24, 2022
Collaborator

Comment options

You must be logged in to vote
12 replies
@Gamer069
Comment options

@Gamer069
Comment options

@Gamer069
Comment options

@warjort
Comment options

warjort Aug 24, 2022
Collaborator

@Gamer069
Comment options

Answer selected by Gamer069
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants