CoolLord22 / OtherDrops1.13

OtherDrops branch for the latest Minecraft version!
GNU General Public License v3.0
0 stars 5 forks source link

Actionbar | Title | Bossbar message #44

Open Achent007 opened 9 months ago

Achent007 commented 9 months ago

Add a parameter to select between a chat/actionbar/bossbar/title message

For bossbar :

For actionbar :

For titles :

CoolLord22 commented 3 months ago

For this, should it only be shown to the player triggering the drop? Radius? Or how would we set this up?

CoolLord22 commented 3 months ago

Implemented 3.2.8 b335, just need to do testing on it to ensure everything works as expected. All of the above was implemented except actionbar time to be showed; no method implementation exists to increase/delay how long that actionbar message is displayed for. Additionally, for bossbar added another variable for progress of the bar (0 being empty, 1.0 being full). Messages support color formatting and all message variables. Important to note, that sendto parameter will only be applied from 1 of the message types if multiple are selected. See usage details below:

    ANY:
      - trigger: RIGHT_CLICK
        tool: STICK
        title:
            title: "&aTitle Line %p" # Title text
            subtitle: "&bSubtitle Line" # Subtitle text
            fadein: 10          # Time (ticks) to fade in
            stay: 70            # Time (ticks) to stay on screen
            fadeout: 10         # Time (ticks) to fade out
            sendto: ATTACKER    # Accepted values are ATTACKER, VICTIM, RADIUS, WORLD, SERVER
        actionbar:
            message: "&ctest"
            sendto: ATTACKER    # Accepted values are ATTACKER, VICTIM, RADIUS, WORLD, SERVER
        bossbar:
            message: "&ctest"
            color: RED          # Color types (see links below)
            style: SEGMENTED_20 # Segment style (see links below)
            progress: 0.5       # Supports double-type values 
            time: 10            # Time in seconds
            sendto: ATTACKER    # Accepted values are ATTACKER, VICTIM, RADIUS, WORLD, SERVER