Перейти к содержимому
Mineforgian

SpawnProtectionTweaks

Adds in-game spawn protection manipulation

Загрузки
761
Подписчики
1
Обновлён
10 декабря 2021 г.
Лицензия
MIT

Опубликован 12 августа 2021 г.

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.

Ченджлог

0.4.1+1.17.1Бета1.17.1 · 9 декабря 2021 г.

Due to issues with certain setups this build doesn't have any support for server side translations.

0.4+1.17.1Альфа1.17.1 · 9 декабря 2021 г.

This release switches the translation to use the server-translation-api mod making it possible to translate server side instead of relying on a optional client side mod. All non-experimental functionality apart from the alias is now configurable using commands (including the defaults).

Set of changes:

  • split enabled node to set and query instead of enable and disable
  • remove all client side parts of the mod
  • adds experimental event based backend, it can be switched to by setting "advancedEventOptions": true in the config
  • add centre set query and reset commands
0.3+1.17.1Бета1.17.1 · 25 августа 2021 г.

This is a breaking change!

The command syntax almost completely changes. The requirement to add dimensions to a whitelist to configure it has been removed, now you can simply use and modify default values.

Complete set of changes:

  • added support for a custom spawn protection centre
  • implemented list and list all commands listing all modified / all dimension specific mod configuration
  • renamed action to actionbar
  • moved to a vanilla-like query / set syntax
  • added command block feedback support
  • implemented help command
  • improved command feedback
0.2+1.17.1Бета1.17.1 · 16 августа 2021 г.
  • added client side translation support using en_us as a fallback
  • improved command feedback

Note: The client side capabilities are completely optional! They are just used to enable future translation!

0.1+1.17.1Бета1.17.1 · 12 августа 2021 г.

Initial release! Feature set as described in the mod description.

Комментарии

Загружаем…