Home›Java›Mods›Forcefield - Execute Commands Based on Player Distance
Forcefield - Execute Commands Based on Player Distance
ModsJava

Forcefield - Execute Commands Based on Player Distance

Java mod listed for Minecraft 1.12. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
Forcefield is a simple plugin that allows you to configure custom forcefields that can execute commands when a set player, or any player, enters and/or exits the set radius of the person with the forcefield active.

[​IMG]

[​IMG]
Using any command requires the base forcefield.use permission.

[​IMG]

The only configuration is currently the Forcefields.yml file. Here you can configure your own forcefield types. Here's what it looks like:
Code (Text):
Example:
  name: Example
  # The radius that the target must enter/exit in order to execute commands. This is a 3d distance, so y value is also considered.
  radius: 5
  # How commands are executed - enter "both" for enter and exit commands, or "enter" or "exit" for just those.
  type: both
  # Whether the enter command is repeated while the player remains in the radius. If false, the enter command only executes once when the target enters the radius.
  repeat: false
  # Commands on enter and exit. If you don't want any commands to execute, use "none". You can list as many commands as you want, one per line. A slash is not needed.
  EnterCommands:
  - time day
  ExitCommands:
  - time night
 

This is my first major plugin, so I greatly appreciate any feedback. I plan to improve the plugin in the future, so any suggestions are welcome. If you have an issue with the plugin, leave a detailed description of the problem in the discussion and I will do my best to fix it as soon as possible.

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.

Forcefield - Execute Commands Based on Player Distance is a free Minecraft Java mod. Compatible with Minecraft 1.12. Downloaded 228 times (via Spigot). Download it and open it directly in the game.

Explore more