Loading...
Beta Modpages Unclaimed

Easy Hopper

Speed up Hoppers and add classification function to it!

0 Likes
3303 Downloads
Created by DearXuan

Description

EasyHopper

This mod is used to optimize the performance of hoppers and provides a classification function without new blocks.

If you encounter any serious problem, you can uninstall the mod because it doesn't add new blocks or modify block data, so your saves won't be damaged. Please let me know so I can fix it.

Incompatibility

Easy Hopper is incompatible with Lithium because it also change the way hoppers work. If you are using Lithium, please disable its modifications to hoppers: adding mixin.block.hopper = false in lithium.properties.

Dependencies

If it is installed on a client, you need modmenu to modify the configuration.

If it is installed on a server, you can only modify the configuration file in the config folder, but not modify it in the game.

screenshot

Features

Cooldown

After each input or output, the hopper will enter a cooldown period. The original cooldown is 8 ticks (20 ticks per second). This mod provides the ability to modify the cooldown. If you have many hoppers (such as 500), you can increase the cooldown to improve performance.

Input/Output Count

Each hopper will attempt to output items first and then input items (you can raise an issue to modify the order if needed). By modifying the number of items input or output by each hopper, each hopper can output or retrieve more items at a time.

Drop items are only affected by the cooldown, not input count.

Classification

When the classification function is enabled in the settings, the last slot of hopper will be used as the classification item slot. Only the same items(including non-stackable items or tools with different wear) can be input or output, whether they are dropped items or hopper minecarts.

If a player forcibly puts in different items, they will never flow out of the hopper until the player manually takes them.

When the last slot of the hopper is empty, the classification function of it will be disabled. Even if it is empty, items cannot flow into the last slot, and can only be placed manually by players.

For example, if you put redstone in the last slot, only redstone can enter or leave the hopper. The hopper's classification function will be disabled when you take out the redstone.

Performance Enhancement

When hopper is not in cooldown, it will try to search items from above each server tick, which will cause a large amount of stagnation. The Performance Enhancement operate through the following methods:

  1. Hopper detection of items will cause itself to enter cooldown to avoid frequent detection.

  2. When a container on the hopper, items detection will be disabled and only input from the container.

  3. When a full-cube block(not container) on the hopper, due to the impossibility of items in the input area, the hopper will stop the active input function, but it can still be input by other hopper.

  4. Optimize transportation code to reduce container update.

The following images will show you the performance under a large number of hopper.

CPU: 12th Gen Intel(R) Core(TM) i7-12700H

In Game (100 x 100 Hoppers)

Without Easy Hopper (13 ms)

Performance Enhancement (5 ms)

Tips

Hopper Chain Classification

Use hopper chains instead of water flow classification. It still works in The Nether. You can increase the cooldown and input/output count to improve performance when using multiple hoppers.(In fact, around a dozen hoppers will not cause visible performance degradation)

The input and output count are best equal, and the input count can be greater than the output.

Unless you're using hoppers to transmit items remotely, it's not recommended to set cooldown to 4 or lower. The cooldown has a greater impact on performance than the input/output count.

Redstone Related

You may not be able to use redstone circuits to precisely control the number of items in the hopper (most people don't need it), because the update frequency of redstone is 2, and the input or output each time is greater than 1.

Timer

If you are timing with hoppers, then you need to recalculate the number of items in the hopper based on your specific configuration. Alternatively, you can modify the relevant configuration to time more accurately according to your timing requirements. (1 tick = 0.05 s)


AD Become Premium to remove Ads!

What means Verified?

  • Compatibility: The mod should be compatible with the latest version of Minecraft and be clearly labeled with its supported versions.
  • Functionality: The mod should work as advertised and not cause any game-breaking bugs or crashes.
  • Security: The mod should not contain any malicious code or attempts to steal personal information.
  • Performance: The mod should not cause a significant decrease in the game's performance, such as by causing lag or reducing frame rates.
  • Originality: The mod should be original and not a copy of someone else's work.
  • Up-to-date: The mod should be regularly updated to fix bugs, improve performance, and maintain compatibility with the latest version of Minecraft.
  • Support: The mod should have an active developer who provides support and troubleshooting assistance to users.
  • License: The mod should be released under a clear and open source license that allows others to use, modify, and redistribute the code.
  • Documentation: The mod should come with clear and detailed documentation on how to install and use it.

AD Become Premium to remove Ads!

How to Install

1

Download Forge & Java

Download Forge from the offical Site or here. If you dont have Java installed then install it now from here. After Downloading Forge you can run the file with Java.

2

Prepare

Lounch Minecraft and select your Forge istallation as Version this will create a Folder called Mods.

3

Add Mods

Type Win+R and type %appdata% and open the .minecraft Folder. There will you find your Folder called Mods. Place all Mods you want to play in this Folder

4

Enjoy

You are now Ready. Re-start your Game and start Playing.

More Mods like this

Botania

An innovative natural magic themed tech mod

Thermal Expansion

Expanding Minecraft Thermally! A server-friendly and content-rich blend of magic and technology!

Mekanism

High-tech machinery, powerful energy generation, fancy gadgets and more. Now on Curse!

Industrial Foregoing

A collection of machines to make your minecraft builds easier to automate

Flux Networks

Wireless Energy Networks, compatible with FE/EU/RF/TESLA/AE

Create

Aesthetic Technology that empowers the Player