your current location:首页 > news>How to create a simple basic crop Content Creator Minecraft Game

How to create a simple basic crop Content Creator Minecraft Game

2024-12-10 17:53:43|Myriagame |source:minecraft skins

Foreword


Since wiki does not have information about crops, I think that the source code is tinkering, it may not be right, but at least it can be used.

Crop


Pre -processor and guide package

#Loader preinit

Import ContentCreator.block.gnericBlock;

// VAR variable name as genericBlock = GenericBlock.createcrop

var ass as genericBlock = GenericBlock.createCrop ("One", "MINECRAFT: Diamond");

// Variable name. End; end;

ass.register ();

Yes, it's that simple!

Resource settings


The highlight!After the creation is successful, you will find that your crops are black -purple blocks, which requires us to do it ourselves.

Requires the resource loaded, such as: Resource Loader.

In .minecraft/Resources/ContentCreator

blockstates/your crops .json

 {{

"Variants": {

"Age = 0": {"Model": "ContentCreator: Your crop 0"},

"Age = 1": {"Model": "ContentCreator: Your crop 1"},

"Age = 2": {"Model": "ContentCreator: Your crop 2"},

"Age = 3": {"Model": "ContentCreator: Your crop 3"},

"Age = 4": {"Model": "ContentCreator: Your crop 4"},

"Age = 5": {"Model": "ContentCreator: Your crop 5"},

"Age = 6": {"Model": "ContentCreator: Your crop 6"},

"Age = 7": {"Model": "ContentCreator: Your crop 7"},

"Normal": {

"Model": "ContentCreator: Your crop"

}

}

}

lang/zh_cn

 item.tile.contentCreator. Your crops .Name = your Chinese name 
Models/Block/Your crop 0.json ~ Your crop 7.json (Need to create 7 files)

 {{

"Parent": "block/crop",

"Textures": {

"Crop": "ContentCreator: Blocks/Your crop name _0 ~ 7"

}

}

Models/item/your crops .json

 {{

"Parent": "Item/Generated",

"Textures": {

"Layer0": "ContentCreator: Items/Your crop"

}

}

Finally, what is the "your crops 0.png ~ your crops 7.png" in Textures/Blocks?How to get the material, find the original crop

Textures/items plugged into "your crops .png"