9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2026-01-04 15:41:35 +00:00

1.2半成品

This commit is contained in:
Xiao-MoMi
2022-10-17 01:55:10 +08:00
parent cbb929c7ad
commit 3a4d91be99
180 changed files with 5390 additions and 5675 deletions

View File

@@ -10,13 +10,13 @@ simple_bait:
modifier:
# Change the loot weight of the specified group
# Add or subtract weights
weight-PM:
weight-add:
silver: 5
gold: 3
# Multiply or divide weights
weight-MQ:
weight-multiply:
silver: 1.1
gold: 1.1
gold: 0.9
# Change the time to fish (>1 for longer, <1 for shorter)
time: 0.85
# Change the difficulty, for example, if the original difficulty is (1-6), now it becomes (1-9)

View File

@@ -1,16 +1,19 @@
example:
#TOTAL_SCORE
#CATCH_AMOUNT
# TOTAL_SCORE
# CATCH_AMOUNT
# RANDOM
goal: CATCH_AMOUNT
# optional
# Fishing competition can also be started with a command
start-time:
- '5:30'
- '17:30'
#seconds
duration: 300
duration: 300 #seconds
# Min players to begin the competition
# Min players to start the competition
min-players: 2
# Competition information (it will only be shown to participants)
@@ -19,7 +22,12 @@ example:
color: YELLOW
overlay: PROGRESS
# https://docs.adventure.kyori.net/minimessage/format.html
text: '<gray>Time Left: <gold>{time}s <gray>Rank: <gold>{rank} <gray>Time Left: <gold>{minute}m{second}s <gray>Points: <gold>{point}'
text:
- '<gray>Time Left: <gold>{time}s <gray>Rank: <gold>{rank}'
- '<gray>Time Left: <gold>{minute}m{second}s <gray>Points: <gold>{point}'
# seconds
switch-interval: 15
# ticks
refresh-rate: 10
command:
@@ -51,7 +59,7 @@ example:
- ''
- '<blue>----------------------------------------'
# You can customize unlimited ranks' rewards by adding 4,5,6...
# You can customize unlimited ranks' rewards by adding ranks like 4,5,6...
prize:
1:
commands:

View File

