c635de501a
KubeJS server script that:
1. Removes the crafting recipe for alexsmobs:transmutation_table.
The Transmutation Table converts items freely with XP cost,
which competes with Ars Nouveau's depth and undermines the
Numismatics-based plot economy. No new tables can be made;
no existing tables exist on the world yet.
2. Cancels the right-click action on
alexsmobs:shattered_dimensional_carver. The item teleports the
user 1,000,000 blocks in a random direction -- breaks any
server-side world-boundary assumption, drops the player into
unloaded chunks far from the rest of the world. The item can
still be produced (the Capsid-shatters-Carver interaction is
a block reaction, not a recipe we can remove cleanly), but it
does nothing on use and sends an explanation to the player.
The Void Worm boss + regular Dimensional Carver (return-home
teleport) stay enabled. Players can still fight the boss and earn
the home-recall item, just not the world-bounding-breaking variant.
Verified live: KubeJS loaded script in 3ms, removed recipe at
recipe-event time, server bound to 25565.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
33 lines
1.4 KiB
JavaScript
33 lines
1.4 KiB
JavaScript
// 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');
|