9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-28 19:39:20 +00:00
This commit is contained in:
XiaoMoMi
2023-07-09 02:34:49 +08:00
parent e7ec94595d
commit 3f81be450e
248 changed files with 1479 additions and 1329 deletions

View File

@@ -0,0 +1,132 @@
# Don't change
config-version: '34'
# BStats
metrics: true
# Language: english / spanish / chinese / turkish / russian
lang: english
# Debug
debug:
log-world-state: false
log-scheduler: false
log-corruption-fixer: false
worlds:
# This is designed for servers that using a separate folder for worlds
# 如果你的服务器使用独立文件夹存储世界,请在此填入绝对地址
absolute-world-folder-path: ''
# Mode: whitelist/blacklist
# Requires a restart when changing mode or editing world list for the safety of data
# 模式:白名单/黑名单
# 修改本栏需要重启服务器
mode: whitelist
list:
- world
schedule-system:
# If disabled, you can do that manually with command /customcrops force [consume/sprinklerwork/cropgrow] or API methods
# 如果禁用,你可以使用指令/customcrops force [consume/sprinklerwork/cropgrow]手动操作或使用API
enable: true
# The average interval for a crop to gain one point (measured in seconds)
# 平均每个农作物获得一生长点的时间间隔(秒)
point-gain-interval: 300
# Water amount and fertilizer would reduce every 3 points are gained
# set it to -1 if you don't want CustomCrops to control consumption/sprinkler tasks
# 默认每3个生长点进行一次水分、肥料消耗
# 设置为-1以禁用CustomCrops对水分、肥料消耗/洒水器任务的掌管
consume-water-fertilizer-every-x-point: 3
# Sprinkler would work every 2 points are gained
sprinkler-work-every-x-point: 2
# Save cache to file interval (seconds)
# set "-1" to disable
# 保存缓存的时间间隔 (秒)
cache-save-interval: 12000
# Thread pool settings
# 线程池设置
thread-pool-settings:
# 核心线程池大小
corePoolSize: 1
# 最大线程池大小
maximumPoolSize: 4
# seconds (秒)
keepAliveTime: 10
optimization:
# Recommend enabling this to prevent large quantities of crops/item frames from lagging the server
# When you are using both item_frame mode and ItemsAdder, you should set "max-furniture-vehicles-per-chunk" in ItemsAdder's config.yml to a higher value
# 推荐启用区块限制来防止玩家种植大量农作物
# 如果你使用ItemsAdder的展示框模式你需要在ItemsAdder的配置文件中设置"max-furniture-vehicles-per-chunk"到较高值,否则农作物种植后会消失
limitation:
# Maximum amount of growing crops per chunk
# Note: This only limits **growing** crops
# If a crop is ripe, it would not be counted
# 每个区块的限制数量
growing-crop-amount:
enable: true
default: 48
# settings for a specified world
# 指定世界的设置
worlds:
- world:64
# Experimental option (Only works when only-work-in-loaded-chunks is false)
# This option would make the plugin no longer invoke the unloaded chunks to replace crop models/pots
# Crops/Pots would only be updated during the chunk loading
# 实验性选项,启用以后农作物/种植盆的模型只会在区块加载时得到更新,不再异步加载区块替换模型
# 此选项仅在only-work-in-loaded-chunks为false时候生效
only-update-during-chunk-loading: false
mechanics:
# Does the system only work in loaded chunks (Requires you to stop the server before changing this setting)
# 插件是否只在加载中的区块工作 (需要关闭服务器再设置此项)
only-work-in-loaded-chunks: true
# 17/2/1 = 85%/10%/5%
# 2/2/1 = 40%/40%/20%
# You can customize more ranks like x/x/x/x/x
default-quality-ratio: 17/2/1
# Season mechanic
# 季节机制
season:
enable: true
# If you want all the worlds to share the same season
# 是否全世界同步季节
sync-season:
enable: false
reference: world
# 自动季节交替
auto-season-change:
enable: true
# duration of each season (Minecraft days)
# 每个季节的时长
duration: 28
greenhouse:
enable: true
block: customcrops:greenhouse_glass
# effective range (Y axis)
# Y轴有效范围
range: 5
# scarecrow item id
# 稻草人物品id
scarecrow: customcrops:scarecrow
# Vanilla farmland settings
# 原版耕地设置
vanilla-farmland:
# disable vanilla farmland moisture mechanics
# 禁用原版耕地湿润机制
disable-moisture-mechanic: false
# prevent entities from trampling the farmland
# 防止玩家踩踏耕地
prevent-trampling: false
other-settings:
# This option requires a skill-plugin hook
# Which would increase the amount of crops player get
# 这需要一个技能插件才能生效,可以根据玩家种植技能等级提供增益
skill-bonus:
enable: false
formula: '{base} + {level} * 0.01'
# MMOCore profession name
# MMOCore职业名
MMOCore-profession-name: 'farmer'
# Enable corruption fixer
enable-corruption-fixer: false
# Fixed corrupted pots when interacting
corrupt-fix-range: 4

View File