@@ -1,91 +1,112 @@
# don't change
config-version: '8'
config-version: '9'
config:
#en/es/cn
lang: en
integrations:
# fishing region hook
WorldGuard: false
# mobs hook
MythicMobs: false
# Papi hook
PlaceholderAPI: true
# Skill xp hook
# If skill xp is added not as expected please check if you have set skill-xp for each loot
# Some plugins like AureliumSkills will still add skill-xp when player failed to fish. Check the xp-source file in those skill plugins and set them to 0
mcMMO: false
MMOCore: false
AureliumSkills: false
EcoSkills: false
# You need a restart to cancel the Jobs xp getting in vanilla way
JobsReborn: false
# Season hook
CustomCrops: false
RealisticSeasons: false
lang: en
# Worlds where the special fishing mechanic take effects
whitelist-worlds:
enable: false
worlds:
- world
# Should the fishing bar only show after player reel in
# Otherwise the bar would show immediately the bobber is hooked
double-reel-in: true
integration:
# Skill-xp
mcMMO: false
MMOCore: false
AureliumSkills: false
EcoSkills: false
JobsReborn: false
# Season condition
CustomCrops: false
RealisticSeasons: false
other-loot:
# This is useful for vanilla loots
# Vanilla loot is available only when 'double-reel-in' is true
vanilla: true
# 0.4 means 40% of the loots are from vanilla
# and 60% are from CustomFishing Loot system
vanilla-ratio: 0.4
# Should vanilla loots have the same fishing mechanic CustomFishing provides
bar: true
# mcMMO treasure system
# chance represents the chance to try to be a mcMMO treasure
# But it doesn't mean 50% chance of the loot would be mcMMO treasure
# mcMMO has a complex treasure system
mcMMO: false
mcMMO-chance: 0.5
worlds:
# Mode: whitelist/blacklist
mode: whitelist
list:
- world
mechanics:
other-loots:
# Should other loots have the same fishing mechanic CustomFishing provides
fishing-bar: true
vanilla:
# Vanilla loot is available only when 'double-reel-in' is true
enable: true
# 0.4 means 40% of the loots are from vanilla
# and 60% are from CustomFishing Loot system
ratio: 0.4
mcMMO:
# mcMMO treasure system
# chance represents the chance to try to be a mcMMO treasure
# But it doesn't mean 50% chance of the loot would be mcMMO treasure
# mcMMO has a complex treasure system
enable: false
chance: 0.5
# The same to vanilla (refer to the wiki)
# https://technical-minecraft.fandom.com/wiki/Fishing
need-open-water: true
need-special-rod:
# if set true and "double-reel-in" is true, players must use rods with CustomFishing's NBT Tags to get loots in CustomFishing but they can experience the special fishing mechanic.
# This option will not work if "double-reel-in" is false because in that mode no vanilla loots are available
# Players must use rods with CustomFishing's NBT Tags to get loots in CustomFishing but they can experience the special fishing mechanic.
for-loots: false
# if set true and "double-reel-in" is true, players must use rods with CustomFishing's NBT Tags to experience the special fishing mechanic. Otherwise they can only fish in a vanilla way
# Players must use rods with CustomFishing's NBT Tags to experience the special fishing mechanic. Otherwise they can only fish in a vanilla way
to-fish: false
# does rod lose durability when player successfully fish
rod-lose-durability: true
# Cool down time of fish finder
# Cool down time of fish finder(ms)
fishfinder-cooldown: 3000
# Change the time bobber needs to be hooked
time-multiply: 2
# Competition (Requires a restart)
# Competition
fishing-competition: true
# Convert MMOItems' rod into CustomFishing's rod (Requires a restart)
# keep the same key name both in MMOItems and CustomFishing and rods can extend the bonus of those in CustomFishing
convert-MMOITEMS: false
# Prevent other players to pick up your fishing loot (Requires a restart)
# This is useful for players to fish in a public area
prevent-other-players-pick-up-loot: false
titles:
success:
title:
- '<green>Success!</green>'
- '<green>GG!</green>'
- '<green>Good Job!</green>'
subtitle:
- 'You have captured a {loot}'
- 'Hi Harm Hi {loot} Here we go!'
fade:
# ticks
in: 10
stay: 30
out: 10
failure:
title:
- '<red>Real food!</red>'
- '<red>Failure!</red>'
- '<red>Try next time!</red>'
subtitle:
- 'The fish escaped'
- 'Pay more attention on it!'
fade:
in: 10
stay: 30
out: 10
# If there's a plugin conflict, event priority sometimes works
# HIGHEST NORMAL LOWEST
other-settings:
# MONITOR HIGHEST HIGH NORMAL LOW LOWEST
event-priority: NORMAL
# If enabled, players would not be able to get job exp in vanilla way (Requires a restart)
disable-JobsReborn-fishing-exp: false
# If enabled, players would not be able to get job exp in vanilla way
disable-JobsReborn-fishing-exp: false
# Convert MMOItems' rod into CustomFishing's rod
# keep the same key name both in MMOItems and CustomFishing so rods can extend the bonus of those in CustomFishing
convert-MMOItems-rods: false
# Prevent other players to pick up your fishing loot
# This is useful for players to fish in a public area
prevent-other-players-pick-up-loot: false

View File

@@ -0,0 +1,30 @@
# Do not change
config-version: '1'
settings:
# Valid Options: SQLite MYSQL
# Only MYSQL supports pool.
storage-mode: SQLite
use-pool: false
disable-async: false
# MySQL settings
MySQL:
host: localhost
port: 3306
user: root
password: password
database: minecraft
table-name: nameplates_data
property:
use-ssl: false
encoding: utf8
timezone: ''
allowPublicKeyRetrieval: false
# Connection pool settings
Pool-Settings:
maximum-pool-size: 10
minimum-idle: 10
maximum-lifetime: 180000
idle-timeout: 60000

View File

