Darkhax-Minecraft / BotanyPots

Adds some flower pots that can be used to grow various crops.
GNU Lesser General Public License v2.1
102 stars 77 forks source link

Change growth time #200

Closed Pedro-phd closed 3 years ago

Pedro-phd commented 3 years ago

Add simple command for chage growth time. or command for kubejs ?

Darkhax commented 3 years ago

There are ways to do this with datapacks, or a CraftTweaker option if you want to script it.

// Gets the crop registry
var crops = <recipetype:botanypots:crop>;

// Loop through each cropId in the crop registry
for cropId in crops.recipeMap {

    // This code is ran once for each crop ID in the game.

    // Get the crop data for the current ID, then multiply it's growth
    // time to be 2x the original value.
    crops.getCrop(cropId).growthTicks *= 2;
}

KubeJS will not be receiving any first party support from me.

Pedro-phd commented 3 years ago

@Darkhax Hello, this command not work, would you have another solution? image

jacklollz2 commented 1 month ago

Make this a config file setting instead.