your current location:首页 > news>KU Be JS Botany Pots Minecraft

KU Be JS Botany Pots Minecraft

2024-12-12 09:30:56|Myriagame |source:minecraft skins

Overview

The module allows the use of Kubejs scripts to be customized crops, soils, and fertilizers customized by plant potted plants.

Exemplary example

 servervents.Rcipes (event => {event.recipes.botanypots.crop ("mineCraft: Candle", // Seed item ["oak_l Eaves "], // categories that this crop canbe planeted on {block: "minecraft: candle"}, // Display block [item.of ("minecraft: candle") // item. Withchance (100) // weight of This entry compared to the other. Withrolls (1, 2) // The timeS this loot will be chosen (min, max) // for exmple, when chosen this will give 1 to 2 candles], 10, // geowthticks 1, // optional, growthmodifier-this can be setTO 1 in MOST CASES) Event.recipes.botanypots.soil (

"minecraft:oak_leaves", // the item that this soil is attached to        { block: "minecraft:oak_leaves" }, // display block        ["oak_leaves"], // categories that this soil provides        100, // growth ticks thatThis Soil Will Provide, Set to-1 for No Modifier 0.5 // Optional, Growth Modifier, Example: 0.5 Means All Crops Will Take The Time) EVENT.R) EVENT.R) EVENT.R) EVENT.R) Event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) Event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r) event.r ecipes.botanypots.fertilizer ("Minecraft: Iron_INGOT", // Fertilizer item10, // Min Growth Ticks Applied 20 // Max Growth Ticks Applied // EX: 10 Ticks Will Be Randomly Given to The Crop)}) // Fired Everytime a Crop GR OWSBOTANYPOTSEVENTS.ONCROPGROW (event => {// event.random: The random object associated with the event // event.crop: a crop object design the crop

grown // event.originaldrops: an array of items this crop drops // event.drops: a write array that changes the drip console.log ([EV ENT.RANDOM, Event.crop, Event.originaldrops, Event.drops] .join (",")})

Please check wiki for specific usage methods.