Let take defaultas an example to configure the pot settings
Unique Identifier for Your Pot:
Start by naming your pot under a unique identifier like deault. This makes it easy to reference and customize later on.
Set the Maximum Water Storage Capacity:
Use max-water-storage to define how much water your pot can store. For instance, setting it to 5 means the pot can hold up to five units of water. This ensures your plants have enough hydration between waterings.
# Maximum capacity for storing water in the potstorage:5
Customize the Pot’s Basic Appearance:
The base section allows you to define the visual look of your pot under different conditions:
dry: The model ID used when the pot is dry, showing that it needs water.
wet: The model ID when the pot is hydrated and moist.
These settings add a visual cue to the player, making it easy to see at a glance whether the pot needs watering.
# Basic settings for pot appearance and behaviorbase:# Models for the pot's appearancedry:dry_pot# Model ID when the pot is drywet:wet_pot# Model ID when the pot is wet
Control Pot’s Interaction with the Environment:
absorb-rainwater: Set to true if you want your pot to automatically absorb water from rain, keeping it moist without manual watering.
absorb-nearby-water: Set to false to prevent the pot from absorbing water from nearby water sources. This setting ensures that your pot only gets watered when intended.
# Determines if the pot absorbs rainwater when it rainsabsorb-rainwater:true# Determines if water from nearby sources can wet the potabsorb-nearby-water:false
Control Pot's Tick Mode
# Sometimes you may have multiple pots configured, # and you want the pots to have different tick modes.# You can change the tick mode to ALL in config.yml # and then configure it separately here.ignore-random-tick:falseignore-scheduled-tick:true
Manage Fertilizer Application:
The max-fertilizers parameter controls how many units of fertilizer can be applied to a pot at once. Setting it to 1 limits it to a single application, helping prevent over-fertilization which could harm the plants. For the moment it's recommended to keep it 1 as the hologram would show at most one fertilizer at the same time.
# Maximum number of fertilizers that can be applied to the potmax-fertilizers:1
Define Custom Appearances for Fertilized Pots:
Under fertilized-pots, you can set unique models for pots based on different fertilizer effects. Each type (e.g., quality, yield_increase, variation, soil_retain, speed_grow) can have distinct dry and wet appearances. This customization adds depth, visually reflecting the benefits of different fertilizers applied to the pot.
# Custom appearances for pots with different fertilizer effectsfertilized-pots:quality:dry:dry_pot# Model ID for dry pot with 'quality' fertilizer effectwet:wet_pot# Model ID for wet pot with 'quality' fertilizer effectyield_increase:dry:dry_pot# Model ID for dry pot with 'yield increase' fertilizer effectwet:wet_pot# Model ID for wet pot with 'yield increase' fertilizer effectvariation:dry:dry_pot# Model ID for dry pot with 'variation' fertilizer effectwet:wet_pot# Model ID for wet pot with 'variation' fertilizer effectsoil_retain:dry:dry_pot# Model ID for dry pot with 'soil retain' fertilizer effectwet:wet_pot# Model ID for wet pot with 'soil retain' fertilizer effectspeed_grow:dry:dry_pot# Model ID for dry pot with 'speed grow' fertilizer effectwet:wet_pot# Model ID for wet pot with 'speed grow' fertilizer effect
Configure Water Refill Methods:
The fill-method section allows you to define various methods for refilling the pot with water:
Method 1: Using a WATER_BUCKET adds 3 units of water. Upon refilling, the player receives an empty BUCKET.
Method 2: Using a POTION adds 1 unit of water and returns a GLASS_BOTTLE.
Both methods include actions like playing a sound (minecraft:item.bucket.fill or minecraft:item.bottle.fill) and a hand-swing animation to provide feedback during the refill process.
# Methods available to refill the watering can with waterfill-method:# Customizable refill method 1method_1:# Item required to refillitem:WATER_BUCKET# Item returned after refilling (optional)return:BUCKET# Amount of water added with this methodamount:3actions:# Sound effect to play when refillingsound_action:type:soundvalue:source:playerkey:minecraft:item.bucket.fillvolume:1pitch:1# Action of swinging hand during refillswing_hand_action:type:swing-handvalue:true# Customizable refill method 2method_2:item:POTIONreturn:GLASS_BOTTLEamount:1actions:sound_action:type:soundvalue:source:playerkey:minecraft:item.bottle.fillvolume:1pitch:1swing_hand_action:type:swing-handvalue:true
Customize the Water Level Display Bar:
The water-bar configuration allows you to create a unique visual indicator for the water level using custom characters. This display provides a quick and visually appealing way to check how much water is left in the can.
# Configuration for the water level display barwater-bar:left:'뀂'# Left cap of the water barfull:'뀁뀃'# Segment representing full water levelempty:'뀁뀄'# Segment representing empty water levelright:'뀁뀅'# Right cap of the water bar
Set Up Events:
The events section is where the real magic happens. Here, you define how the game responds to different interactions with the pots. Available events: place/break/interact/tick/reach_limitation/add_water/full/max_fertilizers
# Event settings to handle interactions and effectsevents:add_water:particle_action:type:particlevalue:particle:WATER_SPLASH# Particle effect when water is addedx:0.5y:1.3z:0.5count:5offset-x:0.3offset-z:0.3interact:# Action to display a hologram when holding a specified itemconditional_action:type:conditionalvalue:conditions:requirement_1:type:item-in-handvalue:amount:1item:soil_surveyoractions:# Display hologram for fertilizer status if fertilizer existsconditional_fertilizer_action:type:conditionalvalue:conditions:requirement_1:type:fertilizervalue:has:trueactions:fertilizer_hologram:type:hologramvalue:duration:20# Duration the hologram remains visibletext:'<font:customcrops:default>{icon}</font> {left_times}/{max_times}'apply-correction:truex:0.5y:0.83z:0.5visible-to-all:false# Display hologram showing current water level in the potwater_hologram:type:hologramvalue:duration:20# Duration the hologram remains visibletext:'<font:customcrops:default>{water_bar}</font>'apply-correction:truex:0.5y:0.6z:0.5visible-to-all:false
Set Up Requirements:
Under requirements, you can configure the conditions player have to meet before using the pot. Available events: break/place/use