9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-26 18:39:17 +00:00
This commit is contained in:
Xiao-MoMi
2022-10-05 14:53:54 +08:00
parent 984fbff8e8
commit 7bb18a4925
19 changed files with 283 additions and 657 deletions

View File

@@ -1,13 +1,9 @@
#Don't change
config-version: '9'
# lang: english / spanish / chinese
lang: chinese
integration:
# AntiGrief
Residence: false
@@ -50,7 +46,7 @@ optimization:
auto-back-up: true
mechanics:
# Requires a restart tp change mode
# Mode: tripwire/item_frame
crops-mode: tripwire
@@ -99,7 +95,6 @@ mechanics:
# Season would not affect ripe crops(for better performance and friendly player's experience)
season:
enable: true
# If you want all the worlds share the same season
sync-seasons:
enable: false

View File

@@ -50,4 +50,83 @@ tomato:
value:
- crops.plant.tomato
# The message to be shown when player doesn't fit the requirement
message: 'You don''t have permission to plant this seed!'
message: 'You don''t have permission to plant this seed!'
grape:
quality-loots:
amount: 3~4
quality:
1: grape
2: grape_silver_star
3: grape_golden_star
return: grape_stage_4
season:
- Spring
- Summer
- Autumn
garlic:
quality-loots:
amount: 1~4
quality:
1: garlic
2: garlic_silver_star
3: garlic_golden_star
season:
- Autumn
- Winter
redpacket:
other-loots:
loot_1:
item: redpacket
min_amount: 1
max_amount: 2
chance: 1
loot_2:
item: redpacket
min_amount: 1
max_amount: 4
chance: 0.8
loot_3:
item: redpacket
min_amount: 1
max_amount: 2
chance: 0.4
cabbage:
quality-loots:
amount: 1~1
quality:
1: cabbage
2: cabbage_silver_star
3: cabbage_golden_star
season:
- Spring
- Summer
gigantic-crop:
block: gigantic_cabbage
chance: 0.02
pepper:
quality-loots:
amount: 3~6
quality:
1: pepper
2: pepper_silver_star
3: pepper_golden_star
return: pepper_stage_3
season:
- Spring
- Autumn
corn:
quality-loots:
amount: 1~3
quality:
1: corn
2: corn_silver_star
3: corn_golden_star
season:
- Summer
- Autumn

View File

@@ -2,23 +2,25 @@
#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: '<white>参数错误!'
spring: '春'
summer: '夏'
autumn: ''
winter: ''
limitation-tripwire: '<white>此区块的拌线数量已到达上限 {max}'
limitation-itemframe: '<white>此区块的展示框数量已到达上限 {max}'
grow-simulation: '<white>已开始模拟生长'
back-up: '<white>已完成数据备份!'
set-season: '<white>成功切换世界 {world} 的季节为 {season}!'
before-plant: '<white>这种肥料必须在种植前使用!'
reload: '<white>Reloaded! Took <green>{time}ms'
no-perm: '<red>No Permission!'
lack-args: '<white>Arguments are insufficient!'
wrong-args: '<white>Wrong arguments!'
none-args: '<white>None arguments!'
invalid-args: '<white>Invalid arguments!'
spring: 'Spring'
summer: 'Summer'
autumn: 'Autumn'
winter: 'Winter'
limitation-tripwire: '<white>Tripwires in this chunk have reached limitation {max}'
limitation-itemframe: '<white>Item frames in this chunk have reached limitation {max}'
grow-simulation: '<white>Growing simulation has started'
set-season: '<white>Successfully set {world}''s season to {season}!'
before-plant: '<white>This fertilizer must be used before planting!'
wrong-season: '<white>Current season is not suitable for planting this seed'
no-season: '此世界没有季节'
season-disabled: '季节系统已被禁用'
auto-season-disabled: '自动季节切换已被禁用,无法计算此变量'
world-not-exist: '世界 {world} 不存在'
season-not-exist: '季节 {season} 不存在'
no-season: 'No season'
season-disabled: 'Season is disabled'
auto-season-disabled: 'Failed to count'
world-not-exist: 'World {world} does not exist'
season-not-exist: 'Season {season} does not exist'

View File