@@ -0,0 +1,345 @@
# Crop key name
# 农作物配置名
tomato:
# Crop mode, make sure that type is consistent with IA/Oraxen configs
# Otherwise some unexpected problems would occur
# TRIPWIRE / ITEM_FRAME / ITEM_DISPLAY (1.19.4+)
# 农作物模式请确保和你的资源包配置等一致否则会出现bug
type: TRIPWIRE
# The crop can only be planted on certain pots
# Pot are stored in /CustomCrops/contents/pots
# 农作物只能在指定的种植盆中种植
pot-whitelist:
- default
# Crop's seed, if you want to use Vanilla items, just use Capital letters. (Example APPLE)
# 农作物的种子,如果你想用原版物品做种子,就使用大写字母
seed: customcrops:tomato_seeds
# Only works in ITEM_FRAME / ITEM_DISPLAY mode
random-rotation: true
# break/plant requirements
# 破坏/种植农作物的需求
requirements:
break:
requirement_1:
# Requirement type, you can get a full list of requirements on wiki page
# 需求类型,wiki中有详细的全部需求类型和示范
type: permission
value: tomato.break
# The message to show when not meeting the requirement(Supports multiple lines)
# 不满足需求的提示,支持多行
message: "You don't have permission to harvest the tomato"
plant:
requirement_1:
type: permission
value: tomato.plant
message: "You don't have permission to plant the tomato"
requirement_2:
type: season
value:
- Spring
- Autumn
message: "It's not a good season to plant tomato"
# plant actions
# 种植时发生的动作
plant-actions:
action_1:
# Requirement type, you can get a full list of actions on wiki page
# 动作类型,wiki中有详细的全部动作类型和示范
type: sound
value:
source: player
key: minecraft:item.hoe.till
volume: 1
pitch: 1
# This decides when the crop data would be removed from cache
# 这决定了农作物数据什么时候从缓存中移除
max-points: 6
# What should a crop do when gaining a certain amount of points
# 农作物在获取指定生长点数时候执行的动作
points:
0:
# change the crop's model
# 改变农作物的模型
model: customcrops:tomato_stage_1
# As crop's models are different and have various height
# So sometimes the pot information hologram can't show in a proper place
# Set "hologram-offset-correction" to a high value would increase the
# vertical position of the hologram
# 因为不同农作物有不同的模型高度,所以在显示悬浮信息的时候,可能会导致模型遮挡了悬浮信息
# 因此设置 "hologram-offset-correction" 为更大值可以提升悬浮字的高度,以免遮挡
hologram-offset-correction: 0.2
# Available events: break/grow/interact-by-hand/interact-with-item
events:
break:
action_1:
type: drop-items
value:
other-items:
loot_1:
# Other plugin item compatibility(Can also be used in quality-crops)
# MMOItems:TYPE:ID
# MythicMobs:id
item: customcrops:tomato_seeds
min: 1
max: 1
# 0-1
chance: 0.3
action_2:
type: sound
value:
source: player
key: minecraft:block.crop.break
volume: 1
pitch: 1
1:
model: customcrops:tomato_stage_2
hologram-offset-correction: 0.2
events:
break:
action_1:
type: drop-items
value:
other-items:
loot_1:
item: customcrops:tomato_seeds
min: 1
max: 1
chance: 0.5
action_2:
type: sound
value:
source: player
key: minecraft:block.crop.break
volume: 1
pitch: 1
3:
model: customcrops:tomato_stage_3
hologram-offset-correction: 0.2
events:
break:
action_1:
type: drop-items
value:
other-items:
loot_1:
item: customcrops:tomato_seeds
min: 1
max: 1
chance: 0.8
action_2:
type: sound
value:
source: player
key: minecraft:block.crop.break
volume: 1
pitch: 1
5:
model: customcrops:tomato_stage_4
hologram-offset-correction: 0.2
events:
break:
action_1:
type: sound
value:
source: player
key: minecraft:block.crop.break
volume: 1
pitch: 1
action_2:
type: drop-items
value:
quality-crops:
min: 1
max: 4
items:
1: customcrops:tomato
2: customcrops:tomato_silver_star
3: customcrops:tomato_golden_star
other-items:
loot_1:
item: customcrops:tomato_seeds
min: 1
max: 1
chance: 1
grow:
action_1:
type: variation
value:
golden:
item: customcrops:tomato_stage_golden
type: TRIPWIRE
chance: 0.01
interact-by-hand:
action_1:
type: break
value: true # whether to trigger break event too 是否触发break事件
action_2:
type: replant
value:
point: 0
crop: tomato # Replant the crop 重新种植农作物
model: customcrops:tomato_stage_1 # crop model 农作物模型
interact-with-item:
interact_1:
# the item to use
# 使用的物品
item: customcrops:i_want_overgrown_tomato_right_now
# whether to reduce the amount
# 是否减少数量
reduce-amount: true
# the item to return, remove this section if you don't want item back
# 返还的物品,如果你不想要返还物品,请删除此项目
return: customcrops:returned_item
# actions to perform
# 执行的动作
actions:
action_1:
type: variation
value:
gigantic:
item: customcrops:gigantic_tomato
type: CHORUS
chance: 1
6:
# In this example, the model is not set, so the crop would not change its model
# when reaching this point. But here's a section called variation, which means that
# the crop has a little chance to be gigantic when it's already ripe. Since it reaches
# "max-points", the crop data would be removed from data and no longer affect server performance
# 在这个示范中model没有被设置因此农作物不会在此生长点数时替换模型
# 但是这里有一个生长时候触发的变异动作,意味着农作物有小概率在此阶段发生变异
# 因为农作物已经达到了最大生长点数,农作物数据将自此从数据中移除,不再对服务器性能造成影响
events:
grow:
action_1:
type: variation
value:
gigantic:
item: customcrops:gigantic_tomato
type: CHORUS
chance: 0.02
# The crop would actually not gain so many points
# But you can set some special crops' loots here
# 农作物实际上并不会获取这么多生长点数,但是你可以在此设置一些特殊掉落物
99:
model: customcrops:tomato_stage_golden
events:
break:
action_1:
type: drop-items
value:
other-items:
loot_1:
item: customcrops:golden_tomato
min: 1
max: 1
chance: 1
loot_2:
item: customcrops:golden_tomato
min: 1
max: 2
chance: 0.5
loot_3:
item: customcrops:golden_tomato
min: 1
max: 2
chance: 0.3
interact-with-item:
interact_1:
item: GOLDEN_HOE
reduce-amount: false
requirements:
requirement_1:
type: permission
value: golden_hoe.use
message: "You don't have permission to use golden hoe."
actions:
action_1:
type: break
action_2:
type: replant
value:
point: 0
crop: tomato
model: customcrops:tomato_stage_1
# Custom grow conditions
# You can get a full list of grow conditions on wiki page.
# The default config tells that the crop would only grow in Spring and Autumn,
# and it requires at least a certain amount of water to grow.
# Though it would not grow in Summer, but it would still be alive. If you want
# the crop to die, see the "death-conditions" below.
# 自定义生长条件默认配置是农作物会在春和秋两个季节生长并且要求种植盆水量大于3
grow-conditions:
condition_1:
type: suitable_season
value:
- Spring
- Autumn
condition_2:
type: water_more_than
value: 2
# Custom death conditions
# 自定义死亡条件
death-conditions:
no_water:
# You can customize the dead models according to the reasons
# 你可以根据死因设置不同的死亡模型
model: customcrops:crop_stage_death
conditions:
# "&&" represents "And"
# "||" represents "Or"
# the default config tells that the crop would have 70% chance to die if the pot is dry
# 默认配置农作物有70%概率在种植盆干燥情况下死亡
'&&':
condition_1:
type: water_less_than
value: 1
condition_2:
type: random
value: 0.7
unsuitable_season:
model: customcrops:crop_stage_death
conditions:
condition_1:
type: unsuitable_season
value:
- Winter
crow_attack:
# Crop would be removed if "model" is not set
# 如果没有设置model农作物会直接被移除而不是替换模型
conditions:
condition_1:
type: crow_attack
value:
chance: 0.001
fly-model: customcrops:crow_fly
stand-model: customcrops:crow_stand
# Custom bone meal
# 自定义骨粉
custom-bone-meal:
bone_meal_1:
item: BONE_MEAL
particle: VILLAGER_HAPPY
sound: minecraft:item.bone_meal.use
# 20% chance to grow 2 points
# (100% - 20%) * 60% = 48% chance to grow 1 point
# 20%概率获得两个生长点数
# (100% - 20%) * 60% = 48% 概率获得一个生长点数
chance:
2: 0.2
1: 0.6
bone_meal_2:
item: customcrops:custom_bone_meal
return: customcrops:custom_bone_meal_used
chance:
2: 0.4
1: 1

