Stope

This project adds a shared library for my mods, holding the code that breaks between Minecraft versions so each mod ports with less work.
Back to Files

Stope 2.6.0 for Forge (1.20-1.20.1)

File namestope-forge-2.6.0-1.20-1.20.1.jar
Uploader
ScottKillenScottKillen
Uploaded
Nov 19, 2026
Downloads
3
Size
371.3 KB
Mod Loaders
Forge
File ID
9705983
Type
R
Release
Supported game versions
  • 1.20.1
  • 1.20

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:stope-1779366:9705983")

Learn more about Curse Maven

What's new

New API for server-side tweaks: the gear a dying mob drops, natural spawns, dropped items that despawn, and small values saved on entities; and events for a player joining a server and the client joining a world. A settings screen can now edit a mod's settings file directly, one row per setting. Nothing changes in game until a mod uses it. Mods built for 2.0 through 2.5 run on 2.6.0 unchanged, unless they pass null where the Javadoc already forbade it.

API

  • Added MobEquipmentDropsCallback and its Drops (experimental, server): before a dying mob's hand and armor items drop, Drops.forceDrop makes any slot drop at full chance, with or without vanilla's random wear; Drops also gives the death's source, killer, recentlyHit, and each slot's vanilla dropChance.
  • Added NaturalSpawnCallback (experimental, server): cancel a mob's natural spawn; spawners, spawn eggs, commands, breeding, and structures are never asked.
  • Added ItemExpiredCallback (experimental, server): act on a dropped item when it reaches its despawn age, and take items from its stack before the rest despawns.
  • Added EntityData (experimental, server): keep an int under your own key on an entity, saved and loaded with it on every loader.
  • Added PlayerJoinedCallback (experimental, server): fired once a player has joined and can be sent packets.
  • Added ClientJoinCallback (experimental, client): fired once the client has joined a world and can send packets; the counterpart of ClientDisconnectCallback.
  • Added SettingsScreen.builder(parent, prefix, file) and its key rows toggle(ConfigKey), toggle(String, ConfigKey), intField(ConfigKey), and decimalField(ConfigKey) (experimental, client): a settings screen that edits a ConfigFile's values and saves them on Done, one row per key.
  • Changed ConfigFile.of: it no longer looks up the config folder when called; path, load, and save do on first use, so a static final field can hold the file in a class unit tests load.
  • Changed MobGroups.define: it is all or nothing. A call that throws leaves the owner's earlier definitions and their groups as they were, and a null owner throws NullPointerException.
  • Changed Reactions.register, SettingsScreen.Builder.onSave, SettingsScreen.builder (prefix), BoatWood.item, and BoatWood.texture: a null argument throws NullPointerException at the call, as their Javadoc said, instead of failing later or returning null.
  • Changed ReactionParams.getEntityMatcher: marked @Nullable; it returns null for an absent key, as before.
  • Changed ConfigScreens.Factory.create: parent is marked @Nullable. Mod Menu and Forge's Mods screen never pass null, but a mod opening the screen another way may.
  • Changed the Javadoc of CommandRegistrationCallback and BiomeFeatures.add to name the threads their listeners and enabled run on, on each loader.
  • Changed the Javadoc of ReactionBinding.without and ReactionContext to name count among what the next step keeps and what chose the members, and of RegistryLookups to name ServerStartedCallback and DataPacksReloadedCallback as where blockTag reads current tags; a DataReloaders handler reads the previous ones.

This mod has no additional files