@@ -1,462 +0,0 @@
rubbish:
material: paper
show-in-fishfinder: false
display:
name: 'Garbage'
weight: 50
time: 100000
difficulty: 1-1
custom-model-data: 640
Pufferfish:
material: pufferfish
display:
name: 'Pufferfish'
weight: 50
time: 100000
difficulty: 1-5
requirements:
weather:
- clear
cod:
material: cod
display:
name: 'Cod'
weight: 50
time: 100000
difficulty: 1-5
requirements:
weather:
- clear
salmon:
material: salmon
display:
name: 'Salmon'
weight: 50
time: 100000
difficulty: 1-5
requirements:
weather:
- clear
tropical_fish:
material: tropical_fish
display:
name: 'Tropical Fish'
weight: 50
time: 100000
difficulty: 1-5
requirements:
weather:
- clear
biome:
- minecraft:jungle
- minecraft:bamboo_jungle
tuna:
material: paper
display:
name: 'Tuna Fish'
weight: 50
time: 100000
difficulty: 1-1
custom-model-data: 641
tuna_fish_silver_star:
material: paper
display:
name: 'Tuna Fish Silver Star'
weight: 50
time: 100000
difficulty: 1-1
group: silver
custom-model-data: 666
tuna_fish_golden_star:
material: paper
display:
name: 'Tuna Fish Golden Star'
weight: 50
time: 100000
difficulty: 1-1
group: gold
custom-model-data: 667
pike:
material: paper
display:
name: 'Pike Fish'
weight: 50
time: 100000
difficulty: 1-2
custom-model-data: 642
pike_fish_silver_star:
material: paper
display:
name: 'Pike Fish Silver Star'
weight: 50
time: 100000
difficulty: 1-2
group: silver
custom-model-data: 664
pike_fish_golden_star:
material: paper
display:
name: 'Pike Fish Golden Star'
weight: 50
time: 100000
difficulty: 1-2
group: gold
custom-model-data: 665
golden:
material: paper
display:
name: 'Golden Fish'
weight: 50
time: 100000
difficulty: 1-2
custom-model-data: 643
golden_fish_silver_star:
material: paper
display:
name: 'Golden Fish Silver Star'
weight: 50
time: 100000
difficulty: 1-2
group: silver
custom-model-data: 658
golden_fish_golden_star:
material: paper
display:
name: 'Golden Fish Golden Star'
weight: 50
time: 100000
group: gold
difficulty: 1-2
custom-model-data: 659
perch_fish:
material: paper
display:
name: 'Perch Fish'
weight: 50
time: 100000
difficulty: 1-2
custom-model-data: 644
perch_fish_silver_star:
material: paper
display:
name: 'Perch Fish Silver Star'
weight: 50
time: 100000
group: silver
difficulty: 1-2
custom-model-data: 660
perch_fish_golden_star:
material: paper
display:
name: 'Perch Fish Golden Star'
weight: 50
group: gold
time: 100000
difficulty: 1-2
custom-model-data: 661
mullet_fish:
material: paper
display:
name: 'Mullet Fish'
weight: 50
time: 100000
difficulty: 1-2
custom-model-data: 645
mullet_fish_silver_star:
material: paper
display:
name: 'Mullet Fish Silver Star'
weight: 50
group: silver
time: 100000
difficulty: 1-2
custom-model-data: 662
mullet_fish_golden_star:
material: paper
display:
name: 'Mullet Fish Golden Star'
weight: 50
time: 100000
group: gold
difficulty: 1-2
custom-model-data: 663
sardine_fish:
material: paper
display:
name: 'Sardine Fish'
weight: 50
time: 100000
difficulty: 1-2
custom-model-data: 668
sardine_fish_silver_star:
material: paper
display:
name: 'Sardine Fish Silver Star'
weight: 50
time: 100000
group: silver
difficulty: 1-2
custom-model-data: 669
sardine_fish_golden_star:
material: paper
display:
name: 'Sardine Fish Golden Star'
weight: 50
time: 100000
group: gold
difficulty: 1-2
custom-model-data: 670
carp_fish:
material: paper
display:
name: 'Carp Fish'
weight: 50
time: 100000
difficulty: 1-2
custom-model-data: 671
carp_fish_silver_star:
material: paper
display:
name: 'Carp Fish Silver Star'
weight: 50
time: 100000
group: silver
difficulty: 1-2
custom-model-data: 672
carp_fish_golden_star:
material: paper
display:
name: 'Carp Fish Golden Star'
weight: 50
time: 100000
group: gold
difficulty: 1-2
custom-model-data: 673
cat_fish:
material: paper
display:
name: 'Cat Fish'
weight: 50
time: 100000
difficulty: 1-2
custom-model-data: 674
cat_fish_silver_star:
material: paper
display:
name: 'Cat Fish Silver Star'
weight: 50
group: silver
time: 100000
difficulty: 1-2
custom-model-data: 675
cat_fish_golden_star:
material: paper
display:
name: 'Cat Fish Golden Star'
weight: 50
time: 100000
group: gold
difficulty: 1-2
custom-model-data: 676
octopus_fish:
material: paper
display:
name: 'Octopus Fish'
weight: 50
time: 100000
difficulty: 1-2
custom-model-data: 677
octopus_fish_silver_star:
material: paper
display:
name: 'Octopus Fish Silver Star'
weight: 50
group: silver
time: 100000
difficulty: 1-2
custom-model-data: 678
octopus_fish_golden_star:
material: paper
display:
name: 'Octopus Fish Golden Star'
weight: 50
time: 100000
group: gold
difficulty: 1-2
custom-model-data: 679
sunfish_fish:
material: paper
display:
name: 'Sunfish Fish'
weight: 50
time: 100000
difficulty: 1-2
custom-model-data: 680
sunfish_fish_silver_star:
material: paper
display:
name: 'Sunfish Fish Silver Star'
weight: 50
group: silver
time: 100000
difficulty: 1-2
custom-model-data: 681
sunfish_fish_golden_star:
material: paper
display:
name: 'Sunfish Fish Golden Star'
weight: 50
time: 100000
group: gold
difficulty: 1-2
custom-model-data: 682
red_spnapper_fish:
material: paper
display:
name: 'Red Snapper Fish'
weight: 50
time: 100000
difficulty: 1-2
custom-model-data: 683
red_spnapper_fish_silver_star:
material: paper
display:
name: 'Red Snapper Fish Silver Star'
weight: 50
time: 100000
group: silver
difficulty: 1-2
custom-model-data: 684
red_spnapper_fish_golden_star:
material: paper
display:
name: 'Red Snapper Golden Star'
weight: 50
time: 100000
group: gold
difficulty: 1-2
custom-model-data: 685
salmon_void_fish:
material: paper
display:
name: 'Salmon Void Fish'
weight: 50
time: 100000
difficulty: 1-2
custom-model-data: 686
salmon_void_fish_silver_star:
material: paper
display:
name: 'Salmon Void Fish Silver Star'
weight: 50
time: 100000
group: silver
difficulty: 1-2
custom-model-data: 687
salmon_void_fish_golden_star:
material: paper
display:
name: 'Salmon Void Fish Golden Star'
weight: 50
time: 100000
group: gold
difficulty: 1-2
custom-model-data: 688
woodskip_fish:
material: paper
display:
name: 'Woodskip Fish'
weight: 50
time: 100000
difficulty: 1-2
custom-model-data: 689
woodskip_fish_silver_star:
material: paper
display:
name: 'Woodskip Fish Silver Star'
weight: 50
group: silver
time: 100000
difficulty: 1-2
custom-model-data: 690
woodskip_fish_golden_star:
material: paper
display:
name: 'Woodskip Fish Golden Star'
weight: 50
group: gold
time: 100000
difficulty: 1-2
custom-model-data: 691
sturgeon_fish:
material: paper
display:
name: 'Sturgeon Fish'
weight: 50
time: 100000
difficulty: 1-2
custom-model-data: 692
sturgeon_fish_silver_star:
material: paper
display:
name: 'Sturgeon Fish Silver Star'
weight: 50
group: silver
time: 100000
difficulty: 1-2
custom-model-data: 693
sturgeon_fish_golden_star:
material: paper
display:
name: 'Sturgeon Fish Golden Star'
weight: 50
time: 100000
group: gold
difficulty: 1-2
custom-model-data: 694

View File

@@ -7,6 +7,8 @@ rainbow_fish:
nick: 'Example Fish'
# Should it be displayed in fish finder?
show-in-fishfinder: false
# Is this loot only available when player fish in lava
in-lava: false
# The weight(relative chance) of getting this fish
weight: 10
# Optional

View File

@@ -4,7 +4,7 @@ messages:
prefix: '<gradient:#0070B3:#A0EACF>[CustomFishing] </gradient>'
reload: '重载成功.'
no-perm: '你没有权限!'
not-online: '玩家不在线!'
not-online: '玩家 {Player} 不在线!'
not-exist: '此物品不存在!'
escape: '太久没拉钩鱼儿跑走啦!'
give-item: '成功给予玩家 {Player} {Amount}x {Item}.'
@@ -12,6 +12,8 @@ messages:
no-console: '这个指令不能由控制台执行!'
wrong-amount: '不能给玩家数量为负数的物品!'
lack-args: '参数不足.'
none-args: '非空参数!'
invalid-args: '无效参数!'
cooldown: '你使用找鱼器的速度太快了!'
possible-loots: '此处可能钓到: '
split-char: ','

View File

@@ -12,6 +12,8 @@ messages:
no-console: 'This command cannot be executed from the console!'
wrong-amount: 'You cannot give a player an item with a negative quantity!'
lack-args: 'Insufficient parameters.'
none-args: 'None arguments!'
invalid-args: 'Invalid arguments!'
cooldown: 'You''re using the fish finder too fast!'
possible-loots: 'Possible loots here: '
split-char: ', '

