HomeJavaModsGoatHornCannon [1.21.5]
GoatHornCannon [1.21.5]
Ever wanted to blow a horn so hard you send people flying? Now's your chance. Included in this plugin are two types of goat horn cannon: normal and admin, both with completely customizable stats, like range, damage, highlighting players/entities, custom model data, and more.

Using (right-clicking) with one of the horn cannons will launch players and entities in range. These horns can be given to players/yourself with /goathorncannon (player) and /adminhorncannon (player). They can also be crafted with the following recipes:
[​IMG]
[​IMG]

Both the commands and recipes are locked behind permissions. By default, players can only craft and use the normal cannon, and everything else is locked behind op. There are options to ignore the permissions rules as well in the config.

The config can be reloaded with /ghc reload.

In case you wish to use the custom textures/models, I've also created a resource pack with the related items, which can be accessed here ( https://www.dropbox.com/scl/fi/aj6y...ey=9vhkr6kpven7wy3gyxpdnavap&st=m3rf49jk&dl=0).


Code (YAML):

#Config 1.1 for GoatHornCannon plugin by:
#moikheck
#Golem_Leader
#Meadow Heckman
#(All of the above are the same person)

#Understanding the config:
#There are two types of horns: normal and admin. For every setting, there is an option for both.

#Determines whether permissions are used for the plugin
#Permission Names:
#goathorncannon.use
#goathorncannon.admin.use
#goathorncannon.craft
#goathorncannon.admin.craft
#goathorncannon.command
#goathorncannon.admin.command
#goathorncannon.command.others
#goathorncannon.admin.others
#goathorncannon.reload - will always check permission
use-permissions
: true
admin-use-permissions
: true

#Determines whether cannon can damage players
damage-players
: false
damage-players-admin
: false

#Determines whether cannon can damage entities
damage-entities
: false
damage-entities-admin
: false

#Determines how much damage a cannon can do (in whole numbers):
damage-amount
: 0
damage-amount-admin
: 0

#Determines the crit rate in percents. Crits do double damage.
crit-rate
: 10
crit-rate-admin
: 20

#Highlights players affected by the horn (spectral effect):
highlight-players
: false
highlight-players-admin
: true

#Highlights entities affected by the horn (spectral effect):
highlight-entities
: false
highlight-entities-admin
: true

#Determines the block range forward for the cannon:
range
: 5
range-admin
: 8

#Determines the max launch distance of the entities in front of the player:
max-launch-distance
: 10
max-launch-distance-admin
: 15

#Determines whether a player can launch themselves by looking at the ground
launch-owner
: true
launch-owner-admin
: true

#Determines the max launch distance of the player launching themselves:
max-launch-owner
: 1
max-launch-owner-admin
: 2

#Sets the cooldown length for the cannon in seconds. If 0, uses the default horn cooldown (7 seconds).
cooldown-length
: 3
cooldown-length-admin
: 3

#Sets the Custom Model information for the cannon
#Set namespace as "none" to disable
namespace
: goathorncannon
namespace-admin
: goathorncannon
custom-model-data
: goat_horn_cannon
custom-model-data-admin
: goat_horn_admin_cannon

#Sets the sound file to play when the cannon is used. Must be an in-game sound.
fire-sound
: EVENT_RAID_HORN
fire-sound-admin
: EVENT_RAID_HORN

#Choose whether to keep the original horn sound when using cannon.
keep-horn-sound
: false
keep-horn-sound-admin
: false

#Choose whether to launch NPCs (From the Denizen Plugin).
launch-npc
: false

#Choose which worlds to disable the functionality in.
disabled-worlds
:
  #- world
 

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

GoatHornCannon [1.21.5] is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 197 times (via Spigot). Download it and open it directly in the game.

Explore more