Adham-084
Members-
Posts
6 -
Joined
-
Last visited
Adham-084's Achievements
Tree Puncher (2/8)
0
Reputation
-
But what about if it were in single player (integrated server)?
-
I will try this out, thx for help!
-
Any block the player looking at.
-
I have tried without it but same result. In what event should I get the value, dose RenderGameOverlayEvent occur in the server, because I want the value in this event, and how to send it to client?
-
So I'm trying to get the comparator input override of a block (if it has one) with something like: @OnlyIn(Dist.CLIENT) @SubscribeEvent public void onRenderGameOverlay(RenderGameOverlayEvent.Post event) { //... if (blockstate.hasComparatorInputOverride()) { int p = blockstate.getComparatorInputOverride(minecraft.world, tBlockPos); } //... } For blocks like bee nest and cauldron it worked, but for blocks with inventory it always returns 0 because when it tries to get the block inventory gets an air full inventory(not null) even when the chest is full.
-
Dose this still work for forge gradle with minecraft 1.16.5?