View File

@@ -0,0 +1,39 @@
quality_1:
type: QUALITY
icon: '뀆'
chance: 1
times: 28
# 70%/20%/10%
ratio: 7/2/1
item: customcrops:quality_1
before-plant: true
particle: SCRAPE
sound: minecraft:item.hoe.till
pot-whitelist:
- default
quality_2:
type: QUALITY
icon: '뀇'
chance: 1
times: 28
# 55%/30%/15%
ratio: 11/6/3
item: customcrops:quality_2
before-plant: true
particle: SCRAPE
sound: minecraft:item.hoe.till
pot-whitelist:
- default
quality_3:
type: QUALITY
icon: '뀈'
chance: 1
times: 28
# 40%/40%/20%
ratio: 2/2/1
item: customcrops:quality_3
before-plant: true
particle: SCRAPE
sound: minecraft:item.hoe.till
pot-whitelist:
- default

View File

@@ -0,0 +1,33 @@
soil_retain_1:
type: SOIL_RETAIN
icon: '뀉'
chance: 0.1
times: 28
item: customcrops:soil_retain_1
before-plant: false
particle: SPELL
sound: minecraft:item.hoe.till
pot-whitelist:
- default
soil_retain_2:
type: SOIL_RETAIN
icon: '뀊'
chance: 0.2
times: 28
item: customcrops:soil_retain_2
before-plant: false
particle: SPELL
sound: minecraft:item.hoe.till
pot-whitelist:
- default
soil_retain_3:
type: SOIL_RETAIN
icon: '뀋'
chance: 0.3
times: 28
item: customcrops:soil_retain_3
before-plant: false
particle: SPELL
sound: minecraft:item.hoe.till
pot-whitelist:
- default

