Force-Field
Force-Fields
What does this plugin do?
This plugin makes invisible blocks have a knockback effect on the player, making an invisible wall that the player cannot get though.
You could use this in order to avoid using glass walls, that may ruin your landscape, or something like that. ;)
How does this plugin work?
It's quite simple. Make a wall with any block that you want, and then get your worldedit wand, and then replace that block with the block id 36.
For example, if you made the wall out of stone, you would select the area, and type "/ /replace 1 36."
After that, when a player tries to walk through that invisible barrier, they will be knocked back.
Permission nodes
There are only two permission nodes, as listed below.
This permission will allow you to walk though a forcefield.
• ForceField.bypass
This permission will allow you to break a forcefield.
• ForceField.break
One way force-fields
As of version 1.2 (currently awaiting approval) you can create one way force-fields. The way that it works is that, first, you will have to anable "oneWay" in the config, then you have to have a marker block one block before the force-field if you want it to block a player. Example, if you want to block a player with the force field, put a marker block down (Glowstone by default) so that they will have to walk from the glowstone into the force-field. If there is no marker block before the forcefield, the player will be able to move through the force-field.
Suggestions
If you have any suggestions on how I can improve this plugin, please submit a ticket, or post a comment. :)
Donations
If you would like to be awesome enough to support my developing, donations would be amazing. :)
@CommodoreAlpha
It turns out that I had overlooked the fact that players could remove the force-field with right clicks. (I have fixed this in the latest version)
Also, I tested it, and players can get through the force-field if they have 4+ walking speed, or 3+ flying speed. I have set it up now that you can increase the width of the force-field, and that will be able to block them even if they are using speed 10. I couldn't make it that it would work on just a one block thick force-field, because sometimes bukkit can't keep up with the move events. With that asid, I will try and improve it in the next version.
Does this block the ability for people to right-click block 36 to make it disappear?
Also, would a force field be able to knock back a player running through it with, say, the level 10 speed potion effect?
@JeremyPark123999:
I am sorry! You are right; I tested it only on my local test-server with an old version of NCP " It works fine now! :)
@Crafter213
I tested the plugin with noCheatPlus. The knockback doesn't get blocked. Perhaps it's another plugin that's blocking it?
Great Plugin! It looks really nice :)
But please add suport for noCheatPlus :) Otherwise, noCheatPlus can block the knockback and the players can walk through the Forcefield...