Skip to content

A Minecraft Paper plugin that allows server owners to assign commands that get run when a block is clicked

License

Notifications You must be signed in to change notification settings

TechnicJelle/SimpleBlockCommands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Block Commands

GitHub Total Downloads

A Minecraft Paper plugin that allows server owners to assign commands that get run when a block is clicked

Configuration

The configuration file for this plugin is a HOCON file

This is the default example config:

# Example: https://github.com/TechnicJelle/SimpleBlockCommands/blob/main/example.conf

blocks=[
    {
        commands=[
            {
                command="say Hello World!"
                hand=either
                run-by=player
            }
        ]
        pos {
            x=0
            y=64
            z=0
        }
        world=world
    }
]

Everything should be within the blocks square brackets [ ]
To add a new command block, make a new pair of curly brackets { } with a world string, pos object and commands list as you can see in the example.
If you want to have multiple commands per block you can do that like so:

commands=[
    {
        command="say whoosh!"
        hand=either
        run-by=player
    }
    {
        command="tp ~ ~1 ~"
        hand=either
        run-by=player
    }
]

You can also leave out the hand and run-by properties. Their defaults are either and player, respectively.
More examples can be found here

Commands

Command Description
/sbc reload Reloads the blockCommands.conf file with the block locations and commands

Special thanks to

kencider for the initial idea for this plugin
Antti, Mark and Blue for their help with the design and development of the plugin

About

A Minecraft Paper plugin that allows server owners to assign commands that get run when a block is clicked

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages