Hopper question for 1.11.2

4 posts in this topic

I am wondering if there is an easy way to have a hopper only be able to extract items out of a particular inventory slot of a custom tile entity? I have something similar to a furnace, and I would like the hopper to only extract finished products (stack in slot 1) and to insert fuel as needed (stack in slot 0). I just do not know where to start on this, or if it is something that can be done without messing with hopper logic. I am using the capabilities for my tile entity inventory but again, just not sure how to approach this as hoppers currently take out all fuel first, then finished products. Any help would be greatly appreciated. Thanks!

That class is set up to only allow extraction, not insertion, but the methodology is the same. I recommend this because it us a wrapper around another handler that CAN have things inserted into it (eg by the machine's own logic) but which isn't exposed directly.

Posts

Yeah it happens only for GUI. I open GuiSettings1 by using a command which does this
else if (args[0].equalsIgnoreCase("gui")) {
Runnable rn = () -> Minecraft.getMinecraft().displayGuiScreen(new GuiSettings1());
service.schedule(rn, 50, TimeUnit.MILLISECONDS);
}
had to open it after 1 tick otherwise it won't open and yes it happens only with Guis. When I move the cursor out of the window and move it back it it starts to appear. However I don't really think mouse rendering thing is related to it whatsoever but I might be wrong. @diesieben07

Only download mods from their original sources. Several of the links you posted are from copyright infringing sites, which provide mislabelled, outdated mods or even malware. Check out StopModReposts for more information. I highly recommend you delete whatever you downloaded from those sites and obtain it properly.
The mod you linked explicitly states that it is incompatible with both Optifine and Forge, like I already mentioned above.

Currently, when I play on the forge profile, it doesn't save the world which I am playing on. I tried reinstalling Minecraft entirely, however that didn't work. I tried again on a superflat world (flew to a village and exited there) and it didn't save my position or my inventory. It worked perfectly on the unmodded profiles (or worlds).
What is happening?