@@ -3,26 +3,24 @@
messages:
prefix: '<gradient:#ff206c:#fdee55>[CustomCrops] </gradient>'
reload: '<white>¡Recargado! Tomó <green>{time}ms'
no-perm: '<red>¡No hay permisos!'
lack-args: '<white>Los argumentos son insuficientes.'
wrong-args: '<white>Argumentos equivocados!'
no-perm: '<red>No tienes permisos!'
lack-args: '<white>Los argumentos son insuficientes'
wrong-args: '<white>Argumentos equivocados'
none-args: '<white>¡Ningún argumento!'
invalid-args: '<white>Argumentos no válidos'
spring: 'Primavera'
summer: 'Verano'
autumn: 'Otoño'
winter: 'Invierno'
sprinkler-limit: '<white>Los aspersores han llegado al límite de su capacidad {max}'
crop-limit: '<white>Los cultivos han llegado al límite de su tamaño {max}'
not-configed: '<white>Esta semilla no está configurada en la configuración.'
bad-Y: '<white>Esta altura no es adecuada para plantar.'
bad-biome: '<white>Este bioma no es apto para ser plantado.'
bad-perm: '<white>¡No tienes permiso para plantar este cultivo!'
bad-world: '<white>Este mundo no es adecuado para plantar'
bad-season: '<white>La temporada actual no es adecuada para la plantación'
force-grow: '<white>¡Forzó a los cultivos de {world} a empezar a crecer!'
force-water: '<white>¡Forzó a los aspersores del {world} a empezar a crecer!'
force-save: '<white>¡Guardado con éxito la caché en un archivo!'
force-all: '<white>Forced {world}''s crops to start growing and sprinklers to start working!'
back-up: '<white>Backed up!'
set-season: '<white>¡Cambió la estación de {world} a {season}!'
before-plant: '<white>Este abono debe utilizarse antes de la siembra.'
no-season: 'Temporada Desactivada'
limitation-tripwire: '<white>Los Tripwires en este trozo han alcanzado la limitación {max}'
limitation-itemframe: '<white>Los ItemFrames de este trozo han alcanzado el límite {max}'
grow-simulation: '<white>La simulación de crecimiento ha comenzado'
set-season: '<white>Fijado con éxito {world}''s temporada a {season}!'
before-plant: '<white>Este abono debe utilizarse antes de la siembra'
wrong-season: '<white>La temporada actual no es adecuada para plantar esta semilla'
no-season: 'Sin temporada'
season-disabled: 'La temporada está desactivada'
auto-season-disabled: 'No se ha podido contar'
world-not-exist: 'World {world} no existe'
season-not-exist: 'Temporada {season} no existe'

View File

@@ -1,70 +0,0 @@
#填写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
#如果你想要水壶有自定义耐久度
#请在ia里将它设置为耐久度的物品例如木剑
#IA的自定义耐久度对本插件生效
water-can:
watering_can_1:
item: customcrops:watering_can_1
#水壶最大容量
max: 3
#水壶工作的范围
width: 1
length: 1
#水壶的最大耐久度,不填写则无限耐久
durability: 100
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
lore:
#是否修改水壶物品的Lore
watering-can:
enable: true
#Lore样式
#可用变量 {water}当前水量 {max_water}最大蓄水量
lore:
- '<italic:false><white>{water_info}'
- '<italic:false><gray>右键水方块为水壶加水'
#水量 {water_info}
left: '<font:customcrops:default>뀂'
full: '뀁뀃'
empty: '뀁뀄'
right: '뀁뀅</font>'
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

View File

