Pot
Create a new yml file in the /contents/pots directory to add a new pot. Of course, you can also modify it based on default.yml.
Available event triggers for pot:
full: When players can't add more water to pot
add_water: When players successfully add water to the pot
reach_limit: When the amount of pots reached the limitation
break: When players break the pot
place: When players place the pot
interact: When players interact the pot
# ID
default:
# Maximum water storage capacity
max-water-storage: 5
# The most basic settings
base:
# Pot models
dry: dry_pot
wet: wet_pot
# Does the pot absorb raindrop
absorb-rainwater: true
# Does nearby water make the pot wet
absorb-nearby-water: false
# Set unique looks for pots with different fertilizer statuses
fertilized-pots:
enable: false
quality:
dry: dry_pot
wet: wet_pot
yield-increase:
dry: dry_pot
wet: wet_pot
variation:
dry: dry_pot
wet: wet_pot
soil-retain:
dry: dry_pot
wet: wet_pot
speed-grow:
dry: dry_pot
wet: wet_pot
# Methods to fill the watering can
fill-method:
# The name of the method, it's totally customized
method_1:
# The item to use
item: WATER_BUCKET
# The amount of item to use
item-amount: 1
# The item returned (Optional)
return: BUCKET
# The amount of item to return
return-amount: 1
# Requirements for this fill method
requirements: {}
# The amount of water to add
amount: 3
actions:
sound_action:
type: sound
value:
source: player
key: minecraft:item.bucket.fill
volume: 1
pitch: 1
swing_hand_action:
type: swing-hand
value: true
method_2:
item: POTION
return: GLASS_BOTTLE
amount: 1
actions:
sound_action:
type: sound
value:
source: player
key: minecraft:item.bottle.fill
volume: 1
pitch: 1
swing_hand_action:
type: swing-hand
value: true
# Water bar image settings
water-bar:
left: '뀂'
full: '뀁뀃'
empty: '뀁뀄'
right: '뀁뀅'
# Event settings
events:
add_water:
particle_action:
type: particle
value:
particle: WATER_SPLASH
x: 0.5
y: 1.3
z: 0.5
count: 5
offset-x: 0.3
offset-z: 0.3
interact:
# This action allows to display hologram while holding the specified item.
conditional_action:
type: conditional
value:
conditions:
requirement_1:
type: item-in-hand
value:
hand: main
amount: 1
item: soil_surveyor
actions:
# If the fertilizer doesn't exist, this line would not appear
conditional_fertilizer_action:
type: conditional
value:
conditions:
requirement_1:
type: fertilizer
value:
has: true
actions:
fertilizer_hologram:
type: hologram
value:
duration: 20
text: '<font:customcrops:default>{icon}</font> {left_times}/{max_times} '
apply-correction: true
x: 0.5
y: 0.83
z: 0.5
# Display the amount of water in pot
water_hologram:
type: hologram
value:
duration: 20
text: '<font:customcrops:default>{water_bar}</font>'
apply-correction: true
x: 0.5
y: 0.6
z: 0.5
Last updated