AGPLv3 license

This commit is contained in:
2026-10-12 15:09:22 -03:00
parent c1dd0e62a8
commit 48c6f0ec1d
263 changed files with 1446 additions and 0 deletions
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// a living entity's stats, like minecraft's attributes: a base value that modifiers change without touching it.
// numbers are minecraft's, so movement_speed is its per tick value, see LivingEntity.travel
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// status effects on living entities, like minecraft's MobEffect and MobEffectInstance. an effect is a type plus
// how strong it is and for how long. a weaker one that lasts longer waits hidden under the stronger one, and takes
// over when that runs out
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// the server's entities, like minecraft's Entity: things in the world that aren't blocks and move on their own. the
// fields are minecraft's (see ENTITIES.md), without the ones for things the game doesn't have like portals and powder
// snow. players are ServerPlayer, which isn't one of these (yet)
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// every entity in the world, and what each player's client knows about them. like minecraft's entity lookup plus
// its ChunkMap's entity tracking: a player's client hears about the entities within their view distance, gets told
// when those move or change, and forgets them when they leave it
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// every kind of entity by its type id, like minecraft's EntityType registry: how saved entities come back
import type { Entity, EntityLevel, SavedEntity } from "./entity.ts";
import { ITEM_ENTITY_TYPE, ItemEntity } from "./item_entity.ts";
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// what mobs decide to do, like minecraft's Goal and GoalSelector. each goal says when it wants to run and which
// controls it needs (its flags), and the most important goals that can run get them. a lower priority number is
// more important, and can take a flag from a less important goal that's running
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
import { type ItemData, ItemStack } from "$/common/inventory.ts";
import type { EntityInfo } from "$/common/protocol.ts";
import { TICK_DELTA } from "$/common/constants.ts";
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// entities that live: health, attributes, status effects, equipment, breathing and dying, like minecraft's
// LivingEntity. they walk with minecraft's physics, driven by forward, strafe and jumping (see travel), which is what
// a mob's AI or anything else moving them sets
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// living entities with a mind of their own, like minecraft's Mob: goals decide what to do (see goals.ts) and
// controls turn that into walking, looking and jumping. they can despawn, pick up items and be kept near a home
import { ATTRIBUTES, type AttributeType } from "./attributes.ts";
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// the kinds of entity mods define in entities/<name>.json (see EntityJson): animals that wander around, panic when hurt
// and look at players now and then, like minecraft's simpler animals, monsters that go after players, and scripted
// ones that stay where scripts put them