SpawnProtectionTweaks

SpawnProtectionTweaks

Adds in-game spawn protection manipulation

by
752 Downloads
fabricutility
Rent Server with this Mod

About this Mod

SpawnProtectionTweaks

Modrinth Download Count
License

Adds in-game spawn protection settings manipulation

This mod adds the ability for fabric servers to change spawn protection settings on the fly overriding the vanilla configuration.

Server-side

This mod can be used on both server and client however it is not required to install it on the client.
The only difference in behaviour is that compatible clients are not bound to the en_us locale
and can get translations based on their selected language.

Since version 0.4 this is no longer the case. The server will detect the client's set language and use it to translate the messages.
Currently, only en_us is supported though.

Due to incompatibilities with specific fabric-api versions that feature has been put on ice.
Version 0.4 introduced that feature, version 0.4.1 removed it.

Version support

With the release of 1.18, the 1.17 version will only be fully supported until the end of January 2022
with potential bugs being fixed until the end of March 2022.

Permissions

SpawnProtectionTweaks supports permissions mods like LuckPerms and other mods supporting the Fabric Permission API.
The permission nodes are formatted in the form spawnprotectiontweaks.<subcommand>.<operation>
I.e. spawnprotectiontweaks.dimensions.list

There is an override permission allowing players to bypass spawn protection:
spawnprotectiontweaks.override.

Releases

The mod is licensed under the MIT License

Commands

Enable / Disable Spawn Protection

  • /spawnprotectiontweaks enabled set <true/false>
  • /spawnprotectiontweaks enabled query

Configure the radius of the Spawn Protection

  • /spawnprotectiontweaks dimensions radius set <dimensionid> <value>
  • /spawnprotectiontweaks dimensions radius query [dimensionid]

Configure the centre of the Spawn Protection

  • /spawnprotectiontweaks dimensions centre set <dimensionid> <value>
  • /spawnprotectiontweaks dimensions centre query [dimensionid]

Configure the action bar alert

  • /spawnprotectiontweaks dimensions actionbar set <dimensionid> <true/false>
  • /spawnprotectiontweaks dimensions actionbar query [dimensionid]

Configure the default dimension specific config

  • /spawnprotectiontweaks dimensions set <actionbar/radius/centre> <value>
  • /spawnprotectiontweaks dimensions query <actionbar/radius/centre>

List all dimensions not using the default config

  • /spawnprotectiontweaks dimensions list

List all dimensions

  • /spawnprotectiontweaks dimensions list all

Most query commands should be usable in command blocks if anyone wishs to use them.

Config

Config exclusive options:

  • alias: sets an
    optional alias to the spawnprotectiontweaks command
  • advancedEventOptions: Switches the mod to use a new event based system instead of relying on vanilla to catch the actions (in development!)
  • eventConfig (dimension specific, only active if advancedEventOptions is enabled):
    • preventAttackingBlocks: Prevents attacking blocks in the dimension
    • preventUsingBlocks: Prevents using blocks in the dimension
    • preventAttackingEntities: Prevents attacking entities in the dimension
    • preventUsingEntities: Prevents using entities in the dimension
    • preventUsingItems: Prevents using items in the dimension. Disabling while also disabling preventUsingBlocks and enabling preventAttackingBlocks this will enable players to use flint & steel without being able to remove the fire. Disabling this might also cause desync when players try to use bows without infinity.
    • preventBreakingBlocks: Prevents breaking blocks in the dimension

The new event based system uses a different permission system:
spawnprotectiontweaks.interaction.<dimensionid>.<action>.<target>
for example: spawnprotectiontweaks.interaction.minecraft:overworld.use.block or spawnprotectiontweaks.interaction.minecraft:overworld.attack.player however I didn't thoroughly test this yet.

Available Versions

spawnprotectiontweaks-0.4.1+1.18beta
MC 1.18fabric
December 10, 2021
spawnprotectiontweaks-0.4.1+1.17.1beta
MC 1.17.1fabric
December 9, 2021
spawnprotectiontweaks-0.4+1.17.1alpha
MC 1.17.1fabric
December 9, 2021
spawnprotectiontweaks-0.3+1.17.1beta
MC 1.17.1fabric
August 25, 2021
spawnprotectiontweaks-0.2+1.17.1beta
MC 1.17.1fabric
August 16, 2021

How to Install SpawnProtectionTweaks on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.18).

3

Install Mod

Open the mod browser in the dashboard and search for "SpawnProtectionTweaks". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.18, 1.17.1

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

SpawnProtectionTweaks server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.18). You can switch loaders with one click in the panel.

Is SpawnProtectionTweaks compatible with fabric?

SpawnProtectionTweaks officially supports fabric for Minecraft 1.18, 1.17.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with SpawnProtectionTweaks – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if SpawnProtectionTweaks consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install SpawnProtectionTweaks with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.181.17.1