mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Added the ability to configure reinforcement per material types for blocks
generated across the map. This reinforcement is different than player
reinforced blocks as it is done automatically in the DAO cache when a
block of a configured material type is first broken. This type of
reinforcement does NOT get saved to the database.
The configuration is simple:
hardenedMaterials:
IRON_ORE: 3
DIAMOND_ORE: 10
This configuration would cause Iron Ore blocks to require breaking 3 times
before they actually broke. As you can guess, the second material defined
here would cause diamond ore to require 10 breaks.
I will add that the Reinforcement class should be refactored into
IReinforcement, PlayerReinforcement, and EnvironmentalReinforcement so
that this type of reinforcement, with how it is added here, isn't as
kludgey in the code.
61 lines
1016 B
YAML
61 lines
1016 B
YAML
general:
|
|
flashLength: 1
|
|
verboseLogging: false
|
|
autoModeReset: 30
|
|
redstoneDistance: 9
|
|
groupsAllowed: 60
|
|
materials:
|
|
- name: STONE
|
|
strength: 25
|
|
requirements: 1
|
|
flasher: STONE
|
|
- name: IRON_INGOT
|
|
strength: 250
|
|
requirements: 1
|
|
flasher: IRON_BLOCK
|
|
- name: DIAMOND
|
|
strength: 1800
|
|
requirements: 1
|
|
flasher: DIAMOND_BLOCK
|
|
additionalSecurable:
|
|
- BED_BLOCK
|
|
- BOOKSHELF
|
|
nonReinforceable:
|
|
- SAPLING
|
|
- GRASS
|
|
- DEAD_BUSH
|
|
- PISTON_EXTENSION
|
|
- PISTON_MOVING_PIECE
|
|
- RED_ROSE
|
|
- YELLOW_FLOWER
|
|
- BROWN_MUSHROOM
|
|
- RED_MUSHROOM
|
|
- TNT
|
|
- FIRE
|
|
- CROPS
|
|
- SNOW
|
|
- ICE
|
|
- CACTUS
|
|
- SUGAR_CANE_BLOCK
|
|
- PORTAL
|
|
- CAKE_BLOCK
|
|
- PUMPKIN_STEM
|
|
- MELON_STEM
|
|
- VINE
|
|
- NETHER_WARTS
|
|
- ENDER_PORTAL
|
|
hardenedMaterials:
|
|
IRON_ORE: 3
|
|
DIAMOND_ORE: 10
|
|
database:
|
|
driver: com.mysql.jdbc.Driver
|
|
url: jdbc:mysql://localhost:3306/bukkit
|
|
username: bukkit
|
|
password: ''
|
|
isolation: SERIALIZABLE
|
|
logging: false
|
|
rebuild: false
|
|
caching:
|
|
max_age: 300000
|
|
max_chunks: 10000
|