protections.yml
Last updated
Last updated
You can make your very own custom protection, all you have to do is this:
First, give it a name inside the "protections" variable, it can be anything, players will not see this unless they have access to the /base give command Then you need to assign it these variables:
block: What kind of block it will be
name: The display name of the protection (this one will be visible)
lore: The lore of the protection
Here's an example of an fully formated protection block.
legendaryProtection:
block: "BEACON"
name: "&8[&6&lสแดษขแดษดแด
แดสส&8] &7แดสแดแดแดแดแดษชแดษด สสแดแดแด"
enchanted: true
lore:
- "&7Lore"
health:
enable: true
base-health-capacity: 1000
starting-health: 125
health-capacity-per-upgrade: 100 # gain X amount of health per upgrade
max-upgrade-amount: 5 # can be upgraded X times
upgrade-price:
type: "MONEY" # Available options: "MONEY" | "ITEM"
money:
price-per-upgrade: 400 # Money per upgrade, further prices may vary depending on the multiplier
price-multiplier: 1.1 # Set to 1 to disable
item:
item: "COOKIE" # Only used if the type is "ITEM"
model-data: -1 # Only allow items with custom model data to be used as fuel | Set to -1 to disable and disallow items with model data to be used
amount: 1
regen:
delay-after-damage: 200 # Ticks | After X amount of ticks, start regenerating
regen-amount: 1 # 1 HP every second
no-health:
decay:
consume-amount: 2 # Set to 0 to stop ot | Set to 1 to leave it as it is | Negative values will do the opposite
fuel:
consume-amount: 2 # Set to 0 to stop ot | Set to 1 to leave it as it is | Negative values will do the opposite
generator:
scale-with-level: true # Multiply the amount to consume by the current level
consume-amount: 50 # Normal values will be deducted from the generator's generated amount, negative values will add money to the generator | Set to 0 to have no effect
damage:
block-break:
amount: 3
messages:
dealt: "&8[&6&lDAMAGE&8] - &7Damage dealt: &e%damage-block-break%&7 | Health left: &a%current-health%"
no-health-remaining: "&8[&6&lDAMAGE&8] - &7This protection has no health left!"
explosion:
amount: 8
messages:
dealt: "&8[&6&lDAMAGE&8] - &7Explosion Damage dealt: &e%damage-explosion%&7 | Health left: &a%current-health%"
no-health-remaining: "&8[&6&lDAMAGE&8] - &7This protection has no health left!"
decay:
enable: true
# Must have fuel enabled to work.
# FALSE = Protections will remain placed forever unless broken by their owner
# TRUE = Protections will decay over time letting other players to claim them
decay-interval: 345600 # Seconds, time it takes for the protection to decay
redeem-cost: 500 # Amount of money required to redeem the protection (the owner can just replenish the fuel)
range:
infinite-y-range: false # Makes the Y axis range infinite (from bedrock to build limit)
base-range: 30 # blocks
range-per-upgrade: 10 # blocks
max-upgrade-amount: 10 # can be upgraded X times
upgrade-price:
type: "MONEY" # Available options: "MONEY" | "ITEM"
money:
price-per-upgrade: 3000 # Money per upgrade, further prices may vary depending on the multiplier
price-multiplier: 1.1 # Set to 1 to disable
item:
item: "COOKIE" # Only used if the type is "ITEM"
model-data: -1 # Only allow items with custom model data to be used as fuel | Set to -1 to disable and disallow items with model data to be used
amount: 1
generator:
enable: true # FALSE = Protections will NOT generate money, TRUE = Protections generates money
base-generator: 500 # Money
money-per-upgrade: 100 # Adds X amount to the generator production per upgrade
max-upgrade-amount: 100 # Can be upgraded X times
upgrade-price:
type: "MONEY" # Available options: "MONEY" | "ITEM"
money:
price-per-upgrade: 100 # Money per upgrade, further prices may vary depending on the multiplier
price-multiplier: 1.1 # Set to 1 to disable
item:
item: "COOKIE" # Only used if the type is "ITEM"
model-data: -1 # Only allow items with custom model data to be used as fuel | Set to -1 to disable and disallow items with model data to be used
amount: 1
interval: 840 # Every X seconds, generate money
storage-capacity:
enable: true
base-storage-capacity: 5000
storage-cap-per-upgrade: 50
max-upgrade-amount: 25
upgrade-price:
type: "MONEY" # Available options: "MONEY" | "ITEM"
money:
price-per-upgrade: 300 # Money per upgrade, further prices may vary depending on the multiplier
price-multiplier: 1.1 # Set to 1 to disable
item:
item: "COOKIE" # Only used if the type is "ITEM"
model-data: -1 # Only allow items with custom model data to be used as fuel | Set to -1 to disable and disallow items with model data to be used
amount: 1
fuel:
enable: true # FALSE = Protections will stay up forever, TRUE = Protections gradually lose fuel, when it reaches 0 it starts decaying and deactivates
starting-fuel: 20 # Starting amount of fuel (in the fuel tank)
base-fuel-capacity: 40 # Starting fuel capacity (max amount of fuel it can hold)
fuel-per-upgrade: 5 # Increase max fuel capacity by X amount
max-upgrade-amount: 75 # Can be upgraded X times
upgrade-price:
type: "MONEY" # Available options: "MONEY" | "ITEM"
money:
price-per-upgrade: 600 # Money per upgrade, further prices may vary depending on the multiplier
price-multiplier: 1.1 # Set to 1 to disable
item:
item: "COOKIE" # Only used if the type is "ITEM"
model-data: -1 # Only allow items with custom model data to be used as fuel | Set to -1 to disable and disallow items with model data to be used
amount: 1
consume-fuel-interval: 17280 # Consume 1 fuel every X amount of seconds
fuel-price:
type: "MONEY" # Available options: "MONEY" | "ITEM"
money:
price: 700 # Money spent for 1 fuel
item:
item: "COOKIE" # Only used if the type is "ITEM"
model-data: -1 # Only allow items with custom model data to be used as fuel | Set to -1 to disable and disallow items with model data to be used
amount: 1 # Cost amount of the specified item
animations:
placing-down: # Animation to play when the player places down a protection
type: "GRADUAL" # Available: "DEFAULT", "CORNERS", "COLLAPSE", "GRADUAL", "NONE"
particle-amount-multiplier: 4 # Range * multiplier !!! WARNING !!! High values will result in a not-so-pleasant experience (a LOT of lag) !!! WARNING !!!
execute-times: 2 # Execute the animation X amount of times
ticks-between-executes: 20 # Higher values means slower animation speed
constant: # If to play the animation repeatedly while inside the protected area
enabled: true
holograms:
enable: true
remove-near-holograms: 3 # Blocks, set to -1 to disable (if the server does not close properly some holograms may be bugged)
regular:
distance-from-protection: 2.6
lines:
line-1:
text: "&6HEALTH &8[ &a%current-health% &8] &6HEALTH"
spacing: 0.28
line-2:
text: "&c&l&k| &7Owner: &6&l%player% &8- %protection-name% &c&l&k|"
spacing: 0.4
line-3:
text: "&7Fuel: %fuel-current-consume-interval_total% &8| &7Decay: %decay-current-time-left%"
spacing: 0.4
line-4:
text: "&7Generator LVL: &6%generator-current-level%"
spacing: 0.25
line-5:
text: "&7Fuel LVL: &6%fuel-current-level%"
spacing: 0.25
line-6:
text: "&7Range LVL: &6%range-current-level%"
spacing: 0.25
decaying:
distance-from-protection: 2.6
lines:
line-1:
text: "&c&lDECAYING &8[ &a%decay-current-time-left% &8] &c&lDECAYING"
spacing: 0.28
line-2:
text: "&c&l&k| &7Owner: &6&l%player% &8- %protection-name% &c&l&k|"
spacing: 0.4
line-3:
text: "&7Generator LVL: &6%generator-current-level%"
spacing: 0.25
line-4:
text: "&7Fuel LVL: &6%fuel-current-level%"
spacing: 0.25
line-5:
text: "&7Range LVL: &6%range-current-level%"
spacing: 0.25
Modify these however you'd like, and you're all done! If the server is offline just save the protections.yml file and start your server, if your server is up you can do /base reload and /base give to obtain it.