9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-31 12:56:43 +00:00

限制收购

This commit is contained in:
Xiao-MoMi
2022-10-22 00:04:20 +08:00
parent 3217977e43
commit 809d9d688b
18 changed files with 212 additions and 68 deletions

View File

@@ -6,25 +6,10 @@ simple_bait:
- '<white>Reduce the time spent fishing'
- '<white>But make it more difficult to catch fish'
custom-model-data: 646
# Bait Modifier
# Click here to learn how modifier system works: https://www.yuque.com/docs/share/4842ac5f-b5ea-4568-acef-d510f8bc9064?# 《Modifier System》
modifier:
# Change the loot weight of the specified group
# Add or subtract weights
weight-add:
silver: 5
gold: 3
# Multiply or divide weights
weight-multiply:
silver: 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)
difficulty: 3
# Double loot probability
double-loot: 0.06
# Multiply the score got in competition
score: 1.2
difficulty: 2
wild_bait:
material: paper
@@ -41,7 +26,7 @@ magnet_bait:
display:
name: '<gray>Magnet Bait'
lore:
- '<white>Increases the probability of better loot by 15%.'
- '<white>Increases the probability of better loots by 15%.'
custom-model-data: 695
modifier:
weight-MQ:

View File

@@ -1,5 +1,5 @@
# CustomFishing does not contain an enchantment system but it's able to
# read enchantments from NBT tags and customize its bonus!
# CustomFishing does not contain an enchantment system but it's able to read enchantments from NBT tags and customize its bonus!
# https://www.yuque.com/docs/share/4842ac5f-b5ea-4568-acef-d510f8bc9064?# 《Modifier System》
minecraft:luck_of_the_sea:
#levels
1:
@@ -25,7 +25,7 @@ minecraft:lucky_catch:
double-loot: 0.3
# You can register an enchantment in EcoEnchants called "easy_catch"
# And then config its effects in CustomFishing!
# And then create its effects in CustomFishing!
minecraft:easy_catch:
1:
difficulty: -1

View File

@@ -16,6 +16,7 @@ messages:
none-args: '非空参数!'
invalid-args: '无效参数!'
possible-loots: '此处可能钓到: '
reach-sell-limit: '你今天已经卖了很多鱼了!明天再来吧~'
split-char: ','
no-loot: '这个地方什么鱼都没有!'
competition-ongoing: '当前有一场钓鱼比赛进行中! 开始钓鱼以加入比赛获取奖励!'
@@ -28,4 +29,4 @@ messages:
hook-other-entity: '你的鱼钩被其他生物钩走了!'
no-rod: '你必须使用特殊鱼竿才能获得战利品!'
no-player: '虚位以待'
no-score: '无分数'
no-score: '无分数'

View File

@@ -16,6 +16,7 @@ messages:
none-args: 'None arguments!'
invalid-args: 'Invalid arguments!'
possible-loots: 'Possible loots here: '
reach-sell-limit: 'You have earned a lot from selling fish! Come tomorrow.'
split-char: ', '
no-loot: 'There''s no fish in this place!'
competition-ongoing: 'There is currently a fishing tournament in progress! Start fishing to join the contest for a prize!'

View File

@@ -16,6 +16,7 @@ messages:
none-args: '¡Ningún argumento!'
invalid-args: 'Argumentos no válidos'
possible-loots: 'Posible pesca aquí: '
reach-sell-limit: '¡Ganaste mucho dinero vendiendo pescado! Ven mañana.'
split-char: ', '
no-loot: '¡No hay peces en este lugar!'
competition-ongoing: '¡Actualmente hay un torneo de pesca en curso! Empieza a pescar para participar en el concurso y ganar un premio.'

View File

@@ -3,22 +3,32 @@ version: '${version}'
main: net.momirealms.customfishing.CustomFishing
api-version: 1.17
authors: [ XiaoMoMi ]
depend:
- ProtocolLib
softdepend:
- ItemsAdder
- MythicMobs
- Oraxen
- PlaceholderAPI
- Residence
- Kingdoms
- WorldGuard
- GriefDefender
- PlotSquared
- Towny
- EcoEnchants
- Lands
- GriefPrevention
- mcMMO
- AureliumSkills
- CustomCrops
- MMOCore
- EcoSkills
- EcoEnchants
- CrashClaim
- RealisticSeasons
- CustomCrops
- ItemsAdder
- Oraxen
- Jobs
- MMOItems
- eco
- Jobs
- Vault
commands:

