Requirements
Conditions for everything in CustomFishing
Simple Requirements(普通条件):
Can be applied to loots 可应用于战利品
# Optional 可选
requirements:
#Biome 生物群系
biome:
- minecraft:plains
- minecraft:taiga
#Y coordinate Y坐标
ypos:
- 50~100
- 150~200
#World weather 天气
weather:
- rain
- clear
- thunder
#Player permission 玩家权限
permission: 'customfishing.rainbowfish'
#Specified world 指定世界
world:
- world
#Game Time Range 游戏时间范围
time:
- 0~12000
#Requires skill plugin 技能等级
skill-level: 10
#Requires job plugin 职业等级
job-level: 10
#Requires Season Plugin 季节
season:
- Spring
- Autumn
#Date in real life
date:
- 2/29
#Rod in player's hand
rod:
- wooden_rod
#If there's a competition going on
competition: true
#Bait
bait:
- simple_bait
# Requires PlaceholderAPI 需要安装PlaceholderAPI
# Create complex condition as you want 可以创造复杂的条件
# "||" means one of the conditions is true, it would be true
# 或运算,有一个为真,则返回真值
# "&&" means all the conditions must be true to be true
# 与运算,全部为真,才返回真值
# available types "==" "!=" ">" "<" ">=" "<="
# 可用的运算条件 "==" "!=" ">" "<" ">=" "<="
papi-condition:
'||':
condition_1:
type: '=='
papi: '%player_world%'
value: world
condition_2:
type: '=='
papi: '%player_world%'
value: Island
'&&':
condition_1:
type: '>='
papi: '%player_health%'
value: 5
condition_2:
type: '<'
papi: '%player_health%'
value: 15
Advanced Requirements(高级条件):
Can be applied to totems/rods/baits/enchants/utils 可应用于图腾/鱼竿/鱼饵/附魔/实用道具
# Advanced requirements require a section called message to inform players
# Messages are optional and can be listed
# All the types in simple requirements can be used here
# 高级需求需要你填写一个不满足条件的信息
# Optional
requirements:
requirement_1:
type: permission
message: '<red>You don''t have permission to use this rod!'
value: star_fishing_rod.use
requirement_2:
type: world
message:
- '<red>You can only use this rod in Nether.'
- 'This is the second line'
value:
- world_nether
requirement_3:
type: papi-condition
value:
'||':
condition_1:
type: '=='
papi: '%player_world%'
value: world
condition_2:
type: '=='
papi: '%player_world%'
value: Island
'&&':
condition_1:
type: '>='
papi: '%player_health%'
value: 5
condition_2:
type: '<'
papi: '%player_health%'
value: 15
Last updated