View File

@@ -0,0 +1,60 @@
speed_grow_1:
type: SPEED_GROW
# Fertilizer Hologram display icon
# 肥料在悬浮字中显示的图标
icon: '뀌'
# How many days can this fertilizer stay in pot
# 肥料有效时间(游戏日)
times: 14
# item id
# 物品ID
item: customcrops:speed_grow_1
# Should this fertilizer be used before planting
# 肥料是否只能在种植前使用
before-plant: true
# The particle to be displayed when using fertilizer
# 使用肥料的粒子效果
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html
particle: SPELL_WITCH
# The sound to play when using
# 使用肥料的声音
sound: minecraft:item.hoe.till
# Pot whitelist
# 种植盆白名单
pot-whitelist:
- default
# 50% chance to gain another 1 points
chance:
1: 0.5
speed_grow_2:
type: SPEED_GROW
icon: '뀍'
times: 14
item: customcrops:speed_grow_2
before-plant: true
particle: SPELL_WITCH
sound: minecraft:item.hoe.till
pot-whitelist:
- default
# 10% chance to gain another 2 points
# (100% - 10%) * 70% = 63% chance to gain another 1 point
chance:
2: 0.1
1: 0.7
speed_grow_3:
type: SPEED_GROW
icon: '뀎'
times: 14
item: customcrops:speed_grow_3
before-plant: true
particle: SPELL_WITCH
sound: minecraft:item.hoe.till
pot-whitelist:
- default
# 10% chance to gain another 3 points
# (100% - 10%) * 40% = 36% chance to gain another 2 points
# (100% - (36% + 10%)) * 80% = 43.2% chance to gain another 1 point
chance:
3: 0.1
2: 0.4
1: 0.8

View File

@@ -0,0 +1,35 @@
variation_1:
type: VARIATION
icon: '뀒'
times: 14
# If a crop's default variation chance is 0.01, now it's 0.03
# 如果农作物的变异概率是0.01那么使用肥料后变成了0.03
chance: 0.02
item: customcrops:variation_1
before-plant: true
particle: SOUL
sound: minecraft:item.hoe.till
pot-whitelist:
- default
variation_2:
type: VARIATION
icon: '뀓'
times: 14
chance: 0.04
item: customcrops:variation_2
before-plant: true
particle: SOUL
sound: minecraft:item.hoe.till
pot-whitelist:
- default
variation_3:
type: VARIATION
icon: '뀔'
times: 14
chance: 0.08
item: customcrops:variation_3
before-plant: true
particle: SOUL
sound: minecraft:item.hoe.till
pot-whitelist:
- default

View File

@@ -0,0 +1,49 @@
yield_increase_1:
type: YIELD_INCREASE
icon: '뀏'
times: 14
item: customcrops:yield_increase_1
before-plant: true
particle: TOTEM
sound: minecraft:item.hoe.till
pot-whitelist:
- default
# 10% chance to gain another 3 crops
# (100% - 10%) * 40% = 36% chance to gain another 2 crops
# (100% - (10% + 36%)) * 80% = 43.2% chance to gain another 1 crop
chance:
3: 0.1
2: 0.4
1: 0.8
yield_increase_2:
type: YIELD_INCREASE
icon: '뀐'
times: 14
item: customcrops:yield_increase_2
before-plant: true
particle: TOTEM
sound: minecraft:item.hoe.till
pot-whitelist:
- default
# 20% chance to gain another 3 crops
# (100% - 20%) * 60% = 48% chance to gain another 2 crops
# (100% - (20% + 48%)) * 80% = 25.6% chance to gain another 1 crop
chance:
3: 0.2
2: 0.6
1: 1
yield_increase_3:
type: YIELD_INCREASE
icon: '뀑'
times: 14
item: customcrops:yield_increase_3
before-plant: true
particle: TOTEM
sound: minecraft:item.hoe.till
pot-whitelist:
- default
# 40% chance to gain another 3 crops
# (100% - 40%) * 100% = 60% chance to gain another 2 crops
chance:
3: 0.4
2: 1

View File