View File

@@ -2,21 +2,28 @@ wooden_rod:
display:
name: 'Ordinary wooden fishing rod'
lore:
- 'Its just an ordinary fishing rod'
# The same to baits.yml
- '<gray>Its just an ordinary fishing rod'
- '<gray>But it''s quite friendly to a starter!'
# Click here to learn how modifier system works: https://www.yuque.com/docs/share/4842ac5f-b5ea-4568-acef-d510f8bc9064?# 《Modifier System》
modifier:
difficulty: 1
difficulty: -1
nature_fishing_cane:
display:
name: 'Nature Fishing Cane'
lore:
- '<gray>The wild power makes it easier to be hooked'
- '<gray>But also increase the difficulty'
custom-model-data: 2
modifier:
weight-add:
silver: 5
time: 0.9
difficulty: 1
silver_fishing_rod:
display:
name: 'Silver Fishing Rod'
lore:
- '<gray>Increase the chance of getting silver quality fish'
custom-model-data: 3
modifier:
weight-add:
@@ -26,6 +33,8 @@ silver_fishing_rod:
golden_fishing_rod:
display:
name: 'Golden Fishing Rod'
lore:
- '<gray>Increase the chance of getting golden quality fish'
custom-model-data: 4
modifier:
weight-add:
@@ -35,8 +44,11 @@ golden_fishing_rod:
star_fishing_rod:
display:
name: 'Star Fishing Rod'
lore:
- '<gray>Grants you the ability to fish in the lava'
custom-model-data: 5
modifier:
weight-add:
silver: 20
gold: 10
gold: 10
lava-fishing: true

View File

@@ -20,17 +20,17 @@ sounds:
actions:
message:
enable: true
text: 'You earned {money} from selling the fish'
text: 'You earned {money}$ from selling the fish! You can still gain {remains}$ from selling fish today'
title:
enable: true
title: '<green>Success'
subtitle: 'You earned {money} from selling the fish'
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'
text: 'You earned {money}$ from selling the fish'
commands:
enable: false
value:

View File

@@ -1,4 +1,7 @@
# Vanilla blocks should be in capital format
# ItemsAdder: namespace:id: 'a'
# Oraxen: id: 'a'
AIR: 'air'
ANVIL: 'a'

View File

@@ -1,4 +1,4 @@
primary_fishing_totem:
double_loot_fishing_totem:
# Totem Core Block ID
core:
- o
@@ -11,9 +11,8 @@ primary_fishing_totem:
hologram:
enable: true
text:
- '<white>{time}s <gray>/ <white>{max_time}s'
- '<#87CEFA>Fishing Totem'
- '<white>{time}s <gray>/ <white>{max_time}s'
y-offset: 3.8
# Potion effect type and its amplifier
@@ -26,23 +25,22 @@ primary_fishing_totem:
# placeholders: {activator} {player} {world} {x} {y} {z}
action:
commands-activator:
- ''
#commands-activator: []
messages-activator:
- ''
commands-nearby-players:
- ''
- You activated a double loot totem!
#commands-nearby-players: []
messages-nearby-players:
- ''
- '{activator} activated a fishing totem!'
- 'Players inside of the effective range would get fishing buffs!'
# The layout of the totem
# The greater the layer is, the higher the y position is
# The greater the layer number 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
# “*” represents any type of block is allowed here [example *]
# “()“ represents the block is protected and will not be removed when activating [example (a)]
# “>“ represents the block would turn into another block after activating [example: a>b]
# “|“ represents alternative block choice for this place [example a|b>c]
layer:
4:
- '(p) (o) (p)'

View File

@@ -0,0 +1,6 @@
totem_activator:
material: DIAMOND
display:
name: '<gradient:#F0F8FF:#87CEFA:#F0F8FF>Double Loot Fishing Totem Core'
nbt:
Totem: (String) double_loot_fishing_totem