/abilityprotection
Permission Level: 3
Permission Node: mineminenomi.command.ability_protection
Abilities can be whitelisted from these areas using the "Protection Whitelist" config field, if an ability is whitelisted it will bypass any properties an area might have, meaning a whitelisted ability can damage the ground and other entities within an area even if that area's properties do not allow for it!
Command Usage
- /abilityprotection new <label> <size>
- Creates a new protection of selected size at the sender's position
- /abilityprotection props <props> <label> <value>
- Changes one of the properties of the given protection
- The following properties exist, each protection has its own properties that can be changed separately from others
block_destruction
- allows the destruction of blocks within protections
- default:
false
entity_damage
- allows entities to be damaged within protection
- default:
false
block_restoration
- allows blocks to be restored after being exploded or replaced, mined blocks will not get restored
- default:
false
abilities_use
- allows the usage of abilities, this extends to projectiles of said abilities being allowed, it does not however extend to the functionality of said abilities or their projectiles, the block_destruction or entity_damage properties will still have to be enabled if you wish the abilities being used to have any damage or effect on the world.
- default:
false
stat_loss
- allows stat loss (according to the config) on death when enabled, if disabled it'll ignore the config completely and keep all the player's stats intact
- default:
true
death
- allows dying within a protection, when disabled it'll put the player in an unconscious state for an
unconscious_time
amount of time - default:
true
- allows dying within a protection, when disabled it'll put the player in an unconscious state for an
unconscious_time
- the amount of time a player is knocked down when "dying" if the
death
property is disabled - capped at
1200
(ticks or 60 seconds) - default:
40
(ticks or 2 seconds)
- the amount of time a player is knocked down when "dying" if the
restoration_amount
- amount of blocks to be restored every interval.
- capped at
500
- default:
15
restoration_interval
- interval, in ticks, between each restoration
- capped at
1200
(ticks or 60 seconds) - default:
20
(ticks or 1 second)
restoration_distance
- distance in blocks between the destruction and a player after which the area can begin to regenerate
- capped at
1000
- default:
10
- /abilityprotection list
- Lists all the protection areas with their label and positions
- Entries can be clicked in order to teleport to their positions
- /abilityprotection info <label>
- Lists all the properties of a give protection
- /abilityprotection resize <label> <size>
- Resized the given protection area with the new given size
- /abilityprotection remove <label>
- Removes the protection area with the selected label
- /abilityprotection view <true/false>
- Generates a wall similar to the world border of vanilla surrounding the area being protected
- If the area's Y value is bigger than 256 the top and bottom won't render
More Info
- Block state is preserved however inventories are not! If a lamp gets destroyed while powered, it will be restored in its powered state (together with the redstone powering it), however if a chest gets destroyed all of its contents will drop as normal, these items CAN get stuck inside the restored chunks depending on how the ground looks.
- Test using multiple values for
restoration_amount
andrestoration_interval
to see what fits your needs, if the server is small enough a large amount of blocks restored quickly might be more ideal than the default values for example.