GUIShop Extended 9.4.7 (NeoForge 1.21.1)
Curse Maven Snippet
What's new
A fresh install now comes with shops already in it. Previously /shop reported that no shops existed and nothing worked until you built a catalogue by hand. Start the server with no config and you get 14 shops and 929 vanilla items.
| Shop | Items | Shop | Items | |
|---|---|---|---|---|
| Building | 177 | Minerals | 46 | |
| Dyes and Wool | 149 | Food | 39 | |
| Wood | 140 | Combat | 38 | |
| Decoration | 84 | Farming | 20 | |
| Natural | 76 | Mob Drops | 19 | |
| Redstone | 60 | Brewing | 18 | |
| Tools | 59 | Miscellaneous | 4 |
Prices are worked out, not written down. About 150 values are set by hand for the things no recipe can make: raw ore, mob drops, logs, crops. Everything else follows the recipes your server actually loaded, taking the cheapest route to each item. An iron block costs what nine ingots cost. A netherite pickaxe costs a diamond pickaxe plus an ingot. Blue wool takes the cornflower dye rather than the lapis one, because that is cheaper.
This also means the shop cannot be farmed for money. Selling returns a quarter of the purchase price and nothing is priced above the sum of its ingredients, so buying materials, crafting and selling the result always loses money. Vanilla's reverse recipes, a block back into nine ingots, are ordinary recipes to the pricer as well, so it holds both ways. A final pass checks every recipe individually in case rounding reopened anything, and each item appears in exactly one shop so it cannot carry two prices.
Because prices come from the recipes your server loaded, a server with datapacks that change recipes gets prices that match them.
Generation never overwrites anything. It runs only when there are no shops at all, and it leaves an existing menu alone. Existing servers see no change.
Also includes the 9.4.6 fix, in case you are coming from 9.4.5. GUIShop was carrying sqlite-jdbc and snakeyaml as plain classes at the root of its jar, which claimed org.sqlite and org.yaml.snakeyaml as packages of the mod's own module. On any server that supplied those too, Arclight among them, the game could not build its module layer and nothing loaded at all:
java.lang.module.ResolutionException: Modules guishop and org.xerial.sqlitejdbc
export package org.sqlite.javax to module <some mod>
Both libraries now live under a private path inside the jar and are loaded directly, so the module system never sees those packages.
Upgrading. Drop in the new jar and delete the old one. Nothing in your configs or database changes.
This mod has no additional files

