Move curios into the main bworld mod
This commit is contained in:
@@ -7,8 +7,8 @@ Menus are how players use [containers](containers.md), like NeoForge's. A GUI ha
|
||||
- The **screen** lives in the client script. It only draws the menu and sends the player's clicks.
|
||||
|
||||
Every click goes to the server, which applies it following the menu's rules, so a modified client can only do what the
|
||||
menu allows. Chests, furnaces, the smithing table and Farmer's Delight's cooking pot are all menus, and Curios adds its
|
||||
slots to [the player's inventory](#the-players-inventory).
|
||||
menu allows. Chests, furnaces, the smithing table and Farmer's Delight's cooking pot are all menus, and the base game's
|
||||
curios slots are part of [the player's inventory](#the-players-inventory).
|
||||
|
||||
## Registering a Menu Type
|
||||
|
||||
@@ -197,7 +197,7 @@ ctx.menus.extend_player_menu((menu, player) => {
|
||||
|
||||
`add_slot` takes the same options as a menu's. `x` and `y` are from the inventory screen's top left, and can be outside
|
||||
it: a negative `x` is left of it. The engine draws a panel behind the slots outside its own, so they need no client
|
||||
code. Curios puts its slots in 2 columns this way.
|
||||
code. The base game puts its curios slots in 2 columns this way, in `mods/bworld/scripts/curios.ts`.
|
||||
|
||||
Shift clicking in the inventory puts a stack into the first of these slots whose `filter` takes it, before moving it
|
||||
between the hotbar and the rest of the inventory. Shift clicking one of them moves its stack back into the inventory.
|
||||
|
||||
Reference in New Issue
Block a user