@@ -0,0 +1,105 @@
# Pot key name
default:
# The max water storage
# 最大储水量
max-water-storage: 5
base:
# basic models, use capital letters if you want to use vanilla blocks
# Example: FARMLAND
# 基础模型如果你想要使用原版方块请使用大写字母例如FARMLAND耕地
dry: customcrops:dry_pot
wet: customcrops:wet_pot
# If you want fertilized pots to have different looks
# 如果你想让施肥的种植盆有不同的外观
fertilized-pots:
enable: false
quality:
dry: customcrops:dry_pot
wet: customcrops:wet_pot
yield-increase:
dry: customcrops:dry_pot
wet: customcrops:wet_pot
variation:
dry: customcrops:dry_pot
wet: customcrops:wet_pot
soil-retain:
dry: customcrops:dry_pot
wet: customcrops:wet_pot
speed-grow:
dry: customcrops:dry_pot
wet: customcrops:wet_pot
# Methods to fill the pot
# 浇水的方法
fill-method:
method_1:
# The item to use
# 使用的物品
item: WATER_BUCKET
# The item returned
# 返还的物品
return: BUCKET
# water amount to add
# 增加的水量
amount: 3
# 粒子效果
particle: WATER_SPLASH
# 声音
sound: minecraft:block.water.ambient
method_2:
item: WATER
return: GLASS_BOTTLE
amount: 1
particle: WATER_SPLASH
sound: minecraft:block.water.ambient
method_3:
item: SNOWBALL
amount: 1
particle: WATER_SPLASH
sound: minecraft:block.water.ambient
method_4:
# This is just an example
# "customcrops:magic_water" actually not exists
# 这只是个示例, "customcrops:magic_water"事实上不存在
item: customcrops:magic_water
amount: 5
particle: WATER_SPLASH
sound: minecraft:block.water.ambient
# Pot info hologram
# 种植盆悬浮信息
hologram:
# ARMOR_STAND / TEXT_DISPLAY (1.19.4+)
# 显示载体
type: ARMOR_STAND
# in seconds
# 持续时间
duration: 2
# remove this if you want players can see the pot info even with empty hands
# 如果你想要空手也能查看种植盆信息,那么移除这个项目
require-item: customcrops:soil_surveyor
# Fertilizer info
# 肥料信息
fertilizer:
enable: true
vertical-offset: 0.8
content: '<font:customcrops:default>{icon}</font> {left_times}/{max_times}'
# Water info
# 水分信息
water:
enable: true
vertical-offset: 1.05
# Available placeholders
# {current} current water 当前水量
# {storage} max water 最大储水量
# {water_bar} water bar image 水条
content: '<font:customcrops:default>{water_bar}</font>'
water-bar:
left: '뀂'
full: '뀁뀃'
empty: '뀁뀄'
right: '뀁뀅'
text-display-options:
background-color: 0,0,0,0
has-shadow: false
is-see-through: false
use-default-background-color: false
text-opacity: -1

View File

@@ -0,0 +1,173 @@
# Sprinkler key name
sprinkler_1:
# This decides the work range
# (1+1x2)²=9
# 洒水器工作范围 3x3
range: 1
# max water storage
# 最大储水量
storage: 4
# The water amount add to the pot
# 单次洒水加到种植盆的水量
water: 1
# 2/3D物品
3D-item: customcrops:sprinkler_1
# Optional, remove this section if you don't need 2d items
2D-item: customcrops:sprinkler_1_item
# ITEM_FRAME / TRIPWIRE / ITEM_DISPLAY (1.19.4+)
# Sprinkler item type
type: ITEM_FRAME
# The sprinkler can only add water to certain pots
# 洒水器只能对指定种植盆浇水
pot-whitelist:
- default
# see how fill-method works in /CustomCrops/contents/pots/default.yml
# 请在CustomCrops/contents/pots/default.yml查看"fill-method"如何使用
fill-method:
method_1:
item: WATER_BUCKET
return: BUCKET
amount: 3
particle: WATER_SPLASH
sound: minecraft:block.water.ambient
method_2:
item: WATER
return: GLASS_BOTTLE
amount: 1
particle: WATER_SPLASH
sound: minecraft:block.water.ambient
# The sound to play when placing
# 放置时候的声音
place-sound: minecraft:block.bone_block.place
# The hologram to show when interacting
# 交互时候产生的悬浮信息
hologram:
enable: true
# ARMOR_STAND / TEXT_DISPLAY (1.19.4+)
type: ARMOR_STAND
# vertical offset(change this according to your model size)
# 竖直方向的偏移
vertical-offset: -0.1
duration: 1
# Available placeholders:
# {water_bar} water bar image
# {current} current water
# {storage} max storage
content: '<font:customcrops:default>{water_bar}</font>'
water-bar:
left: '뀂'
full: '뀁뀃'
empty: '뀁뀄'
right: '뀁뀅'
text-display-options:
background-color: 0,0,0,0
has-shadow: false
is-see-through: false
use-default-background-color: false
text-opacity: -1
# Water splash animation when sprinkler works
# 洒水器在工作时候的洒水效果
animation:
enable: true
# in seconds
# 持续时间
duration: 10
vertical-offset: 0.4
item: customcrops:water_effect
# ARMOR_STAND / ITEM_DISPLAY (1.19.4+)
type: ARMOR_STAND
sprinkler_2:
# (1+2x2)²=25
range: 2
storage: 5
water: 1
3D-item: customcrops:sprinkler_2
2D-item: customcrops:sprinkler_2_item
type: ITEM_FRAME
pot-whitelist:
- default
fill-method:
method_1:
item: WATER_BUCKET
return: BUCKET
amount: 3
particle: WATER_SPLASH
sound: minecraft:block.water.ambient
method_2:
item: WATER
return: GLASS_BOTTLE
amount: 1
particle: WATER_SPLASH
sound: minecraft:block.water.ambient
place-sound: minecraft:block.bone_block.place
hologram:
enable: true
type: ARMOR_STAND
vertical-offset: -0.1
duration: 1
content: '<font:customcrops:default>{water_bar}</font>'
water-bar:
left: '뀂'
full: '뀁뀃'
empty: '뀁뀄'
right: '뀁뀅'
text-display-options:
background-color: 0,0,0,0
has-shadow: false
is-see-through: false
use-default-background-color: false
text-opacity: -1
animation:
enable: true
duration: 10
vertical-offset: 0.4
item: customcrops:water_effect
type: ARMOR_STAND
sprinkler_3:
range: 2
storage: 3
water: 2
3D-item: customcrops:sprinkler_3
2D-item: customcrops:sprinkler_3_item
type: ITEM_FRAME
pot-whitelist:
- default
fill-method:
method_1:
item: WATER_BUCKET
return: BUCKET
amount: 3
particle: WATER_SPLASH
sound: minecraft:block.water.ambient
method_2:
item: WATER
return: GLASS_BOTTLE
amount: 1
particle: WATER_SPLASH
sound: minecraft:block.water.ambient
place-sound: minecraft:block.bone_block.place
hologram:
enable: true
type: ARMOR_STAND
vertical-offset: -0.1
duration: 1
content: '<font:customcrops:default>{water_bar}</font>'
water-bar:
left: '뀂'
full: '뀁뀃'
empty: '뀁뀄'
right: '뀁뀅'
text-display-options:
background-color: 0,0,0,0
has-shadow: false
is-see-through: false
use-default-background-color: false
text-opacity: -1
animation:
enable: true
duration: 10
vertical-offset: 0.4
item: customcrops:water_effect
type: ARMOR_STAND

