Skip to content

The button "Set home position" should prompt for a confirmation before actually changing home's coordinates #254

@rodrigo-morales-1

Description

@rodrigo-morales-1

Currently, the button "Set home position" doesn't prompt for a confirmation, so if the player accidentally presses the button, the player loses the ability to teleport back home. Losing this ability can be bothersome for some players because their home can be thousands of blocks away from the spawn, so if the player doesn't have other means to teleport, the only way (s)he could go back is by travelling those thousands blocks by foot

I feel it would be great if users could configure this mod by making it possible to show a confirmation prompt whenever the button "Set home position" is pressed. The confirmation prompt could read "Are you sure that you want to change your home's coordinates?" and the buttons "Yes" and "Cancel" would be shown. This confirmation prompt could be enabled by setting a boolean variable that world administrators could set in the world's settings, the variable could be called show_confirmation_prompt_before_home_gui_set (because the current behavior is not to show a confirmation prompt, the default value of this variable should be "False" in order not to disrupt current users of this mod)

For reference, here's the definition of the button "Set home position":

ui.register_button("home_gui_set", {

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions