XiaoMoMi Plugins
δΈ­ζ–‡η»΄εŸΊ
CustomCrops
CustomCrops
  • Plugin Wiki
    • πŸ… CustomCrops
      • ❓️ Common Questions
      • πŸ“„ Format
        • ✏️ Text
        • 🌽 Crop
        • πŸ’¦ Sprinkler
        • 🚰 Watering Can
        • πŸͺ΄ Pot
        • πŸ’© Fertilizer
        • βš™οΈ config.yml
      • πŸ’ͺ Action
      • βœ… Condition
      • πŸ…ΏοΈ Placeholder & Expression
      • πŸ—‘οΈ Random tick vs Scheduled tick
      • 🀝 Compatibility
        • MMOItems
        • MythicMobs
        • Zaphkiel
        • ExecutableItems
        • NeigeItems
        • Supported levelers
        • BetonQuest 2.0
        • BattlePass
        • ClueScrolls
        • TypeWriter
      • ⚑️ Unsafe Commands
      • ⌨️ API
        • Basic Operations
        • Custom Mechanism
        • Plugin Events
        • Other Block System
        • Custom Season Provider
Powered by GitBook
On this page
  • Plugin placeholders
  • Internal placeholders
  • Expressions
  • Register placeholders
  1. Plugin Wiki
  2. πŸ… CustomCrops

πŸ…ΏοΈ Placeholder & Expression

Plugin placeholders

placeholder
value

%customcrops_season%

Get the season of the world player in

%customcrops_season_<world>%

Get the season of the specified world

%customcrops_date%

Get the date of the world player

%customcrops_date_<world>%

Get the date of the specified world

Internal placeholders

placeholder
value

{player}

Player name

{x}

X coordinate

{y}

Y coordinate

{z}

Z coordinate

{world}

World name

{water_bar}

Water bar image

{storage}

The storage of the sprinkler/watering-can/pot

{current}

The current water storage

{near}

Nearby player name

{max_times}

Max times that fertilizer can survive

{left_times}

The times left that fertilizer can survive

Expressions

Register placeholders

Plugin doesn't support using PlaceholderAPI placeholders directly. But there's a section in config.yml where you can customize the identifier of a placeholder and use it almost everywhere.

Let's try the example below. You need to replace %levelplugin_farming%with your current leveler's placeholder.

placeholder-register:
  '{skill-level}': '%levelplugin_farming%'

Now you are alowed to use this placeholder almost everywhere

# drop more items when harvesting
action_1:
  type: drop-item
  value:
    ignore-fertilizer: true
    item: tomato_seeds
    min: '1 + {skill-level}*0.1'
    max: '2 + {skill-level}*0.15'
  chance: 1
Previousβœ… ConditionNextπŸ—‘οΈ Random tick vs Scheduled tick

Last updated 2 months ago