9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2026-01-06 15:51:50 +00:00

回收商店

This commit is contained in:
Xiao-MoMi
2022-10-19 23:15:08 +08:00
parent 976bce4dbf
commit 177f3bea5b
30 changed files with 835 additions and 79 deletions

View File

@@ -10,6 +10,7 @@ example:
start-time:
- '12:30'
- '18:30'
#seconds
duration: 300

View File

@@ -1,11 +1,13 @@
# don't change
config-version: '9'
config-version: '10'
# cn/en/es
lang: en
# Plugin hooks
integration:
# Sell fish
Vault: true
# Skill-xp
mcMMO: false
MMOCore: false
@@ -15,8 +17,19 @@ integration:
# Season condition
CustomCrops: false
RealisticSeasons: false
# Prevent players from activating totems in some regions
Residence: false
WorldGuard: false
Kingdoms: false
GriefDefender: false
PlotSquared: false
Towny: false
Lands: false
GriefPrevention: false
CrashClaim: false
BentoBox: false
# Worlds where fishing mechanic takes effects
worlds:
# Mode: whitelist/blacklist
mode: whitelist
@@ -24,21 +37,17 @@ worlds:
- world
- world_nether
# Mechanic settings
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
@@ -46,42 +55,35 @@ mechanics:
# mcMMO has a complex treasure system
enable: false
chance: 0.5
# The same to vanilla (refer to the wiki)
# The same to vanilla mechanic (refer to the wiki)
# https://technical-minecraft.fandom.com/wiki/Fishing
need-open-water: false
need-special-rod:
# 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
# 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(ms)
fishfinder-cooldown: 3000
# Competition
fishing-competition:
enable: true
# Enable redis server for syncing data between servers
redis: false
# Fishing bag is a place where players can store their baits, utils, rods (Fish optional)
fishing-bag:
enable: true
# This would add additional NBT Tags to the fish
can-store-fish: false
# File/SQLite/MySql
# File/MySql
data-storage-mode: File
# Lava fishing settings
lava-fishing:
# ticks
min-time: 100
max-time: 600
min-wait-time: 100
max-wait-time: 600
# Fishing result titles
titles:
success:
title:
@@ -98,7 +100,7 @@ titles:
out: 10
failure:
title:
- '<red>Real food!</red>'
- '<red>Be concentrated!</red>'
- '<red>Failure!</red>'
- '<red>Try next time!</red>'
subtitle:
@@ -109,20 +111,17 @@ titles:
stay: 30
out: 10
# Other settings
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
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
prevent-other-players-pick-up-loot: false
# Log the money player get from selling the fish in the console
log-earnings: true

View File

@@ -19,21 +19,9 @@ MySQL:
maximum-lifetime: 180000
idle-timeout: 60000
# SQLite settings
SQLite:
file-name: data
table: customfishing_data
# MongoDB settings
MongoDB:
client: 'mongodb://localhost:3307'
database: customfishing
collection: customfishing.statistics
# Redis server
# Sync competition scores between servers without lag!
Redis:
enable: false
host: localhost
port: 6379
MaxTotal: 10

View File

@@ -17,7 +17,7 @@ rainbow_fish:
score: 10
# Specify the bar. If not specified, it will be random
layout:
- bar1
- bar_1
# Difficulty
# '1' represents the pointer moves every 1 tick
# '7' represents the pointer moves 7 pixels each time
@@ -34,8 +34,17 @@ rainbow_fish:
name: '<rainbow>✖Example Rainbow Fish✖</rainbow>'
lore:
- '<gray>This is a <font:uniform>rainbow fish!'
- '<gray>It is {size}cm long!'
custom-model-data: 1
# Optional
size: 10~200
# Optional
price:
base: 50
bonus: 0.3
# Custom NBT tags
# If you are not sure about the NBT tag. You can use command '/cfishing import xxx'
# (Int) (Byte) (String) (Float) (String) (Double) (Short) (Long) (UUID) (Boolean) (IntArray) (ByteArray)
@@ -43,11 +52,6 @@ rainbow_fish:
itemsadder:
namespace: '(String) momirealms'
id: '(String) rainbow_fish'
SomeNBT:
NBTS:
byte: '(Byte) 127'
float: '(Float) 3.14159'
Price: '(Double) 10'
# Available events: success/failure/hook
# Available actions: message/command/exp/mending/skill-xp

View File

@@ -14,7 +14,6 @@ messages:
lack-args: '参数不足.'
none-args: '非空参数!'
invalid-args: '无效参数!'
cooldown: '你使用找鱼器的速度太快了!'
possible-loots: '此处可能钓到: '
split-char: ','
no-loot: '这个地方什么鱼都没有!'
@@ -28,5 +27,5 @@ messages:
force-competition-cancel: '已强制取消当前正在进行的比赛!'
hook-other-entity: '你的鱼钩被其他生物钩走了!'
no-rod: '你必须使用特殊鱼竿才能获得战利品!'
no-player: ''
no-score: '无'
no-player: '虚位以待'
no-score: '无分数'

View File

@@ -14,7 +14,6 @@ messages:
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: ', '
no-loot: 'There''s no fish in this place!'

View File

@@ -14,7 +14,6 @@ messages:
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: ', '
no-loot: '¡No hay peces en este lugar!'

View File

@@ -19,6 +19,8 @@ softdepend:
- MMOItems
- eco
- Jobs
- Vault
commands:
customfishing:
usage: /customfishing
@@ -29,4 +31,23 @@ commands:
fishingbag:
usage: /fishingbag open
description: fishing bag command
permission: customfishing.user
permission: customfishing.fishingbag
sellfish:
usage: /sellfish
description: fishing bag command
permission: customfishing.sellfish
permissions:
customfishing.*:
description: Gives access to all customfishing commands
children:
customfishing.admin: true
customfishing.fishingbag: true
customfishing.sellfish: true
customfishing.admin:
default: op
customfishing.fishingbag:
default: true
customfishing.sellfish:
default: true

View File

@@ -0,0 +1,89 @@
container-title: '<gradient:#A52A2A:#800000:#A52A2A>Sell Fish</gradient>'
rows: 6
price-formula: '{base} + {bonus} * {size}'
sounds:
open: minecraft:block.chest.open
close: minecraft:block.chest.close
success: minecraft:block.amethyst_block.break
deny: minecraft:block.anvil.destroy
confirm: minecraft:entity.villager.trade
type: player
actions:
message:
enable: true
text: 'You earned {money} from selling the fish'
title:
enable: true
title: '<green>Success'
subtitle: 'You earned {money} from selling the fish'
in: 20
stay: 40
out: 20
actionbar:
enable: true
text: 'You earned {money} from selling the fish'
commands:
enable: false
value:
- 'money give {player} {money}'
functional-icons:
slots:
- 50
sell:
material: IRON_BLOCK
display:
name: '<#00CED1><bold>● <bold:false>Sell the fish'
lore:
- '<font:uniform><gradient:#E6E6FA:#48D1CC:#E6E6FA>You will gain {money}$</gradient></font>'
custom-model-data: 1
deny:
material: REDSTONE_BLOCK
display:
name: '<red><bold>● <bold:false>Denied'
lore:
- '<font:uniform><gradient:#E6E6FA:red:#E6E6FA>Nothing to sell!</gradient></font>'
custom-model-data: 1
decorative-icons:
glass-pane:
material: BLACK_STAINED_GLASS_PANE
display:
name: ' '
slot:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 18
- 19
- 27
- 28
- 36
- 37
- 45
- 46
- 47
- 48
- 49
- 51
- 52
- 53
- 54
vanilla-item-price:
COD: 10
PUFFERFISH: 10
SALMON: 10
TROPICAL_FISH: 10