can you make a mod for 1.21.11 which collect money from nearby spanwer by right cliking on spanwer then a chest type slot will be opend single chest then clik the middle of the slot of single chest avery 10 mint and keybind will be b ?
KodariOct 31 at 4:21 pm 1
MobSpawnerCollector
Adds a right-click interaction on mob spawners that opens a single chest GUI. Players place currency items in the center slot, and every 10 minutes the mod automatically collects the stored items from nearby spawners. A keybind (default B) opens a summary interface showing collected totals from all linked spawners, enabling passive mob-farm income management.
This project can create vanilla data packs, not mods. The B keybind and a custom single-chest GUI require a client-side mod, so I can’t build that exact feature here.
I can make a data-pack approximation that detects right-clicking a spawner and awards scoreboard “money” with a 10-minute cooldown, but it won’t have the GUI or B keybind. Would you like that version?
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code