Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Void Teleport features #466

Merged
merged 11 commits into from
May 12, 2024
Merged

Void Teleport features #466

merged 11 commits into from
May 12, 2024

Conversation

WaitingIdly
Copy link
Contributor

changes in this PR:

  • contains mildly more config options than my usual PR. (14)
  • adds a Void Teleport category to UTConfigTweaks.ENTITIES, which controls settings similar to that of Forgiving Void. It teleports when the entity is falling out of the world, which is called when posY < -64. (default: false)
    • sets if players are allowed. (default: true)
    • controls what entities are allowed/prevented. Only entities which extend EntityLivingBase will be checked to be teleported. (default: empty, WHITELIST = none)
    • controls what dimensions are allowed/prevented. (default: empty, BLACKLIST = all)
    • sets to what height entities are teleported, falling back to the highest block at the player's coords if lower than that location. (default: 300)
    • sets the maximum number of times an entity can be teleported without landing before no longer getting teleported. (default: 100)
    • sets if entities are given a blindness effect when teleported. (default: true)
    • sets if entities avoid taking void damage before being teleported. (default: true)
    • clamps the maximum downwards speed of the entity to a value. (default: -1)
    • sets damage taken when landing, either by:
      • setting what height the entity is simulated as falling from, with negative numbers causing the other option. (default: -1)
      • setting how much damage the entity takes when landing on a solid surface, where positive numbers are the amount of damage dealt and negative numbers are calculated based on the maximum health of the entity. (default -1)
        • sets if damage dealt this way can kill the entity. (default: true)
  • marks the mod Forgiving Void as obsolete, as it contains a subset of features added via the Void Teleport Category config.
    • of the features listed, configurable dimensions, specific teleport height, and specific damage dealt are config options of Forgiving Void, with all other features are novel.

Copy link

what-the-diff bot commented May 12, 2024

PR Summary

  • Introduction of "Void Teleport" Feature
    This pull request adds a 'Void Teleport' feature that teleports creatures when they fall into a void. This feature is adjustable with several settings, like allowing global toggle, defining the Y-level coordinate for teleportation, adding a visual effect such as blindness, setting a limit for consecutive teleportation times, and customizing fall damage.

  • New Configuration Category
    A new, modifiable category called 'Void Teleport' has been added to the configuration file to manage the settings of this feature.

  • Addition of Mixin Class UTVoidTeleportEntity
    A new mixin class named UTVoidTeleportEntity has been introduced to manage the implementation and behavior of the Void Teleport feature.

  • New File for Mixin Configuration
    A new file mixins.tweaks.entities.voidteleport.json has been created to manage the specific configuration related to the Void Teleport feature.

  • Improved Language File
    The language file is updated to have a new translation key for the 'Void Teleport' category.

  • Enhanced Compatibility Check
    The compatibility handler is improved to check if the mod "forgivingvoid" exists - to decide whether to enable or disable the Void Teleport feature.

@ACGaming ACGaming merged commit 229101f into ACGaming:main May 12, 2024
1 check passed
@WaitingIdly WaitingIdly deleted the void-teleport branch May 12, 2024 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants