diff --git a/pack/overrides/kubejs/server_scripts/disable_alexsmobs_features.js b/pack/overrides/kubejs/server_scripts/disable_alexsmobs_features.js new file mode 100644 index 0000000..d78bc9e --- /dev/null +++ b/pack/overrides/kubejs/server_scripts/disable_alexsmobs_features.js @@ -0,0 +1,32 @@ +// Brass and Sigil -- disable specific Alex's Mobs features +// +// 1. Transmutation Table +// Competes with Ars Nouveau's crafting depth and bypasses the +// Numismatics-based player economy by offering free item-to-item +// conversion. Remove the crafting recipe so no one can make one. +// Existing tables (none yet) are left as-is. +// +// 2. Shattered Dimensional Carver +// Teleports the player 1,000,000 blocks in a random direction on +// use. Breaks any server-side world-boundary or chunk-loading +// assumptions, drops the player into an unloaded chunk far from +// anyone else. Cancel right-click on the item so it does nothing. +// +// We can't easily prevent the Capsid-shatters-Carver interaction +// (it is a block contact reaction, not a recipe), so the player +// can still produce the item -- it just won't fire. + +ServerEvents.recipes(event => { + event.remove({ output: 'alexsmobs:transmutation_table' }); + console.info('[bns/disable_alexsmobs_features] removed transmutation_table crafting recipe'); +}); + +ItemEvents.firstRightClicked('alexsmobs:shattered_dimensional_carver', event => { + event.cancel(); + const player = event.player; + if (player && !event.level.isClientSide()) { + player.tell('The Shattered Dimensional Carver is disabled on this server.'); + } +}); + +console.info('[bns/disable_alexsmobs_features] loaded'); diff --git a/pack/pack.lock.json b/pack/pack.lock.json index 65eb91c..dca2aef 100644 --- a/pack/pack.lock.json +++ b/pack/pack.lock.json @@ -1,13 +1,13 @@ { "$schema": "Brass-and-Sigil pack.lock.json - generated, do not edit by hand unless you know what you are doing", "name": "Brass and Sigil", - "version": "0.30.1", + "version": "0.30.2", "minecraft": "1.21.1", "loader": { "type": "neoforge", "version": "21.1.228" }, - "lockedAt": "2026-05-30T20:06:36Z", + "lockedAt": "2026-05-30T20:48:13Z", "mods": [ { "source": "modrinth",