your current location:首页 > news>Use Lychee to synthesize Lychee Minecraft Game

Use Lychee to synthesize Lychee Minecraft Game

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

This tutorial is set by the author's setting without permission.

This tutorial will teach you how to use Lychee for simple world synthesis. Most of them are demonstration code. You may not know if you want to contribute to this tutorial..

This tutorial uses CC0 to permit everyone, and the right to grant anyone by default


There are two ways to use this module, one is to use a packet to add synthesis, and the other is to use CRT and other magic reform tools to add synthesis. Because I don’t know how to make a packet, I only talk about the subsequent one

CRT:

 // native

recipes.addjsonRcipe ("recipe_name", {

Somings json

});

// Use library Lycheetweaker (search on github)

LycheerecipeManager.addRecipe ("recipe_name", , New LycheerecipeBuilder ()

.ACTION1 ()

.ACTION2 ()

);

Kubejs:

 Event.custom ({{

Sonethings json

})


Synthesize the object into a block

Example: The dust is thrown into the water into clay

 // CRT:

Recipes.addjsonRcipe ("Clay_watter", {{

Type: "lychee: itm_inside",

Item_in: {item: "exnihilosequentia: dust"},

Block_in: {blocks: ["minecraft: water"]},

Post: {Type: "Drop_item", Item: "Minecraft: Clay"}

});

// CCT library

LycheRecipeManager.addRecipe ("Clay_watter", , new lycheerecipebuilder ()

.Itemin ()

.Blockin ()

.Post (lycheeposts.dropitem ()))))))))

);

// kubejs

event.custom ({{

"Type": "lychee: item_inside",

"Item_in": {"item": "exnihilosequentia: dust"}, "block_in": {"blocks": ["minecraft: water"]},

"Post": {"type": "drop_item", "item": "minecraft: clay"}

})

After clicking the block, the item is generated


Example: Wooden sword hitting stones becomes a wooden stick

 // CRT:

recipes.addjsonRcipe ("stone_sword", {{

Type: "lychee: Block_clicking",

Item_in: {item: "minecraft: wooden_sword"},

Block_in: {blocks: ["minecraft: stone"]},

Post: {Type: "Drop_item", Item: "Minecraft: Stick"}

});

// CCT library

LycheRecipeManager.addRecipe ("Clay_watter", , new lycheerecipebuilder ()

.Itemin ()

.Blockin ()

.Post (lycheeposts.dropitem ()))))))))

);

// kubejs

event.custom ({{

"Type": "lychee: Block_Clicking",

"Item_in": {"item": "minecraft: wooden_sword"},

"Block_in": {"blocks": ["block: minecraft: stoner"]},

"post":  {  "type": "drop_item",  "item": "item:Minecraft:stick"}})