LunchWorlds v1.8.jar
Curse Maven Snippet
What's new
# LunchWorlds 1.8
Changes since 1.7.6. Network protocol 35: **the server and every player must use LunchWorlds 1.8.**
## New: NPC shops
Any NPC can now run a shop. Staff set it up in the NPC Studio's new **Shop** tab; only staff create, move and remove shop NPCs, so a player who wants a shop asks staff.
- **Server shops** have unlimited stock, and what players pay is removed. An offer can still have a limited stock that refills every so many hours.
- **Player shops** belong to a player. Their stock is a chest, barrel, drawer or modded container linked to the NPC: what players buy comes out of it and what they pay goes into it. Only the owner and staff can open or break that container, and explosions leave it alone.
- **Any item can be money.** In each offer the player gives up to 3 items and gets up to 3 items: emeralds, modded coins, custom items, anything. An offer can require an exact match (same enchantments, name and damage) or just the same item.
- **Create: Numismatics:** when that mod is installed, a price can also be a value in spurs. Players pay with any mix of coins and get their change back in coins. There is no bank: everything is paid in items.
- **Buy and Sell tabs, categories and a search box.** The shop opens like a conversation: a panel on the right, with the NPC still in view on the left. Each offer shows what is left (stock, and your own limit per day, per week or in total), and you pick how many to buy or sell.
- **Safe trades:** the server checks everything and does the trade in one go. Nothing is taken if you lack room in your inventory or something to pay with, and nothing can be duplicated.
- **Owners manage their own shop:** sneak + right-click on their NPC (or a key you can set in Controls > LunchWorlds) opens a screen with their offers, the stock left in their container and their recent sales. They can change their prices and offers if staff allow it.
- A shop can open on a right-click, or from an answer button in the NPC's dialogue (new **Open shop** action).
**For staff:** sneak + right-click on a shop NPC opens its Shop tab in the Studio. **Closed for now** pauses a shop without changing it. Every trade is written to `<world>/lunchworlds/shop-log.tsv`, and `/npc shop log [player]` shows the last ones.
## NPC fixes
- NPC Studio, Dialogue tab: an answer button set to **Close** could not be given another action. The action button now opens a list of every action (Open branch, Send message, Show title, commands, Give item, Teleport, Start quest, Open shop, Close, Advanced): click one to pick it.
- Carry On can no longer pick up NPCs with sneak + right-click.
## Compatibility
- **Inventorio:** its extra slots (tool belt, utility belt, deep pockets) are now kept safe during server events.
- **Punchy:** its first-person arms no longer show through NPC dialogues, shops and cinematics.
## Stability
- An error inside a custom NPC or a server event entity is now written to the server log instead of stopping the server.
## Behind the scenes
- Groundwork for future server events. Nothing changes in normal play.
- Code cleanup.
Works with LunchEssentials 1.7.2.
This mod has no additional files

