HomeJavaModsBlockEffects
BlockEffects
[​IMG]
BlockEffects is a light-weight plugin that activates special effects when players interact or step on the block. There are 6 trigger types: LEFT_CLICK, RIGHT_CLICK, WALK, WALK_INSIDE, BREAK, PLACE. On trigger you can send messages, execute commands, add potion effects & more. There is a built-in cooldown and per block permission. The plugin is ideal for kitpvp, skypvp or other types of servers. :)

[​IMG]
/blockeffects - Displays the plugin details (version, author)
/blockeffects blocks - Displays all the registered blocks.

[​IMG]
blockeffects.blocks - Allows the user to see all the registered blocks.
+ You can add custom permissions for each block.

[​IMG]
Code (Text):

#  ____  _            _    ______  __  __          _              __   ___
# |  _ \| |          | |  |  ____|/ _|/ _|        | |            /_ | |__ \
# | |_) | | ___   ___| | _| |__  | |_| |_ ___  ___| |_ ___  __   _| |    ) |
# |  _ <| |/ _ \ / __| |/ /  __| |  _|  _/ _ \/ __| __/ __| \ \ / / |   / /
# | |_) | | (_) | (__|   <| |____| | | ||  __/ (__| |_\__ \  \ V /| |_ / /_
# |____/|_|\___/ \___|_|\_\______|_| |_| \___|\___|\__|___/   \_/ |_(_)____|
#              Get a potion effect when you step on a block!
#                          Coded by NickDEV
#
# ==========================================================================
#                              Template
# ==========================================================================
# Copy the following template and fill in the data in order to create a new
# block.
#
# <name> - custom name (doesn't affect anything in game)
# <material> - block material (Material: http://tinyurl.com/spigot-material)
# <message> - custom message sent to the player
# <trigger-type> - when the block is triggered (WALK, WALK_INSIDE, LEFT_CLICK, RIGHT_CLICK, BREAK, PLACE)
# <permission> - allows only the player's with the given permission to use the block
# <potion-effect> - potion effect type (http://tinyurl.com/spigot-potioneffect)
# <potion-duration> - time in seconds
# <potion-amplifier> - potion amplifier
#
#  <name>:
#    material: <material>
#    message: <message>
#    trigger: <trigger-type>
#    permission: <permission>
#    effect:
#      type: <potion-effect>
#      duration: <potion-duration>
#      amplifier: <potion-amplifier>
#    commands:
#      - "<command1>"
#      - "<command2>"
#      - "<command3>"

blocks:
  example-block:
    material: REDSTONE_BLOCK
    trigger: RIGHT_CLICK
    message: "&6[BlockEffects] &cRegenerating your health!"
    effect:
      type: REGENERATION
      duration: 25
      amplifier: 2
    permission: blockeffects.redstone_block
  coal-block:
    material: COAL_BLOCK
    trigger: WALK
    message: "&6[BlockEffects] &7You are now blind!"
    effect:
      type: BLINDNESS
      duration: 10
      amplifier: 1
    commands:
      - "say %player% has stepped on a coal_block,"
      - "say he is now blind!"

# ==========================================================================
#                              Security
# ==========================================================================
# Highly recommended to be enabled if you don't want to get spammed with
# effects & messages.
#
# enabled - boolean that enables/disables the security
# cooldown - cooldown when you step on a block (all-blocks)
security:
  enabled: true
  cooldown: 1

# Sends a message if player tries to use a block he doesn't have permission for.
no-permission:
  send: true

# ==========================================================================
#                              World
# ==========================================================================
# List of the worlds in which the BlockEffects are going to work.
enabled-worlds:
  - "world"
 
[​IMG]
We can improve the plugin together contact me and send me your ideas. If the idea is good it will be added in the new (next) version.

[​IMG]
If you find any bugs please report them as soon as possible. Don't report them in the comment / review section, because I won't respond to bug reports there. Send me a private message or open an issue on GitHub. I will do my best to fix them as soon as possible.

View the source code or contribute on:
[​IMG]

If you like the plugin & want to support the development, you can buy me a coffee here!

[​IMG]

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.

BlockEffects is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10 and newer. Downloaded 9,884 times (via Spigot). Download it and open it directly in the game.

Explore more