your current location:首页 > news>Custom adding crops, soil, fertilizer and potted interactive plants (Botany Pots) Minecraft Game

Custom adding crops, soil, fertilizer and potted interactive plants (Botany Pots) Minecraft Game

2024-12-05 23:06:12|Myriagame |source:minecraft skins

illustrate

There is already a similar tutorial: using Open Loader or Crafttweaker to customize plant basin formula

But it is a bit incomplete, and it is also a personal tutorial. It cannot be changed, so one I wrote.

Note: This tutorial only teaches data packets. As for Crafttweaker, please see another similar tutorial or wiki.

Note: There are two operations in this tutorial to turn on the display file extension!

Do a good foundation

First of all, make a good foundation.

New folder

Create a new folder and name one casually for making data packets.

pack.mcmeta file

Open the folder of making a packet and create a new Pack.mcmeta file in it. You need to open the display file extension name, which may warn, click "Yes".

Open the PACK.MCMETA file and enter the code in it:

 {{

"PACK": {

"PACK_FORMAT": X,

"Description": "Introduction to Data Pack"

}

}

Replace the x in the Minecraft version X:

1.16.5 is 6

1.18.2 is 9

1.19.2 ~ 1.19.3 is 10

1.19.4 to 12

1.20 ~ 1.20.1 is 15

For more values, please refer to: Package/Version

The introduction of the data package in the code is a brief introduction to the data packet, which can be modified using a string or text component.

Data folder

Create a new Data folder in the folder of making a packet.

Then create a new folder in the data folder. The folder name is your data packet named space ID.

Then build a new RECIPES folder in it.

After that you want to customize things, create a new folder in it:

CROPS: Seeds and products

SOIL: Soil

Fertilizers: Fertilizer

POT_INTERACTION: Potted interaction (1.18.2 newly added)

Finally, the new file in the folder is a JSON file that is ordered to be a legitimate character. You need to open the display file extension name, which may warn, click "Yes".

Minecraft version used for choosing plant pot plants

Since the plant is placed with a version of 1.16.5 or more, the code has changed, which is different from 1.16.5, so please choose the Minecraft version used in the plant pot.

1.16.5

CROPS code

 {{

"Type": "Botanypots: CROP",

"SEED": {

"Item": "Minecraft: Coal"

},

"Categories": ["coal"],

"Growthticks": 1200,

"Growthmodifier": 1.2,

"Display": {

"Block": "Minecraft: Coal_ore"

},

"Results": [

{{

"CHANCE": 1, "Output": {

"Item": "Minecraft: Coal"

},

"Minrolls": 2,

"Maxrolls": 3

}

]

}

SEED's item is a seed, and the item input format is Modid: Item ID.

Categories is a soil type, depending on which soil that can be planted, if you want to set the second, add "," after the first "" "in" [] ", and then enter" "" "", and then enter "" "" "," "" ", and then enter" "" "", "" "", and then enter "" "" ".Fill in the type of soil in it; in the same way, set multiple "[" "behind the countdown to" [] ", then add", ", and then enter" "" ", fill in the soil type operation in it, and fill in the type of soil type.The soil code behind will be available.

GrowthTicks is the basic growth time, the unit is tick, 1 second = 20 tick, filling 0 is invalid.

Growthmodifier is a basis growth multiple.

Display's block is a square displayed at the time of growth. The input format of the block is Modid: block ID.

Results is the product. CHANCE is a chance. Output's item is the output of items. The format is Modid: item ID, minrolls are the minimum output, Maxrolls is the maximum output;Add ",", then add "", ", and then write the code:

 {{

"CHANCE": 1,

"OUTPUT": {

"Item": "Minecraft: Coal"

},

"Minrolls": 2,

"Maxrolls": 3

}

In the same way, set multiple products to add "," to the second "}" behind the countdown, and then write the code to write the code.

SOIL code

 {{

"Type": "Botanypots: soil",

"Input": {

"Item": "Minecraft: Coal_block"},

"Display": {

"Block": "Minecraft: Coal_block"

},

"Growthmodifier": 0, 0,

"Categories": ["coal"]

}

ITEM of Input is the item used.

Display's block is the displayed block, and the input format of the block is Modid: block ID.

GrowthModifier is a modified multiples of basic growth, the formula is growth time = basic growth time*(1+ modify growth time multiple)

Categories is a soil type and can be set more.

Fertilizer code

 {{

"Type": "Botanypots: Fertilizer",

"Fertilizer": {

"Item": "Minecraft: Coal"

},

"Minticks": 50,

"MaxTicks": 80

}

Fertilizer's item is the item used, and the item input format is Modid: Item ID.

Minticks is a minimum reduction of the tick value.

MaxTicks is a maximum reduction value.

1.18.2+

CROPS code

 {{

"Type": "Botanypots: CROP",

"SEED": {

"Item": "Minecraft: Coal"

},

"Categories": [[

"Coal"

],,,

"Growthticks": 1200,

"Display": {

"Block": "Minecraft: Coal_ore"

},

"Drops": [[

{{

"CHANCE": 1.00,

"OUTPUT": {

"Item": "Minecraft: Coal"},

"Minrolls": 2,

"Maxrolls": 3

}

]

}

SEED's item is a seed, and the item input format is Modid: Item ID.

Categories is the type of soil, depending on which soil that can be planted, if you want to set the second, add "," after the first "" "in" [] ", and then return to the above (alignmentIn fact, you do n’t need to align, it is purely beautiful), then enter “” “”, fill in the soil type in it; in the same way, set multiple “[]” first “” to add the first “” behind “”, “”, “,”, ",,",, ",,, to",, to add ",, to",, to add ",,",, to add ",", ","", Then return, align the top, then enter" "" ", fill in the soil type operation in it, the soil code behind will be available.

GrowthTicks is the basic growth time, the unit is tick, 1 second = 20 tick, filling 0 is invalid.

Display's block is a square displayed at the time of growth. The input format of the block is Modid: block ID.

Drops is the product. CHANCE is a chance. Output's item is the output of items. The format is Modid: item ID, minrolls is the minimum output, Maxrolls is the maximum output;Add ",", then add "", ", and then write the code:

 {{

"CHANCE": 1,

"OUTPUT": {

"Item": "Minecraft: Coal"

},

"Minrolls": 2,

"Maxrolls": 3

}

In the same way, set multiple products to add "," to the second "}" behind the countdown, and then write the code to write the code.

SOIL code

 {{

"Type": "Botanypots: soil",

"Input": {

"Item": "Minecraft: Coal_block"

},

"Display": {

"Block": "Minecraft: Coal_block"},

"Categories": [[

"Coal"

],,,

"Growthmodifier": 1

}

ITEM of Input is the item used.

Display's block is the displayed block, and the input format of the block is Modid: block ID.

Categories is a soil type and can be set more.

Growthmodifier is a modification of the basic growth time multiple, the formula is growth time = basic growth time*modify the growth time multiple

Fertilizer code

 {{

"Type": "Botanypots: Fertilizer",

"Ingredient": {

"Item": "Minecraft: Coal"

},

"Min_growth": 50, 50,

"Max_growth": 80

}

ITEM of INGREDIENT is the item used. The input format of items is Modid: Item ID.

Min_growth is the minimum reduction time.

max_growth is the maximum reduction time.

Pot_interaction code

 {{

"Type": "Botanypots: POT_INTERACTION",

"Held_ingRedient": {

"Item": "Minecraft: LAVA_BUCKET"

},

"Soil_ingredient": {{

"Item": "Minecraft: Water_bucket"

},

"Soil_output": {

"Item": "Minecraft: Stone",

"Count": 1

},

"Sound": {{

"Sound": "Minecraft: Block.fire.extinguish",, "

"Category": "Blocks"

},

"Drops": [[

{"Item": "minecraft: hanging_roots"

}

]

}

Heeld_ingRedient's item is a clicked target holding the target. The format is Modid: Item ID.Items can be changed to tag to use labels.

SOIL_INGREDIENT's item is a target item, formatting is Modid: Item ID.If you want to set the second one, return to the last "," back to the back, and then enter the code

 {{

"Item": "Minecraft: Water_bucket"

},

In the same way, if multiple is repeated in the penultimate "," back to the first ",", and then enter the code of the code.

SOIL_OUTPUT's item is to click the target with HELD_INGREDIENT items, and output what items are out of the soil. The format is Modid: Item ID.

SOIL_OUTPUT's Count is the amount of output of items for soil.

Sound Sound is the sound effect emitted after completing the interaction. The value can refer to Minecraft Wiki.

Sound Category is the type of sound effects.

Drops's item is the item obtained after the interaction is completed. The format is Modid: Item ID.If you don't set it, then let's

,

"Drops": [[

{{

"Item": "Minecraft: Hanging_roots"

}

]

Just delete this code. Note: The previous "," must be deleted!

Pack into a zip compressed package

After writing, you can pack it into a zip compressed package.

Return to the folder of making a packet, select the pack.mcmeta file and Data folder, then right -click the Pack.mcmeta file and Data folder, click "Add to the Compression File", select the ZIP format, click "OK", click "OK", click "OK", click "OK", click "OK", and click "OK".Finish!

use

It can be used after the packaging is completed.

When creating the world, click "Data Pack", drag the packed packets into the game window, click "Yes", and then use a new item in the list. Move it to the selected list.Essence

If the world has been created, you can also find the DataPACKS folder in the world folder, and it is okay to drag the packed data packet inside.