View File

@@ -0,0 +1,165 @@
# Watering can key name
watering_can_1:
# 物品 id
item: customcrops:watering_can_1
# This is optional. It would decide the look of the watering can when having different water amount
# 可选配置,他会影响水壶在不同水量情况下的外观
#appearance:
# # custom-model-data
# 0: 1000
# 1: 1001
# 2: 1002
# 3: 1003
# 储水量
capacity: 3
# Effective Range
# 有效范围
effective-range:
width: 1
length: 1
# 粒子效果
particle: WATER_SPLASH
# 声音
sound: minecraft:block.water.ambient
# Methods to fill the watering can
fill-method:
method_1:
# The target block/furniture id
# use capital letters for vanilla items
target: WATER
# water amount to add
# 加水量
amount: 1
particle: WATER_SPLASH
sound: minecraft:item.bucket.fill
# This decides where the watering can can be used
# 这决定了水壶能使用在哪些种植盆上
pot-whitelist:
- default
# allows you to add water to sprinkler by clicking with a watering can
# 允许水壶对洒水器加水
sprinkler-whitelist:
- sprinkler_1
- sprinkler_2
- sprinkler_3
dynamic-lore:
# Should watering-can has dynamic lore according to the water amount
# 水壶是否有根据水量变化的动态lore
enable: true
# Available placeholders:
# {water_bar} water bar image
# {current} current water
# {storage} max storage
lore:
- '<italic:false><white><font:customcrops:default>{water_bar}</font>'
- '<italic:false><gray>Right click water to add water to the can.'
actionbar:
# Should actionbar be sent when using watering-can
# 是否发送动作栏信息
enable: true
# Available placeholders {current} {storage} {water_bar}
content: '<font:customcrops:default>{water_bar}</font>'
water-bar:
left: '뀂'
full: '뀁뀃'
empty: '뀁뀄'
right: '뀁뀅'
watering_can_2:
item: customcrops:watering_can_2
capacity: 4
effective-range:
width: 1
length: 2
particle: WATER_SPLASH
sound: minecraft:block.water.ambient
fill-method:
method_1:
target: WATER
amount: 1
particle: WATER_SPLASH
pot-whitelist:
- default
sprinkler-whitelist:
- sprinkler_1
- sprinkler_2
- sprinkler_3
dynamic-lore:
enable: true
lore:
- '<italic:false><white><font:customcrops:default>{water_bar}</font>'
- '<italic:false><gray>Right click water to add water to the can.'
actionbar:
enable: true
content: '<font:customcrops:default>{water_bar}</font>'
water-bar:
left: '뀂'
full: '뀁뀃'
empty: '뀁뀄'
right: '뀁뀅'
watering_can_3:
item: customcrops:watering_can_3
capacity: 5
effective-range:
width: 1
length: 3
particle: WATER_SPLASH
sound: minecraft:block.water.ambient
fill-method:
method_1:
target: WATER
amount: 1
particle: WATER_SPLASH
pot-whitelist:
- default
sprinkler-whitelist:
- sprinkler_1
- sprinkler_2
- sprinkler_3
dynamic-lore:
enable: true
lore:
- '<italic:false><white><font:customcrops:default>{water_bar}</font>'
- '<italic:false><gray>Right click water to add water to the can.'
actionbar:
enable: true
content: '<font:customcrops:default>{water_bar}</font>'
water-bar:
left: '뀂'
full: '뀁뀃'
empty: '뀁뀄'
right: '뀁뀅'
watering_can_4:
item: customcrops:watering_can_4
capacity: 3
effective-range:
width: 3
length: 3
particle: WATER_SPLASH
sound: minecraft:block.water.ambient
fill-method:
method_1:
target: WATER
amount: 1
particle: WATER_SPLASH
pot-whitelist:
- default
sprinkler-whitelist:
- sprinkler_1
- sprinkler_2
- sprinkler_3
dynamic-lore:
enable: true
lore:
- '<italic:false><white><font:customcrops:default>{water_bar}</font>'
- '<italic:false><gray>Right click water to add water to the can.'
actionbar:
enable: true
content: '<font:customcrops:default>{water_bar}</font>'
water-bar:
left: '뀂'
full: '뀁뀃'
empty: '뀁뀄'
right: '뀁뀅'

