Requires Java 16 and 1.17.
Floaty Barrels
A stupid plugin that lets you mount barrels and float around in them. What sane server owner would install this!?
FloatyBarrels will give you the ability to mount a barrel when you Sneak + Right Click a barrel surrounded by water. You may also move around with it using the WASD keys as usual.
If you enter a bubble column, the barrel will sink and all your items will get spewed out! Barrels can also explode if they contain TNT!
One unlucky adventurer lost their items to the depths...
Oh look, it's me!
Configuration
The plugin is very configurable, I have made almost everything configurable:
Code (YAML):
debug
: false
# Block to replace behind the barrel when it moves
replace-block
: AIR
# Whether to let barrels be sunk via bubble magma columns
barrel-sink
: true
# Whether to drop items when a barrel is sunk
drop-sunk-items
: true
# Whether to block attempting to move into solid objects
block-path
: true
# Whether inventory will move with the barrel
move-inventory
: true
# Cooldown to be able to move again (in seconds)
cooldown
: 1
# Whether to require the barrel to be surrounded by water (with air on top) to be able to enter
require-water
: true
# Whether to override colliding, disable if using a plugin that disables colliding entirely
override-colliding
: true
# If barrels should explode when right clicked with flint and steel and containing an explosive
exploding-barrels
: true
# How powerful the explosion can go (higher values can cause lag / be a griefing tool)
max-explosive-strength
: 12
# What ways the barrel can be facing in order to allow entry
barrel-faces
:
- UP
Language files
By default, only en_gb.yml is created, but you can send me other translations and I will include them too!
Code (YAML):
barrel_sunk
:
"&cYer barrel be sunk!"
barrel_floating
:
"&aYer now be floating in a barrel!"
barrel_path_blocked
:
"&cThe path be blocked!"
barrel_exploded
:
"&cYour barrel exploded into pieces! Don't transport such dangerous items next time!"
Permissions
Just one;
- floatybarrels.float - permission to use barrels
Supported plugins
Developer API
There is a BarrelFloatEvent to allow customisation of barrel movement and a BarrelPlayer (accessible through FloatyBarrels) allowing you to get the players current mounted barrel etc.
Support
Support can be found on the Discord, Github issues, or the resource discussion.
![[IMG]](/proxy/image?url=https%3A%2F%2Fdiscordapp.com%2Fapi%2Fguilds%2F282242806695591938%2Fwidget.png%3Fstyle%3Dbanner2)