@@ -1,155 +0,0 @@
#请不要修改此值
config-version: '6'
config:
# 语言: english / spanish / chinese
lang: chinese
# 模式: tripwire / item_frame
# 此设置需要重启服务器
# ------------ tripwire ------------
# 优势:
# ● 几乎完全异步
# ● 有原版一样的真实碰撞体积
#
# 劣势:
# ● 拌线数量限制127
# ● 破坏拌线产生的视觉问题
# ● 无法移除破坏拌线的音效
#
# ------------ item_frame ------------
# 优势:
# ● 无限制农作物数量
# ● 支持旋转
#
# 劣势:
# ● 展示框是实体,相对较卡
# ● Spigot优化了实体可见距离
# ● 没有真实的碰撞体积
# ● ItemsAdder的战利品系统无法应用于家具
#
crop-mode: tripwire
# 农作物会有随机的朝向吗?
# 这只在展示框模式中生效
rotation:
enable: false
# 4 / 8
variant: 4
integration:
#领地保护
Residence: false
WorldGuard: false
Kingdoms: false
GriefDefender: false
PlotSquared: false
Towny: false
Lands: false
GriefPrevention: false
CrashClaim: false
BentoBox: false
#增加技能经验
AureliumSkills: false
mcMMO: false
MMOCore: false
EcoSkills: false
JobsReborn: false
#季节同步
RealisticSeasons: false
# Mode 1:
# ● 农作物仅在加载中的区块生长
# Mode 2:
# ● 在线玩家种植的农作物会生长
# Mode 3:
# ● (推荐) Mode 1 + Mode 2
# Mode 4:
# ● 在这个模式下请关闭季节
# ● 所有数据内的农作物都会生长
grow-mode: 3
# 开始生长的时间(ticks)
# 1000ticks 代表游戏时间 7点 (0-23999)
# 洒水器将在所有农作物完成生长后开始工作
grow-time:
- 1000
# 现实时间
#real-time:
# - 06:30
# 农作物将在开始生长的时间点后多少秒内完成生长seconds
# 这是为了避免大量农作物在同一时间点进行判断和方块替换,否则会造成卡顿
# 假如你有100个农作物默认配置代表在游戏时间7点后的现实时间60秒内100个农作物会在这60秒内随机时间点完成生长
time-to-grow: 60
# 和上面的配置类似,只不过这一次是洒水器工作的时间
time-to-work: 30
# 异步时间检测 (需要重启)
# 服务端可能因为某些原因跳tick所以异步模式下可能会错过生长判断
# 异步检测不是很有必要,同步的检测也不会造成性能问题,除非你设置了几百个白名单世界
async-time-check: false
# 哪些世界的农作物能够生长(即白名单世界)
whitelist-worlds:
- world
# 所有世界的农作物都生长吗?
# 此选项适用于单玩家单世界服务器.
# 这种模式下你只能填写一个白名单世界作为时间,季节的判断依据.
all-world-grow: false
# 农作物巨大化是否仅进行一次尝试
# 如果你喜欢星露谷模式,农作物将在成熟后继续吸收水分,每天都有概率巨大化
# 如果你喜欢起源模式,你可以设置巨大化农作物为金农作物,并且仅有一次成为金农作物的机会
gigantic-only-one-try: false
quality:
# 如果禁用品质系统你需要在ItemsAdder的配置文件中单独设置每个农作物的掉落物
enable: true
# 默认品质比例
default-ratio: 17/2/1
# 使用水桶右键洒水器能够补充几格水量
sprinkler-refill: 2
# 使用水壶右键水方块的时候能够为水壶补充多少水量
water-can-refill: 1
# 能否使用水壶为洒水器加水
water-can-add-water-to-sprinkler: true
# 使用水壶的时候发送水花粒子效果吗
water-particles: true
# 是否启用骨粉特性
bone-meal:
enable: true
chance: 0.5
success-particle: VILLAGER_HAPPY
# 区块限制最大农作物和洒水器数量
# 建议开启限制因为一个区块内过多的农作物方块会导致IA插件报错Stack Overflow
limit:
enable: true
crop: 64
sprinkler: 8
# 玩家是否可以使用右键收获农作物
# 如果禁用右键收获,那么重复收获的特性也会被关闭
right-click-harvest: true
# 玩家是否必须要空手才能右键收获
harvest-with-empty-hand: true
# 是否阻止玩家在错误季节的种植
prevent-plant-if-wrong-season: true
# 是否告知玩家这是错误的季节
should-notify-if-wrong-season: true

View File