View File

@@ -0,0 +1,25 @@
# https://docs.advntr.dev/minimessage/format.html
messages:
prefix: '<gradient:#ff206c:#fdee55>[CustomCrops] </gradient>'
reload: '<white>已重载! 用时 <green>{time}ms.'
invalid-args: '<white>无效参数.'
no-console: '<white>这个命令只能由玩家使用.'
not-online: '<white>玩家 {player} 当前不在线.'
lack-args: '<white>缺少参数.'
not-none-args: '<white>你需要输入一个参数.'
before-plant: '<white>这种肥料必须在种植之前使用.'
unsuitable-pot: "<white>你不能在这里面种植它."
reach-crop-limit: '<white>农作物数量已达上限.'
no-perm: "<red>你没有权限这样做."
spring: '春季'
summer: '夏季'
autumn: '秋季'
winter: '冬季'
no-season: '这个世界禁用了季节'
set-season: "<white>成功将 {world} 世界的季节设置为 {season}."
set-date: "<white>成功将 {world} 世界的日期设置为 {date}."
world-not-exist: '<white>世界 {world} 不存在.'
season-not-exist: '<white>{season} 不是一个有效的季节.'
force-sprinkler-work: '<white>已强制世界 {world} 的洒水器进行工作.'
force-consume: '<white>已强制世界 {world} 的肥料、水分消耗.'
force-grow: '<white>已强制世界 {world} 的农作物生长.'

View File

@@ -0,0 +1,25 @@
# https://docs.advntr.dev/minimessage/format.html
messages:
prefix: '<gradient:#ff206c:#fdee55>[CustomCrops] </gradient>'
reload: '<white>Reloaded! Took <green>{time}ms.'
invalid-args: '<white>Invalid arguments.'
no-console: '<white>This command can only be executed by a player.'
not-online: '<white>Player {player} is not online.'
lack-args: '<white>Arguments are insufficient.'
not-none-args: '<white>Not a none argument command.'
before-plant: '<white>This fertilizer should be used before planting.'
unsuitable-pot: "<white>You can't plant the seed in this pot."
reach-crop-limit: '<white>The number of crops has reached the limitation.'
no-perm: "<red>You don't have permission to do that."
spring: 'Spring'
summer: 'Summer'
autumn: 'Autumn'
winter: 'Winter'
no-season: 'SEASON DISABLED IN THIS WORLD'
set-season: "<white>Successfully set {world}'s season to {season}."
set-date: "<white>Successfully set {world}'s date to {date}."
world-not-exist: '<white>World {world} does not exist.'
season-not-exist: '<white>Season {season} does not exist.'
force-sprinkler-work: "<white>Forced {world}'s sprinklers to start working."
force-consume: "<white>Forced {world}'s pots to reduce water amount and the remaining use of fertilizers."
force-grow: "<white>Forced {world}'s crops to grow one point."

View File

@@ -0,0 +1,24 @@
messages:
prefix: '<gradient:#ff206c:#fdee55>[CustomCrops] </gradient>'
reload: '<white>Перезагружено! Заняло <green>{time}мс.'
invalid-args: '<white>Ошибочные аргументы.'
no-console: '<white>Эта команда может быть выполнена только игроком.'
not-online: '<white>Игрок {player} не в сети.'
lack-args: '<white>Недостаточно аргументов.'
not-none-args: '<white>В команде обязательны аргументы.'
before-plant: '<white>Это удобрение нужно использовать перед посадкой.'
unsuitable-pot: "<white>Вы не сможете посадить семечко в этот горшок."
reach-crop-limit: '<white>Количество посевов достигло лимита.'
no-perm: "<red>У вас нет прав на это."
spring: 'Весна'
summer: 'Лето'
autumn: 'Осень'
winter: 'Зима'
no-season: 'СЕЗОНЫ ОТКЛЮЧЕНЫ В ЭТОМ МИРЕ'
set-season: "<white>Успешно установлен сезон {season} в {world}."
set-date: "<white>Успешно установлена дата {date} в {world}."
world-not-exist: '<white>Мир {world} не существует.'
season-not-exist: '<white>Сезон {season} не существует.'
force-sprinkler-work: "<white>Принудительно в {world} запущены спринклеры."
force-consume: "<white>Принудительно в {world} в горшках потратились вода и удобрение."
force-grow: "<white>Принудительно в {world} посевы выросли на одну стадию."

