mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-28 11:29:15 +00:00
300 lines
9.0 KiB
YAML
300 lines
9.0 KiB
YAML
# Developer: @Xiao-MoMi
|
|
# Wiki: https://mo-mi.gitbook.io/xiaomomi-plugins/
|
|
config-version: '32'
|
|
|
|
# Debug
|
|
debug: false
|
|
|
|
# BStats
|
|
metrics: true
|
|
|
|
# Check updates
|
|
update-checker: true
|
|
|
|
# Available locales: english / chinese / french / hungarian
|
|
lang: english
|
|
|
|
# Mechanic settings
|
|
mechanics:
|
|
# Specifies the conditions required for the plugin mechanics to work.
|
|
# Here, the type is !world, which implies the plugin won't work in
|
|
# the world named 'blacklist_world'.
|
|
mechanic-requirements:
|
|
world_requirement:
|
|
type: '!world'
|
|
value:
|
|
- blacklist_world
|
|
|
|
# Configures global effects. This is useful if you want to give all the players certain effects based on certain conditions
|
|
global-effects:
|
|
effect_1:
|
|
type: conditional
|
|
conditions:
|
|
competition:
|
|
ongoing: true
|
|
id:
|
|
- weekend_competition
|
|
effects:
|
|
effect_1:
|
|
type: wait-time-multiplier
|
|
value: 0.85
|
|
|
|
# Configures global events for hook/bait/rod/loot
|
|
# which would help you reduce duplicated lines
|
|
global-events:
|
|
hook: {}
|
|
bait: {}
|
|
loot:
|
|
new_size_record:
|
|
conditional_size_record_action:
|
|
type: conditional
|
|
value:
|
|
conditions:
|
|
has-stats: true
|
|
actions:
|
|
actionbar_action:
|
|
type: actionbar
|
|
value: '<#FFD700>[New Record]</#FFD700> <#FFFFF0>You caught a(n) {nick} which is <#FFA500>{size}cm</#FFA500> long!</#FFFFF0>'
|
|
sound_action:
|
|
type: sound
|
|
value:
|
|
key: "minecraft:block.note_block.cow_bell"
|
|
source: 'player'
|
|
volume: 1
|
|
pitch: 1
|
|
delayed_sound:
|
|
type: delay
|
|
value:
|
|
delay: 2
|
|
actions:
|
|
sound_action:
|
|
type: sound
|
|
value:
|
|
key: "minecraft:block.note_block.bell"
|
|
source: 'player'
|
|
volume: 1
|
|
pitch: 1
|
|
success:
|
|
conditional_size_info_action:
|
|
type: conditional
|
|
value:
|
|
conditions:
|
|
has-size: true
|
|
has-stats: true
|
|
actions:
|
|
actionbar_action:
|
|
type: actionbar
|
|
value: '<gray>You caught a(n) {nick} which is <#F5F5F5>{size}cm</#F5F5F5> long!</gray> <#C0C0C0>(Best record: {record}cm)</#C0C0C0>'
|
|
title_action:
|
|
type: random-title
|
|
value:
|
|
titles:
|
|
- '<green>GG!</green>'
|
|
- '<green>Good Job!</green>'
|
|
subtitles:
|
|
- 'You caught a(n) {nick}'
|
|
- 'Whoa! Nice catch!'
|
|
- 'Oh {nick} here we go!'
|
|
- 'Let''s see what it is!'
|
|
fade-in: 20
|
|
stay: 30
|
|
fade-out: 10
|
|
chance: 1.0
|
|
failure:
|
|
title_action:
|
|
type: random-title
|
|
value:
|
|
titles:
|
|
- '<red>Be concentrated!</red>'
|
|
- '<red>What a pity!</red>'
|
|
- '<red>Try next time!</red>'
|
|
- '<red>Bad luck</red>'
|
|
subtitles:
|
|
- 'The fish escaped...'
|
|
fade-in: 20
|
|
stay: 30
|
|
fade-out: 10
|
|
chance: 1.0
|
|
rod:
|
|
land:
|
|
priority_action:
|
|
type: priority
|
|
value:
|
|
priority_1:
|
|
conditions:
|
|
lava-fishing: true
|
|
actions:
|
|
fake_item_action:
|
|
type: fake-item
|
|
value:
|
|
duration: 35
|
|
position: hook
|
|
item: util:lava_effect
|
|
priority_2:
|
|
conditions:
|
|
lava-fishing: false
|
|
actions:
|
|
fake_item_action:
|
|
type: fake-item
|
|
value:
|
|
duration: 35
|
|
position: hook
|
|
item: util:water_effect
|
|
|
|
# Global properties which would help you reduce duplicated lines
|
|
global-loot-property:
|
|
show-in-fishfinder: true
|
|
disable-stat: false
|
|
disable-game: false
|
|
instant-game: false
|
|
|
|
# Fishing bag is where players can store their baits, utils, hooks and rods (Loot optional)
|
|
fishing-bag:
|
|
# Enable
|
|
enable: true
|
|
# Fishing bag container title
|
|
bag-title: '<blue>{player}''s Fishing Bag</blue>'
|
|
# Can fishing bag store fishing loots?
|
|
can-store-loot: false
|
|
# Other whitelist-items
|
|
whitelist-items:
|
|
- fishing_rod
|
|
# Actions to do if fishing loots are automatically collected into bag
|
|
collect-actions:
|
|
sound_action:
|
|
type: sound
|
|
value:
|
|
key: "minecraft:item.armor.equip_leather"
|
|
source: 'player'
|
|
volume: 1
|
|
pitch: 1
|
|
hologram_action:
|
|
type: hologram
|
|
value:
|
|
duration: 40
|
|
text: '{nick} <#B0E0E6><b>has been stored into bag</#B0E0E6>'
|
|
position: other
|
|
y: 1
|
|
# Actions to do if the fishing bag is full
|
|
full-actions:
|
|
conditional_action:
|
|
type: conditional
|
|
value:
|
|
conditions:
|
|
condition_1:
|
|
type: cooldown
|
|
value:
|
|
key: fishing_bag_full_notice
|
|
time: 60000
|
|
actions:
|
|
message_action:
|
|
type: message
|
|
value: "<#EEE8AA>[Fishing Bag]</#EEE8AA> Your fishing bag has been full."
|
|
|
|
# Fishing wait time
|
|
# This section would take effect if you set "override-vanilla" to true
|
|
# That also means vanilla mechanics for example lure enchantment
|
|
# would no longer take effect, so you have to configurate its effect
|
|
# in enchantment effects.
|
|
fishing-wait-time:
|
|
# override vanilla mechanic
|
|
override-vanilla: false
|
|
# ticks
|
|
min-wait-time: 100
|
|
max-wait-time: 600
|
|
|
|
# Lava fishing settings
|
|
# To modify vanilla fishing time, you should edit paper-world-defaults.yml where there's a section called fishing-time-range
|
|
lava-fishing:
|
|
# ticks
|
|
min-wait-time: 100
|
|
max-wait-time: 600
|
|
|
|
# Size settings
|
|
size:
|
|
# Some effects would increase/decrease size so the option decides whether they could ignore the limit
|
|
restricted-size-range: true
|
|
|
|
# Competition settings
|
|
competition:
|
|
# Use redis for cross server data synchronization
|
|
redis-ranking: false
|
|
# Server group
|
|
server-group: default
|
|
# Increase this value would allow you to use more placeholders like {4_player} {5_score} in sacrifice of some performance
|
|
placeholder-limit: 3
|
|
|
|
# If a player could get multiple loots from fishing, should the loots spawn at the same time or have delays for each (tick)
|
|
multiple-loot-spawn-delay: 4
|
|
|
|
# Other settings
|
|
other-settings:
|
|
# It's recommended to use MiniMessage format. If you insist on using legacy color code "&", enable the support below.
|
|
legacy-color-code-support: false
|
|
|
|
# Thread pool settings
|
|
thread-pool-settings:
|
|
# The size of the core Thread pool, that is, the size of the Thread pool when there is no task to execute
|
|
# Increase the size of corePoolSize when you are running a large server with many players fishing at the same time
|
|
corePoolSize: 10
|
|
# The maximum number of threads allowed to be created in the Thread pool. The current number of threads in the Thread pool will not exceed this value
|
|
maximumPoolSize: 10
|
|
# If a thread is idle for more than this attribute value, it will exit due to timeout
|
|
keepAliveTime: 30
|
|
|
|
# Event priority: MONITOR HIGHEST HIGH NORMAL LOW LOWEST
|
|
event-priority: NORMAL
|
|
|
|
# Save the data from cache to file periodically to minimize the data loss if server crashes
|
|
# -1 to disable
|
|
data-saving-interval: 600
|
|
|
|
# Log the consumption of time on data saving
|
|
log-data-saving: true
|
|
|
|
# Lock player's data if a player is playing on a server that connected to database
|
|
# If you can ensure low database link latency and fast processing, you can consider disabling this option to improve performance
|
|
lock-data: true
|
|
|
|
# Requires PlaceholderAPI to work
|
|
placeholder-register:
|
|
'{record}': '%fishingstats_size-record_{loot}%'
|
|
# Requires server expansion
|
|
'{date}': '%server_time_yyyy-MM-dd-HH:mm:ss%'
|
|
# Requires player expansion
|
|
'{yaw}': '%player_yaw%'
|
|
|
|
# CustomFishing supports using items/blocks from other plugins
|
|
# If items share the same id, they would inherit the effects
|
|
# Check the wiki for examples
|
|
item-detection-order:
|
|
- CustomFishing
|
|
- vanilla
|
|
block-detection-order:
|
|
- vanilla
|
|
|
|
# Custom durability format
|
|
custom-durability-format:
|
|
- ''
|
|
- '<gray>Durability</gray><white>: {dur} <gray>/</gray> {max}</white>'
|
|
|
|
# Offset characters' unicodes
|
|
# Never edit this unless you know what you are doing
|
|
offset-characters:
|
|
font: customfishing:offset_chars
|
|
'1':
|
|
'2':
|
|
'4':
|
|
'8':
|
|
'16':
|
|
'32':
|
|
'64':
|
|
'128':
|
|
'-1':
|
|
'-2':
|
|
'-4':
|
|
'-8':
|
|
'-16':
|
|
'-32':
|
|
'-64':
|
|
'-128': |