AGPLv3 license
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// the screens of the base game's menus, see scripts/server.ts for their slots. in gui pixels, like minecraft's
|
||||
import type { ClientContext, ClientMenu, Graphics, ItemStack, MenuScreen } from "bworld/client";
|
||||
import { MINIGAMES } from "./minigames/mod.ts";
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// curios, from C4's Curios mod: accessory slots, in 2 columns left of the player's inventory. each player's curios are
|
||||
// a container of their own, and fall out when they die like the rest of what they carry. items with the
|
||||
// bworld:curio_modifiers component change the wearer's attributes, like curios' attribute modifiers, and ones with
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// what the base game's effects do over time, see mods/bworld/effects. speed and slowness are only attribute
|
||||
// modifiers, and resistance and water breathing work where damage and air happen, like minecraft's
|
||||
import type { ServerContext } from "bworld/server";
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// fishing, like minecraft's: right click with a rod to throw its hook forward. when it lands in a block with
|
||||
// bworld:fishable, like water, it floats there until something bites, and right clicking again before it gets away
|
||||
// reels it in. a hook that lands on anything else lies there until it's reeled in, with nothing on it
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// a lichess mate in one: the board after the opponent's move, and the player has SOLVE_TIME to play the mate. it's
|
||||
// all played on the screen, which says how it went: button 1 for the mate, 0 for any other move
|
||||
import type { Color, Graphics } from "bworld/client";
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { FishingMinigame, type MinigameArgs, type MinigameScreen, mouse_sender } from "./minigame.ts";
|
||||
|
||||
// "Hold !" and a bar from 0 to 10 seconds, starting half full. while the mouse is held (button 1, and 0 when it's let
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { FishingMinigame, type MinigameArgs, type MinigameScreen, SOLVE_TIME, time_bar } from "./minigame.ts";
|
||||
|
||||
// a maze to take the mouse through without touching its walls, bigger the harder the fish is, in SOLVE_TIME from
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// what every fishing minigame shares. each minigame is a file here with both its halves: a class the server builds
|
||||
// the minigame's menu with, and the screen client.ts draws it with. mod.ts lists them by name
|
||||
import type { ItemStack, MenuBuilder, Player } from "bworld/server";
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// the fishing minigames by name, what a fish's bworld:fish "minigame" says: the class the server builds its menu with
|
||||
// and the screen the client draws it with. see minigame.ts
|
||||
import type { FishingMinigame, MinigameArgs, MinigameScreen } from "./minigame.ts";
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type { Color, Graphics } from "bworld/client";
|
||||
import { FishingMinigame, type MinigameArgs, type MinigameScreen } from "./minigame.ts";
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { FishingMinigame, type MinigameArgs, type MinigameScreen } from "./minigame.ts";
|
||||
|
||||
// a "Catch" button in the middle of the screen, button 0
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { FishingMinigame, type MinigameArgs, type MinigameScreen, mouse_sender } from "./minigame.ts";
|
||||
|
||||
// stardew valley's, ported from ports/stardewfishing's FishingMinigame: holding the mouse lifts a green bar up a track
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// the base game's block and item behavior, written against the same api as any other mod
|
||||
import type { BlockRef, Container, Player, Season, ServerContext } from "bworld/server";
|
||||
import { register_curios } from "./curios.ts";
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// the base game's block rules: how blocks are placed and how they change with the blocks beside them. they run on the
|
||||
// server and on every client, so players see a fence join or a trapdoor turn the moment they place it, and a trapdoor
|
||||
// or a door open the moment they click it
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// the base game's trees, a feature that's code. biomes say which kinds grow and how often (their json's "trees"), this
|
||||
// says what the kinds are. it isn't data features: each kind would need placers drawing random numbers in exactly
|
||||
// the order grow_tree does, for the world to stay the same, to say what this already says. it runs after ores, which
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// the base game's features, on top of the terrain (which is data, worldgen/). runs on the server and must give the
|
||||
// same world every time: only chunk.rng, chunk.random and the noise helpers, never Math.random or the time
|
||||
import type { FeatureChunk, WorldgenContext } from "bworld/worldgen";
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// the cooking pot's screen, like the java mod's CookingPotScreen. its slots are in scripts/server.ts, in gui pixels
|
||||
import type { ClientContext, Graphics } from "bworld/client";
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// farmer's delight's kitchen. the stove is a heat source, like its StoveBlock. the cooking pot, like its
|
||||
// CookingPotBlockEntity, cooks its recipes while something hot is under it, keeps the meal, and serves it into the
|
||||
// container the meal needs (a bowl), or straight out when it needs none. the cutting board, like its
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// how each recipe type is shown, like jei's IRecipeCategory: a title, a fixed size every recipe of it is drawn in, the
|
||||
// blocks it's made in (jei's recipe catalysts), and where its items go. types no category knows get one from their
|
||||
// recipes' json, see mod_category
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// a recipe viewer like just enough items: every item in a list next to the inventory, searchable, and clicking one (or
|
||||
// R and U over any item) opens a screen with the recipes that make it or the ones that use it, like jei's. it only
|
||||
// reads recipes, so it works with any mod's, and draws the ones it has no category for from their json
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// every item, right of the inventory and of the recipes screen, like jei's ingredient list overlay: the page and its
|
||||
// arrows on top, the items, and the search box under them
|
||||
import type { ClientContext, Color, Graphics } from "bworld/client";
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// reading recipes: what each one makes and takes, for any mod's recipe type, so the viewer works with recipes it has
|
||||
// no category for
|
||||
import type { TagApi } from "bworld/client";
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// the recipes that make or use an item, a screen of its own like jei's RecipesGui: a tab for each category above the
|
||||
// panel, where the category is made down its left side, the category and page with their arrows at the top, then as
|
||||
// many recipes as fit, one under the other. the item list stays on the right. escape or the inventory key go back to
|
||||
|
||||
Reference in New Issue
Block a user