View File

@@ -0,0 +1,25 @@
# https://docs.advntr.dev/minimessage/format.html
messages:
prefix: '<gradient:#ff206c:#fdee55>[CustomCrops] </gradient>'
reload: '<white>¡Recargado! Tomó <green>{time}ms.'
invalid-args: '<white>Argumentos invalidos.'
no-console: '<white>Este comando solo puede ser ejecutado por un jugador'
not-online: '<white>El jugador {player} no esta conectado'
lack-args: '<white>Los argumentos son insuficientes'
not-none-args: '<white>Este comando no tiene argumentos'
before-plant: '<white>Este fertilizador debe ser usado antes de plantarlo'
unsuitable-pot: "<white>No puedes plantar esta semilla en este pot"
reach-crop-limit: '<white>El numero de crops ha llegado al limite'
no-perm: "<red>No tienes permiso para esto"
spring: 'Primavera'
summer: 'Verano'
autumn: 'Otoño'
winter: 'Invierno'
no-season: 'LAS TEMPORADAS ESTAN DESACTIVADAS EN ESTE MUNDO'
set-season: "<white>Correctamente establecido {world}'s temporada a {season}."
set-date: "<white>Correctamente establecido {world}'s fecha para {date}."
world-not-exist: '<white>El mundo {world} no existe.'
season-not-exist: '<white>Temporada {season} no existe.'
force-sprinkler-work: "<white>Se forzo {world}'s sprinklers para trabajar"
force-consume: "<white>Se forzo {world}'s pot para reducir la cantidad de consumo del agua y fertilizantes"
force-grow: "<white>Forced {world}'s crops to grow one point."

View File

@@ -0,0 +1,25 @@
# https://docs.advntr.dev/minimessage/format.html
messages:
prefix: '<gradient:#ff206c:#fdee55>[CustomCrops] </gradient>'
reload: '<white>Yenilendi <green>{time}ms <white>sürdü.'
invalid-args: '<white>Geçersiz argümanlar. (argüman örneği: /customcrops <argüman>)'
no-console: '<white>Bu komut sadece bir oyuncu tarafından kullanılabilir.'
not-online: '<white>{player} adındaki oyuncu aktif değil.'
lack-args: '<white>Yetersiz argümanlar. Geçersiz argümanlar. (argüman örneği: /customcrops <argüman>)'
not-none-args: '<white>Bu komut için bir argüman belirtmelisin. (argüman örneği: /customcrops <argüman>)'
before-plant: '<white>Bu gübre, ekimden önce kullanılmalıdır!'
unsuitable-pot: "<white>Tohumu bu saksıya ekemezsin."
reach-crop-limit: '<white>Ekinlerin sayısı sınıra ulaştı.'
no-perm: "<red>Bunu yapmak için yetkin yok."
spring: 'Bahar'
summer: 'Yaz'
autumn: 'Sonbahar'
winter: 'Kış'
no-season: 'MEVSİMLER BU DÜNYADA DEVRE DIŞI BIRAKILDI'
set-season: "<white>{world} adlı dünyanın mevsimi başarıyla {season} ile değiştirildi."
set-date: "<white>{world} adlı dünyanın tarihi başarıyla {date} ile değiştirildi."
world-not-exist: '<white>{world} adında bir dünya bulunamadı.'
season-not-exist: '<white>{season} adında bir mevsim bulunamadı.'
force-sprinkler-work: "<white>{world}'nin sulama sistemlerinin çalışmasını zorladı"
force-consume: "<white>{world}'nin tenceresindeki su miktarını azaltmayı ve kalan gübre kullanımını zorladı"
force-grow: "<white>Forced {world}'s crops to grow one point."

View File

@@ -0,0 +1,71 @@
name: CustomCrops
version: '${version}'
main: net.momirealms.customcrops.CustomCrops
api-version: 1.17
load: POSTWORLD
authors: [ XiaoMoMi ]
depend:
- ProtocolLib
softdepend:
- Vault
- ItemsAdder
- Oraxen
- PlaceholderAPI
- mcMMO
- AureliumSkills
- MMOCore
- EcoSkills
- RealisticSeasons
- Jobs
- IridiumSkyblock
- SuperiorSkyBlock2
- Residence
- Kingdoms
- WorldGuard
- GriefDefender
- PlotSquared
- Towny
- Lands
- GriefPrevention
- CrashClaim
- BentoBox
- EcoJobs
- BattlePass
- BetonQuest
- ClueScrolls
- HuskTowns
commands:
customcrops:
usage: /customcrops <args>
permission: customcrops.admin
aliases:
- ccrops
permissions :
customcrops.*:
default: op
children:
customcrops.admin: true
customcrops.reload: true
customcrops.help: true
customcrops.about: true
customcrops.setdate: true
customcrops.setseason: true
customcrops.force: true
customcrops.migrate: true
customcrops.convert: true
customcrops.reload:
default: op
customcrops.help:
default: op
customcrops.about:
default: op
customcrops.setdate:
default: op
customcrops.setseason:
default: op
customcrops.force:
default: op
customcrops.migrate:
default: op
customcrops.convert:
default: op