View File

@@ -12,6 +12,8 @@ messages:
no-console: '¡Este comando no puede ser ejecutado por la consola!'
wrong-amount: 'No puedes dar a un jugador un artículo con una cantidad negativa.'
lack-args: 'Parámetros insuficientes.'
none-args: '¡Ningún argumento!'
invalid-args: 'Argumentos no válidos'
cooldown: '¡Estás usando el buscador de peces demasiado rápido!'
possible-loots: 'Posible pesca aquí: '
split-char: ', '

View File

@@ -3,7 +3,7 @@ skeletalknight:
enable: true
# MythicMobsID
mythicmobsID: SkeletalKnight
mob: SkeletalKnight
# The level of the mob
level: 0
@@ -29,7 +29,7 @@ skeletalknight:
piranha:
enable: false
mythicmobsID: piranha
mob: piranha
name: 'Piranha'
weight: 50
time: 1000000

View File

@@ -1,7 +1,7 @@
name: CustomFishing
version: '${version}'
main: net.momirealms.customfishing.CustomFishing
api-version: 1.16
api-version: 1.17
authors: [ XiaoMoMi ]
softdepend:
- MythicMobs

View File

@@ -11,7 +11,7 @@ nature_fishing_cane:
name: 'Nature Fishing Cane'
custom-model-data: 2
modifier:
weight-PM:
weight-add:
silver: 5
silver_fishing_rod:
@@ -19,7 +19,7 @@ silver_fishing_rod:
name: 'Silver Fishing Rod'
custom-model-data: 3
modifier:
weight-PM:
weight-add:
silver: 20
gold: -10
@@ -28,7 +28,7 @@ golden_fishing_rod:
name: 'Golden Fishing Rod'
custom-model-data: 4
modifier:
weight-PM:
weight-add:
silver: -20
gold: 20
@@ -37,6 +37,6 @@ star_fishing_rod:
name: 'Star Fishing Rod'
custom-model-data: 5
modifier:
weight-PM:
weight-add:
silver: 20
gold: 10

View File

@@ -1,27 +0,0 @@
#MiniMessage Format
#https://docs.adventure.kyori.net/minimessage/format.html
titles:
failure:
title:
- '<red>Real food!</red>'
- '<red>Failure!</red>'
- '<red>Try next time!</red>'
subtitle:
- 'The fish escaped'
- 'Pay more attention on it!'
fade:
in: 10
stay: 30
out: 10
success:
title:
- '<green>Success!</green>'
- '<green>GG!</green>'
- '<green>Good Job!</green>'
subtitle:
- 'You have captured a {loot}'
- 'Hi Harm Hi {loot} Here we go!'
fade:
in: 10
stay: 30
out: 10

View File

@@ -0,0 +1,55 @@
example:
# Totem Core Block ID
core:
- b
- r
radius: 10
# seconds
duration: 300
particle: SPELL
# Potion effect type and its amplifier
potion-effects:
NIGHT_VISION: 1
# Fishing bonus
modifier:
weight-add:
silver: -20
gold: 20
# placeholders: {activator} {players_in_radius} {all_players}
# {world} {x} {y} {z}
commands:
- 'effect give {player_in_radius} '
messages:
activator:
- You activated a totem
players_in_radius:
- You are now in {activator}'s totem
- Your chance of getting gold fish is temporarily up
all_players:
- {activator} activated a totem at {world},{x},{y},{z}
# The layout of the totem
# The greater the layer is, the higher the y position is
# Totem core can be put anywhere in the layout
# “*” represents any type of block is allowed here
# “()“ represents the block is protected and will not be removed when activating
# “>“ represents the block would turn into another block after activating
# “|“ represents alternative block choice for this place
layer:
1:
- 'g>n (c) g>n'
- '(c) (c) (c)'
- 'g>n (c) g>n'
2:
- '(c) air (c)'
- 'air r|b>h air'
- '(c) air (c)'
3:
- '* (c) *'
- '(c) (c) (c)'
- '* (c) *'

View File