mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-26 18:39:17 +00:00
1.5.0-SNAPSHOT
This commit is contained in:
50
src/main/resources/basic.yml
Normal file
50
src/main/resources/basic.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
#填写IA物品的命名空间与物品ID
|
||||
basic:
|
||||
#植物的种植盆方块
|
||||
pot: customcrops:pot
|
||||
#植物的浇过水的种植盆方块
|
||||
watered-pot: customcrops:watered_pot
|
||||
#温室玻璃方块
|
||||
greenhouse-glass: customcrops:greenhouse_glass
|
||||
#农作物枯萎后变成的方块,物品ID中请保留stage以保持其下方方块被破坏时,枯萎作物也被破坏的特性
|
||||
dead-crop: customcrops:crop_stage_death
|
||||
#土质探测器,用于查看使用的肥料种类和残余量
|
||||
soil-detector: customcrops:soil_detector
|
||||
|
||||
water-can:
|
||||
watering_can_1:
|
||||
item: customcrops:watering_can_1
|
||||
#水壶最大容量
|
||||
max: 3
|
||||
#水壶工作的范围
|
||||
width: 1
|
||||
length: 1
|
||||
watering_can_2:
|
||||
item: customcrops:watering_can_2
|
||||
max: 4
|
||||
width: 1
|
||||
length: 3
|
||||
watering_can_3:
|
||||
item: customcrops:watering_can_3
|
||||
max: 5
|
||||
width: 3
|
||||
length: 3
|
||||
watering_can_4:
|
||||
item: customcrops:watering_can_4
|
||||
max: 6
|
||||
width: 3
|
||||
length: 5
|
||||
|
||||
sprinkler:
|
||||
sprinkler_1:
|
||||
#洒水器工作范围
|
||||
range: 1
|
||||
#洒水器最大水储量
|
||||
max-water: 5
|
||||
3Ditem: customcrops:sprinkler_1
|
||||
2Ditem: customcrops:sprinkler_1_item
|
||||
sprinkler_2:
|
||||
range: 2
|
||||
max-water: 7
|
||||
3Ditem: customcrops:sprinkler_2
|
||||
2Ditem: customcrops:sprinkler_2_item
|
||||
@@ -1,114 +1,55 @@
|
||||
#是否使用季节
|
||||
#非植物季节则无法耕种,过了季节则枯死
|
||||
enable-season: false
|
||||
#当前季节
|
||||
#使用/customcrops setseason 来切换季节
|
||||
#使用/customcrops nextseason 进入下一季节
|
||||
current-season: spring
|
||||
|
||||
config:
|
||||
#植物生长的可能时间点,你可以在一天设置多个时间点判断生长
|
||||
#为了防止植物生长过快你可以适当调低生长一个阶段的概率
|
||||
#请尽量在植物生长后200ticks以上设置洒水器工作点,如果生长和洒水时间靠太近可能会带来一些不必要的麻烦(例如数据太多,植物还没来得及生长完洒水器就开始工作)
|
||||
#mc的时间范围为0-23999ticks,1秒=20ticks
|
||||
#插件兼容
|
||||
integration:
|
||||
#收获flag为harvest 浇水种植flag为build
|
||||
Residence: false
|
||||
#收获flag为BLOCK-BREAK 浇水种植flag为BUILD
|
||||
WorldGuard: false
|
||||
#只有王国成员可以收获、浇水和种植
|
||||
Kingdoms: false
|
||||
#信任的玩家可以收获、浇水和种植
|
||||
GriefDefender: false
|
||||
|
||||
#生长时间点
|
||||
#生长时间点(tick)
|
||||
#洒水器将会在农作物全部完成生长后开始工作
|
||||
grow-time:
|
||||
- 0
|
||||
- 12000
|
||||
- 1000
|
||||
|
||||
#洒水器工作点
|
||||
sprinkler-time:
|
||||
- 200
|
||||
- 12200
|
||||
#产物品质
|
||||
quality:
|
||||
#若不启用则植物成熟阶段会掉落IA配置里的loot
|
||||
#如果关闭产物品质需要在IA物品配置内自行添加最后一阶段掉落物
|
||||
enable: true
|
||||
#默认品质权重比
|
||||
default-ratio: 17/2/1
|
||||
|
||||
#异步时间检测,此设置需要重启生效
|
||||
#启用异步时间检测会带来更好的性能但是可能会因为服务器的跳tick原因错过一些生长时间点
|
||||
async-time-check: false
|
||||
|
||||
#使用一次水桶可以补充几个洒水器水槽
|
||||
sprinkler-refill: 2
|
||||
|
||||
#生长生效的世界
|
||||
whitelist-worlds:
|
||||
- world
|
||||
|
||||
#骨粉催熟农作物进入下一阶段的概率(0-1)
|
||||
bone-meal-chance: 0.5
|
||||
#使用骨粉是否会让种植盆从湿润转为干燥
|
||||
bone-meal-consume-water: true
|
||||
#粒子效果
|
||||
particle:
|
||||
#使用骨粉成功的粒子
|
||||
success: HEART
|
||||
#使用骨粉失败的粒子
|
||||
failure: VILLAGER_ANGRY
|
||||
|
||||
#温室系统,在温室玻璃正下方的方块可以无视季节种植
|
||||
enable-greenhouse: true
|
||||
#温室玻璃有效范围
|
||||
greenhouse-range: 7
|
||||
|
||||
#植物的种植盆方块
|
||||
pot: customcrops:pot
|
||||
#植物的浇过水的种植盆方块
|
||||
watered-pot: customcrops:watered_pot
|
||||
#水壶1x1
|
||||
watering-can-1: customcrops:watering_can_1
|
||||
#水壶1x3
|
||||
watering-can-2: customcrops:watering_can_2
|
||||
#水壶1x5
|
||||
watering-can-3: customcrops:watering_can_3
|
||||
#温室玻璃方块
|
||||
greenhouse-glass: customcrops:greenhouse_glass
|
||||
#洒水器的家具
|
||||
sprinkler-1: customcrops:sprinkler_1
|
||||
#洒水器的方块的2D物品
|
||||
sprinkler-1-item: customcrops:sprinkler_1_item
|
||||
#优质洒水器的家具
|
||||
sprinkler-2: customcrops:sprinkler_2
|
||||
#优质洒水器的方块的2D物品
|
||||
sprinkler-2-item: customcrops:sprinkler_2_item
|
||||
#农作物枯萎后变成的方块,物品ID中请保留stage以保持其下方方块被破坏时,枯萎作物也被破坏的特性
|
||||
dead-crop: customcrops:crop_stage_death
|
||||
|
||||
#种植的最低和最高Y坐标
|
||||
height:
|
||||
min: 50
|
||||
max: 150
|
||||
#每个区块最大农作物数量和洒水器数量
|
||||
#是否启用限制
|
||||
enable-limit: true
|
||||
max-crops: 64
|
||||
max-sprinklers: 8
|
||||
limit:
|
||||
enable: true
|
||||
crop: 64
|
||||
sprinkler: 8
|
||||
|
||||
#记录生长判断和洒水所需的时间
|
||||
#记录生长判断和洒水所需的时间(测试性能用)
|
||||
log-time-consume: false
|
||||
|
||||
#插件兼容
|
||||
integration:
|
||||
#收获flag为harvest 浇水种植flag为build
|
||||
residence: false
|
||||
#收获flag为BLOCK-BREAK 浇水种植flag为BUILD
|
||||
worldguard: false
|
||||
#只有王国成员可以收获、浇水和种植
|
||||
kingdomsX: false
|
||||
#信任的玩家可以收获、浇水和种植
|
||||
griefdefender: false
|
||||
|
||||
|
||||
#MineDown格式Wiki
|
||||
#https://github.com/Phoenix616/MineDown
|
||||
messages:
|
||||
prefix: '&#ccfbff-#ef96c5&[CustomCrops] '
|
||||
not-a-good-place: '&f这个地方太高/太低了,请换个地方试试吧!'
|
||||
reload: '&f插件已重载.'
|
||||
force-save: '&f成功强制保存缓存信息!'
|
||||
no-such-seed: '&f此种子未在配置文件中配置!'
|
||||
wrong-season: '&f这个季节不适合这种农作物生长!'
|
||||
season-set: '&f成功设置季节为{Season}.'
|
||||
nextseason: '&f已切换到下一季节!'
|
||||
season-disabled: '&f季节系统未启用.'
|
||||
force-grow: '&f已强制生长!'
|
||||
force-water: '&f已强制洒水!'
|
||||
reach-limit-crop: '&f农作物已到达最大区块上限{Max}!'
|
||||
reach-limit-sprinkler: '&f洒水器已到达最大区块上限{Max}!'
|
||||
can-full: '&f水壶已满!'
|
||||
backup: '&f备份完成'
|
||||
spring: '&f春'
|
||||
summer: '&f夏'
|
||||
autumn: '&f秋'
|
||||
winter: '&f冬'
|
||||
#是否只有加载中的区块农作物才会生长
|
||||
#如果你不使用季节、可重复收获、巨大化农作物特性
|
||||
#插件data只会记录正在生长中某个阶段的农作物数据
|
||||
#生长到最后一阶段农作物生长数据就会清除
|
||||
#那么可以尝试设置此值为false来让数据内全部农作物生长
|
||||
#如果你使用上述三个特性中的任意一个,请不要设置为false
|
||||
#否则农作物生长到最后一阶段不会从数据中清除,过大的数据量
|
||||
#可能会导致服务器严重卡顿
|
||||
only-grow-in-loaded-chunks: true
|
||||
@@ -1,32 +1,64 @@
|
||||
#在IA配置文件中
|
||||
#农作物种子ID请以 _seeds 结尾
|
||||
#农作物生长阶段请以 _stage_X 结尾
|
||||
#生长阶段从1开始依次累加
|
||||
#若无法理解可以参考范例配置文件
|
||||
crops:
|
||||
#在IA配置文件中命名农作物时请以_seeds和_stage_X结尾,否则会无法生长和种植
|
||||
#只要遵循正确的命名规则,你可以无限自定义农作物阶段数量
|
||||
tomato:
|
||||
#每个生长点生长一个阶段的概率
|
||||
#此项目必填(0-1)
|
||||
grow-chance: 0.4
|
||||
|
||||
#适宜的生长季节,若未启用季节系统可以无视此项目
|
||||
#若启用季节则必须填写此项目
|
||||
#季节之间用逗号分隔
|
||||
#可用的季节类型spring,summer,autumn,winter
|
||||
season: spring,summer
|
||||
|
||||
#空手收获后返回第几个生长状态
|
||||
#不填写此项目则无法重复收获
|
||||
return: customcrops:tomato_stage_1
|
||||
#收获时获取的基础数量
|
||||
amount: 1~4
|
||||
#农作物收获得到的三种品质
|
||||
quality:
|
||||
1: customcrops:tomato
|
||||
2: customcrops:tomato_silver_star
|
||||
3: customcrops:tomato_golden_star
|
||||
|
||||
#巨大化植物,以极低的概率生长为另一种形态
|
||||
gigantic: customcrops:gigantic_tomato
|
||||
gigantic-chance: 0.01
|
||||
gigantic:
|
||||
block: customcrops:gigantic_tomato
|
||||
chance: 0.01
|
||||
|
||||
#生长季节
|
||||
season:
|
||||
- spring
|
||||
- summer
|
||||
|
||||
requirements:
|
||||
#适宜的生长高度
|
||||
yPos:
|
||||
- 50~100
|
||||
- 150~200
|
||||
#适宜的生长群系
|
||||
biome:
|
||||
- minecraft:plains
|
||||
#适宜的世界
|
||||
world:
|
||||
- world
|
||||
#种植此农作物需要玩家有什么权限
|
||||
permission: 'customcrops.plant.tomato'
|
||||
|
||||
cabbage:
|
||||
grow-chance: 0.8
|
||||
season: summer,autumn
|
||||
amount: 1~2
|
||||
quality:
|
||||
1: customcrops:cabbage
|
||||
2: customcrops:cabbage_silver_star
|
||||
3: customcrops:cabbage_golden_star
|
||||
gigantic: customcrops:gigantic_cabbage
|
||||
gigantic-chance: 0.02
|
||||
requirements:
|
||||
season:
|
||||
- spring
|
||||
- summer
|
||||
|
||||
grape:
|
||||
grow-chance: 0.5
|
||||
season: autumn
|
||||
return: customcrops:grape_stage_4
|
||||
amount: 2~4
|
||||
#空手收获后返回第几个生长状态
|
||||
quality:
|
||||
1: customcrops:grape
|
||||
2: customcrops:grape_silver_star
|
||||
3: customcrops:grape_golden_star
|
||||
return: customcrops:grape_stage_4
|
||||
requirements:
|
||||
season:
|
||||
- spring
|
||||
- summer
|
||||
74
src/main/resources/fertilizer.yml
Normal file
74
src/main/resources/fertilizer.yml
Normal file
@@ -0,0 +1,74 @@
|
||||
#你可以自定义任意数量的肥料
|
||||
|
||||
#有概率一次生长两个阶段
|
||||
加速肥料:
|
||||
speed_1:
|
||||
#肥料名,用于悬浮展示
|
||||
name: '뀌'
|
||||
#生效的概率
|
||||
chance: 0.1
|
||||
#肥料在土壤中存留的生长周期数
|
||||
times: 14
|
||||
#命名空间随意,物品ID请保持一致
|
||||
item: customcrops:speed_1
|
||||
#肥料是否只有在种植前才能使用
|
||||
before-plant: true
|
||||
|
||||
speed_2:
|
||||
name: '뀍'
|
||||
chance: 0.2
|
||||
times: 14
|
||||
item: customcrops:speed_2
|
||||
before-plant: true
|
||||
speed_3:
|
||||
name: '뀎'
|
||||
chance: 0.3
|
||||
times: 14
|
||||
item: customcrops:speed_3
|
||||
before-plant: true
|
||||
|
||||
#土壤在生长点过后有一定概率仍然保持湿润
|
||||
保湿肥料:
|
||||
retaining_1:
|
||||
name: '뀉'
|
||||
chance: 0.1
|
||||
times: 28
|
||||
item: customcrops:retaining_1
|
||||
before-plant: false
|
||||
|
||||
retaining_2:
|
||||
name: '뀊'
|
||||
chance: 0.2
|
||||
times: 28
|
||||
item: customcrops:retaining_2
|
||||
before-plant: false
|
||||
|
||||
retaining_3:
|
||||
name: '뀋'
|
||||
chance: 0.3
|
||||
times: 28
|
||||
item: customcrops:retaining_3
|
||||
before-plant: false
|
||||
|
||||
#更改农作物产物三种品质的权重
|
||||
品质肥料:
|
||||
quality_1:
|
||||
name: '뀆'
|
||||
times: 28
|
||||
chance: 7/2/1
|
||||
item: customcrops:quality_1
|
||||
before-plant: true
|
||||
|
||||
quality_2:
|
||||
name: '뀇'
|
||||
times: 28
|
||||
chance: 11/6/3
|
||||
item: customcrops:quality_2
|
||||
before-plant: true
|
||||
|
||||
quality_3:
|
||||
name: '뀈'
|
||||
times: 28
|
||||
chance: 2/2/1
|
||||
item: customcrops:quality_3
|
||||
before-plant: true
|
||||
48
src/main/resources/messages.yml
Normal file
48
src/main/resources/messages.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
#MiniMessage Format
|
||||
#https://docs.adventure.kyori.net/minimessage/format.html
|
||||
messages:
|
||||
prefix: '<gradient:#ff206c:#fdee55>[CustomCrops] </gradient>'
|
||||
reload: '<white>重载成功! 耗时 <green>{time}ms'
|
||||
no-perm: '<red>权限不足!'
|
||||
lack-args: '<white>参数不足!'
|
||||
wrong-args: '参数错误!'
|
||||
spring: '春'
|
||||
summer: '夏'
|
||||
autumn: '秋'
|
||||
winter: '冬'
|
||||
sprinkler-limit: '此区块的洒水器已到达上限{max}'
|
||||
crop-limit: '此区块的农作物数量已到达上限{max}'
|
||||
not-configed: '此种子未在配置文件中配置!'
|
||||
bad-Y: '此高度不适合这种农作物生长!'
|
||||
bad-biome: '此生物群系不适合这种农作物生长!'
|
||||
bad-perm: '你还没有权限种植这种农作物呢!'
|
||||
bad-world: '这个农作物无法在这个世界生长!'
|
||||
bad-season: '当前季节不适合这种农作物生长!'
|
||||
force-grow: '成功强制 {world} 的农作物生长!'
|
||||
force-water: '成功强制 {world} 的洒水器洒水!'
|
||||
force-save: '成功强制保存缓存信息!'
|
||||
back-up: '已完成数据备份!'
|
||||
set-season: '成功切换世界 {world} 的季节为 {season}!'
|
||||
|
||||
#全息信息显示
|
||||
hologram:
|
||||
#农作物肥料信息
|
||||
grow-info:
|
||||
enable: true
|
||||
#悬浮信息高度偏移
|
||||
y-offset: 0.8
|
||||
#悬浮信息持续时间(秒)
|
||||
duration: 1
|
||||
#悬浮信息内容
|
||||
#可用变量 {fertilizer}肥料名 {times}剩余生效次数 {max_times}最大生效次数
|
||||
text: '<font:customcrops:default>{fertilizer} </font><white>{times}<gray>/<white>{max_times}'
|
||||
#洒水器信息
|
||||
sprinkler-info:
|
||||
enable: true
|
||||
y-offset: -0.2
|
||||
duration: 1
|
||||
#可用变量 {water}当前水量 {max_water}最大蓄水量
|
||||
left: '<font:customcrops:default>뀂'
|
||||
full: '뀁뀃'
|
||||
empty: '뀁뀄'
|
||||
right: '뀁뀅</font>'
|
||||
@@ -1,9 +1,10 @@
|
||||
name: CustomCrops
|
||||
version: '1.4.8'
|
||||
version: '1.5.0-SNAPSHOT'
|
||||
main: net.momirealms.customcrops.CustomCrops
|
||||
api-version: 1.16
|
||||
depend:
|
||||
- ItemsAdder
|
||||
- ProtocolLib
|
||||
softdepend:
|
||||
- PlaceholderAPI
|
||||
- Residence
|
||||
@@ -13,6 +14,4 @@ softdepend:
|
||||
authors: [ XiaoMoMi ]
|
||||
commands:
|
||||
customcrops:
|
||||
usage: /customcrops <args>
|
||||
permission-message: No Permission
|
||||
permission: customcrops.admin
|
||||
usage: /customcrops <args>
|
||||
17
src/main/resources/season.yml
Normal file
17
src/main/resources/season.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
season:
|
||||
#是否使用季节限制
|
||||
#非植物季节则无法耕种,过了季节则枯死
|
||||
enable: true
|
||||
|
||||
auto-season-change:
|
||||
#是否启用内置季节交替
|
||||
#启用此设置将根据服务器单个世界的游戏天数自动计算当前季节
|
||||
enable: true
|
||||
#每个季节的时长(天)
|
||||
duration: 28
|
||||
|
||||
greenhouse:
|
||||
#温室系统,在温室玻璃正下方的方块可以无视季节种植
|
||||
enable: true
|
||||
#温室玻璃有效范围
|
||||
range: 5
|
||||
Reference in New Issue
Block a user