@@ -1,132 +0,0 @@
#在IA配置文件中
#农作物种子ID请以 _seeds 结尾
#农作物生长阶段请以 _stage_X 结尾
#生长阶段从1开始依次累加
#若无法理解可以参考范例配置文件
crops:
tomato:
#收获时候掉落多少个农产品
amount: 1~4
#品质农作物掉落
quality:
1: customcrops:tomato
2: customcrops:tomato_silver_star
3: customcrops:tomato_golden_star
#当你破坏农作物的时候这个事件会同时被ItemsAdder和CustomCrops处理所以IA配置内的掉落物会被必定掉落
#当你右键收获农作物的时候这个事件仅被CustomCrops处理因此是否掉落IA配置内的掉落物为可选项目
#右键收获的时候是否掉落IA配置内的掉落物
#这对于那些需要农作物掉落额外物品的用户帮助很大,比如掉落种子(但是此设置仅适用于拌线模式因为IA的家具没有掉落物系统)
drop-ia-loots: false
#右键收获的时候是否额外掉落IA物品
#这对于那些需要农作物掉落额外物品的用户帮助很大,比如掉落种子(这是本插件提供的额外掉落物系统独立于IA存在所以拌线和展示框模式都适用)
drop-other-loots:
- customcrops:tomato_seeds
#可选
#农作物在某个生长点的生长概率
#比如你可以设置一天在0点6点12点18点进行生长判断不建议设置太多每次生长概率为0.25,这样即可增大玩家加载到农作物区块的概率
#但是同一时间点种植的农作物,可能会出现一个已经成熟,而另一个还在第一阶段(如果你喜欢这种模式,可以这样设置)
grow-chance: 0.9
#可选
#巨大化农作物
gigantic:
block: customcrops:gigantic_tomato
chance: 0.01
#如果你想要使用展示框/盔甲架作为巨大化农作物的载体
#你需要像这样填写注意IA的API不提供solid屏障方块的放置
#所以家具模式下的巨大化作物无法被屏障包裹
#gigantic:
# furniture: customcrops:gigantic_tomato
# chance: 0.01
#可选
commands:
- 'say {player} harvested a tomato! lol'
#可选
#如果你启用了技能插件的兼容,那么可以设置收获该农作物的经验值
#skill-xp: 100
#可选
#若不填写则农作物四季生长
season:
- summer
- autumn
#可选
#一些农作物种植的其他条件
requirements:
yPos:
- 50~100
- 150~200
biome:
- minecraft:plains
world:
- world
permission: 'customcrops.plant.tomato'
cabbage:
amount: 1~2
quality:
1: customcrops:cabbage
2: customcrops:cabbage_silver_star
3: customcrops:cabbage_golden_star
gigantic:
block: customcrops:gigantic_cabbage
chance: 0.01
season:
- spring
grape:
amount: 2~4
quality:
1: customcrops:grape
2: customcrops:grape_silver_star
3: customcrops:grape_golden_star
#可选
#右键收获的时候农作物返回哪一个阶段
return: customcrops:grape_stage_4
season:
- autumn
corn:
amount: 2~3
quality:
1: customcrops:corn
2: customcrops:corn_silver_star
3: customcrops:corn_golden_star
season:
- autumn
- summer
pepper:
amount: 3~6
quality:
1: customcrops:pepper
2: customcrops:pepper_silver_star
3: customcrops:pepper_golden_star
season:
- spring
- summer
return: customcrops:pepper_stage_3
garlic:
amount: 3~4
quality:
1: customcrops:garlic
2: customcrops:garlic_silver_star
3: customcrops:garlic_golden_star
redpacket:
amount: 3~4
quality:
1: customcrops:redpacket
2: customcrops:redpacket
3: customcrops:redpacket

View File

@@ -1,101 +0,0 @@
#你可以自定义任意数量的肥料
#有概率一次生长两个阶段
speed:
speed_1:
#肥料名,用于悬浮展示
name: '뀌'
#生效的概率
chance: 0.1
#肥料在土壤中存留的生长周期数
times: 14
#命名空间随意物品ID请保持一致
item: customcrops:speed_1
#肥料是否只有在种植前才能使用
before-plant: true
#施肥的粒子效果(可选)
#https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html
#particle: VILLAGER_HAPPY
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:
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:
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
#增加农作物的产量
quantity:
quantity_1:
name: '뀏'
times: 14
chance: 0.5
bonus: 1
item: customcrops:quantity_1
before-plant: true
quantity_2:
name: '뀐'
times: 14
chance: 0.5
bonus: 2
item: customcrops:quantity_2
before-plant: true
quantity_3:
name: '뀑'
times: 14
chance: 0.8
bonus: 2
item: customcrops:quantity_3
before-plant: true

View File

@@ -1,17 +0,0 @@
season:
#是否使用季节限制
#非植物季节则无法耕种,过了季节则枯死
enable: true
auto-season-change:
#是否启用内置季节交替
#启用此设置将根据服务器单个世界的游戏天数自动计算当前季节
enable: true
#每个季节的时长(天)
duration: 28
greenhouse:
#温室系统,在温室玻璃正下方的方块可以无视季节种植
enable: true
#温室玻璃有效范围
range: 5

View File

@@ -1,32 +0,0 @@
#使用水壶浇水的音效
water-pot:
sound: minecraft:block.water.ambient
type: player
#使用水壶装水的音效
add-water-to-can:
sound: minecraft:item.bucket.fill
type: player
#将水加入洒水器的音效
add-water-to-sprinkler:
sound: minecraft:item.bucket.fill
type: player
#放置洒水器的音效
place-sprinkler:
sound: minecraft:block.bone_block.place
type: player
#种植种子的音效
plant-seed:
sound: minecraft:item.hoe.till
type: player
#使用肥料的音效
use-fertilizer:
sound: minecraft:item.hoe.till
type: player
#空手收获的音效
harvest:
sound: minecraft:block.crop.break
type: player
#使用骨粉的音效
bonemeal:
sound: minecraft:item.hoe.till
type: player