## ⭐ New features!
### ⚔️ Fight mode
Now players that have fight mode enabled can fight with others that also have fight mode enabled. Just hold the sword for 5 seconds!
<img width="1246" height="593" alt="image" src="https://github.com/user-attachments/assets/022ad134-249b-4a7c-9baf-7043e8d83791" />
To use this feature, you must add the following section to your `config.yml`:
```yaml
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# | FIGHT MODE |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
fight_mode:
# Should the fight mode feature be enabled?
enabled: true
# Slot the item should be given to?
slot: 7
# Should we prevent them from moving/dropping the item?
disable_inventory_movement: true
# Delay in seconds before the fight mode gets toggled.
hold_delay:
# The sword should be held for this amount of time to activate the fight mode.
activate: 5
# Any other item that isn't the sword should be held for this amount of time to deactivate the fight mode.
deactivate: 5
# The item that will toggle the fight mode and also the sword used to fight.
item:
material: NETHERITE_SWORD
amount: 1
unbreakable: true
display_name: "<red>Fight Mode <gray>(Hold to toggle)"
lore:
- "<dark_gray>» <gray>Hold for 5 seconds to toggle the fight mode!"
enchantments:
- "sharpness:5" # enchantment:level
item_flags:
- "HIDE_UNBREAKABLE"
- "HIDE_ATTRIBUTES"
- "HIDE_ENCHANTS"
# The armor that will be given to the player when they enter fight mode.
armor:
helmet:
material: DIAMOND_HELMET
amount: 1
unbreakable: true
item_flags:
- "HIDE_UNBREAKABLE"
chestplate:
material: DIAMOND_CHESTPLATE
amount: 1
unbreakable: true
item_flags:
- "HIDE_UNBREAKABLE"
leggings:
material: DIAMOND_LEGGINGS
amount: 1
unbreakable: true
item_flags:
- "HIDE_UNBREAKABLE"
boots:
material: DIAMOND_BOOTS
amount: 1
unbreakable: true
item_flags:
- "HIDE_UNBREAKABLE"
# Actions to execute when the fight mode gets activated or deactivated.
actions:
countdown:
- "[SOUND] BLOCK_AMETHYST_BLOCK_PLACE"
activated:
- "[TITLE] <red><b>PvP activated!;<white>Try to survive!"
- "[SOUND] ENTITY_ENDER_DRAGON_GROWL"
deactivated:
- "[TITLE] <green><b>PvP deactivated;<white>You've survived, uh?"
- "[SOUND] ENTITY_SNIFFER_HAPPY"
```
### 🎶 Song player
Now you can play songs in `.nbs` format using [NoteBlockAPI](https://modrinth.com/plugin/noteblockapi) (**REQUIRED TO USE THIS FEATURE**). Just drop them in your `songs/` folder and they will play automatically!
You will need the following `config.yml` section to make this work:
```yaml
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# | SONG PLAYER |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# Plays music through noteblocks using NoteBlock API. Music files are stored in nbs format inside "Akropolis/music"
# directory.
song_player:
# Should we play music in the lobby?
enabled: false
# There are 2 types of song players:
# - RADIO: plays songs for all players no matter where they are.
# - POSITION: play songs for all added players in specified range from specified point.
type: "RADIO"
# Modify the range where a song is played while using POSITION song player.
# Use the "/akro sp setpos" command to set the position of the song player.
distance: 16
# Set the volume of the song player.
volume: 85
# Fade effect duration in ticks (20 ticks = 1 second).
fade:
in: 20
out: 20
```
There is also two new commands available for this new feature (`akropolis.command.songplayer`):
- `akro sp setpos` - To set the position of the `POSITION` song player.
- `akro sp skip` - To skip the current song.
### 😎 Emojis
Give your chat a little more fun with emojis!
<img width="630" height="162" alt="image" src="https://github.com/user-attachments/assets/cb538f8a-e3b2-4e6e-a282-e918479780d2" />
Emojis are restricted to chat groups, so you will need to enable that feature to make them work. You can add a list of emoticons that will be replaced by the emoji specified. If you specify a list of emojis, a random one will be chosen.
```yaml
default:
priority: 0
format: "<hover:show_text:'<rainbow>You can also use hover here!'><papi:luckperms_prefix></hover> <gray><player> <dark_gray>» <gray><message>"
# Just in case you want to slow down your players a little.
cooldown:
time: 3 # Time is in seconds.
message: "<gold><b>Akropolis <reset><dark_gray>|| <red>Please wait <yellow><time>s <red>before talking again!"
# Add all the emojis you want here.
emojis:
smile:
# ":)" or ":smile:" will be replaced by "<yellow>😀".
emoticon: [":)", ":smile:"]
emoji: "<yellow>😀<reset>"
sunglasses:
emoticon: ["B)", ":sunglasses:"]
emoji: "<yellow>😎<reset>"
heart:
emoticon: ["<3", ":heart:"]
emoji: "<red>❤<reset>"
```
More examples can be found in the [config.yml](https://github.com/devblook/akropolis/blob/a8a5b74e171cf749ed3b23cfd0f44ebc20284edc/src/main/resources/config.yml#L355).
### 🖼️ Custom tooltip style
You can modify the style of tooltips of certain items using a texture pack! Just add the option `tooltip_style: <style_name>` to the item you want to modify.
<img width="400" height="400" alt="image" src="https://github.com/user-attachments/assets/7c673f85-8ada-4866-9c99-d6e1763ebcd3" />
## Also added...
- Support from 1.21.6 to 1.21.8 (1.21.5 and below is no longer supported sadly).
- The possibility to use some types of placeholders inside the title of GUIs and boss bars.
- Support for the new custom model data format ([here is a brief example](https://github.com/devblook/akropolis/blob/a8a5b74e171cf749ed3b23cfd0f44ebc20284edc/src/main/resources/config.yml#L506)).
- If the implementation can be improved, please, let me know as I don't know much about custom model data.
- Support for placeholders in all actions where is possible!
- An option to disable inventory drop on death.
- Just add `disable_inventory_drop: true` to your `world_settings` (default is true).
- An option to set a priority to each chat group, so you can choose which chat group overrides another (highest priority overrides others).
- Add `priority: <number>` below the group you want to modify [as shown here](https://github.com/devblook/akropolis/blob/a8a5b74e171cf749ed3b23cfd0f44ebc20284edc/src/main/resources/config.yml#L329).
## Fixed
- Barriers not being able to be used as an item ([@Fritx22](https://github.com/Fritx22)).
- Double jump not working correctly on certain cases ([@Fritx22](https://github.com/Fritx22)).
- `HIDE_ATTRIBUTES` flag not working ([@Fritx22](https://github.com/Fritx22)).
- Nametag format being shown in disabled worlds.
## Notes
I did my best testing this version, as it contains many new features. If I did miss any bug, please, let me know so I can fix it ASAP.
If you find a bug don't forget to [report it in the issues page](https://github.com/devblook/akropolis/issues/new?assignees=zetastormy&labels=bug&template=bug_report.yml&title=A+brief+description+of+your+report).
**Full changelog**: [`v1.8.1..v1.9.0`](https://github.com/devblook/akropolis/compare/v1.8.1..v1.9.0)
Optional dependencies
NoteBlockAPI
Any compatible version
MiniPlaceholders
Any compatible version
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }