mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2025-02-21 02:41:28 +01:00
Updated Flags (markdown)
parent
dbb9eb5379
commit
8fa2b6caf3
60
Flags.md
60
Flags.md
@ -173,17 +173,22 @@ All Info provided inside () will be one of the examples.
|
||||
- **projectile-impact-block** - Use to manage a projectile hitting a block (When an arrow hits a dirt block)
|
||||
- **projectile-impact-entity**[<sup>1</sup>](#note1) - Use to manage a projectile hitting a entity (When an arrow hits a Pixelmon|Mobs)
|
||||
|
||||
## Context Group Keys
|
||||
## Custom GD context group types
|
||||
|
||||
Context Group Keys can be used to specify all of a type of something, for instance all monsters.
|
||||
GD provides a few context group types that can be used to specify all of a type of something, for instance all monsters.
|
||||
> **Note: Starting with MC versions 1.14+, GD integrates with vanilla's tag system. It is highly recommended to use the vanilla tag system. See https://minecraft.gamepedia.com/Tag for more information and https://minecraft.gamepedia.com/Tutorials/Creating_a_data_pack for more info.
|
||||
|
||||
### Available Keys
|
||||
|
||||
- #any
|
||||
- #ambient
|
||||
- #animal
|
||||
- #aquatic
|
||||
- #crops
|
||||
- #food
|
||||
- #hanging
|
||||
- #monster
|
||||
- #pet
|
||||
- #vehicle
|
||||
|
||||
### Example 1
|
||||
@ -194,4 +199,53 @@ or
|
||||
`/cf enter-claim false context[default=admin target=#monster]`
|
||||
|
||||
### Notes
|
||||
<a name="note1"><sup>1</sup></a> Entity type (`modid:monster|aquatic|ambient|animal`) may also be used to target all entities of that type from a specific mod.
|
||||
<a name="note1"><sup>1</sup></a> Entity type (`modid:monster|aquatic|ambient|animal`) may also be used to target all entities of that type from a specific mod.
|
||||
|
||||
|
||||
## Flag Control
|
||||
The flag control section lets you enable/disable flag functionality on a per-flag basis. By default, all flags are enabled. If you have no use for a specific flag, set the flag to false in this section.
|
||||
|
||||
```
|
||||
# Controls which flags are enabled.
|
||||
# Note: Disabling a flag will cause GD to bypass all functionality for it.
|
||||
# Note: If you want full protection, it is recommended to keep everything enabled.
|
||||
flag-control {
|
||||
block-break=true
|
||||
block-grow=true
|
||||
block-modify=true
|
||||
block-place=true
|
||||
block-spread=true
|
||||
collide-block=true
|
||||
collide-entity=true
|
||||
command-execute=true
|
||||
command-execute-pvp=true
|
||||
enter-claim=true
|
||||
entity-chunk-spawn=true
|
||||
entity-damage=true
|
||||
entity-riding=true
|
||||
entity-spawn=true
|
||||
entity-teleport-from=true
|
||||
entity-teleport-to=true
|
||||
exit-claim=true
|
||||
explosion-block=true
|
||||
explosion-entity=true
|
||||
interact-block-primary=true
|
||||
interact-block-secondary=true
|
||||
interact-entity-primary=true
|
||||
interact-entity-secondary=true
|
||||
interact-inventory=true
|
||||
interact-inventory-click=true
|
||||
interact-item-primary=true
|
||||
interact-item-secondary=true
|
||||
inventory-item-move=true
|
||||
item-drop=true
|
||||
item-pickup=true
|
||||
item-spawn=true
|
||||
item-use=true
|
||||
leaf-decay=true
|
||||
liquid-flow=true
|
||||
portal-use=true
|
||||
projectile-impact-block=true
|
||||
projectile-impact-entity=true
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue
Block a user