your current location:首页 > news>[BCR] Block Crafting

[BCR] Block Crafting

2024-12-15 01:41:08|Myriagame |source:minecraft skins

Block synthetic block crafting

Block synthesis enables you to make items and other things by building a multi -block structure.To build a specific structure, right -click the core block with specific items, the structure will disappear, and leave some synthetic items, summon some creatures, or do anything you want.

You can use Kubejs to define this formula.

(Subsequent supplementation)

At server_scripts:

The first one (manually)

 blockcraft.addmultiblockStruction (MultiblockStructionBuilder.create ("TEST") .Pattern ("ddd") .Pat TERN ("DDD", "GGG") .pattern ("PDS"," Gdg ") .center (" s ", blocks.stone) .whereCond (" d ", b => b == blocks.dirt) // // means that D means a square B (You can use a string) .Where ("g", blocks.grass_block) // indicate that G represents a straw block (you can use a string) .Wheretag ("P", "Minecraft: Planks")) indicates that P means Planks with Planks with PlanksAny blocks of labels (can be used with string) .craftingItem ("Minecraft: Stick") // You need to hold the trigger iTeM.craftingItemtag ("Forge: Ingots") // You need to hold the trigger tag item .Result ("2x 2XMinecraft: Diamond ") // Output .Result (item.of (" minecraft: Golden_sword "). Withnbtpre>

The second type (read. NBT structure)

 blockcraft.addmultiblockStruction (MultiblockStructureFileBuilder.create ("FileTest") .file ("Structures/Filete st.nbt ") // You can read any path (within .minecraft) .center (blocks.Oak_log) .craftingItem ("Minecraft: Stick"). CraftingItemcond (i => i == items.stick) .craftingItemtag ("Forge: Ingots") .Result ("100x m incrat: diamond ") .build ());
physical output Block Crafting supports output Entity

 blockcraft.addmultiblockStruction (MultiblockStructionBuilder.create ('TEST1') .pattern ('AAA', 'AAA, ',' Aaa ') .pattern (' Aaa ',' ABA ','aaa ') .pattern (' AAA ',' AAA ',' Aaa '). Where (' A ',' Minecraft: Cobblestone ') // Multi -square block structure 1.Where (' B ',' Minecraft: DIRT ')// Multi -block structure 2.Center ('A', 'Minecraft: Cobblestone') // Right -click the position of the click. CRAFTINGITEM ('Minecraft: Stick') // The synthetic items .Resultitity ('Minecraft: Pig') //Output entity: pig .build ()) 

Output

 blockcraft.addmultiblockStruction (MultiblockStructionBuilder.create ('TEST1') .pattern ('AAA', 'AAA, ',' Aaa ') .pattern (' Aaa ',' ABA ','aaa ') .pattern (' AAA ',' AAA ',' Aaa ') .Where (' a ',' Minecraft: Cobblestone ') .Where (' B ',' Minecraft: Redstone_block ') .Center (' a ', 'MINECRAFT: Cobblestone'). CraftingItem ('Immersivengineering: Hammer') .Resultitem ('Minecraft: Diamond_block')) // Output item: diamond_block. Build ()) 
Note

When naming the multi -block structure, bring the naming space, for example:

Minecraft: DIRT √

DIRT ×

If the name space is not added, KJS cannot read the structure.

Reminder

 .pattern ('aaa', 'aaa', 'bbb') .pattern ('aaa', 'aba', 'bbb') .pattern ('Aaa', 'AAAAA,',' Bbb ') 

This string of Pattern interpretation

 'aaa''aaaaaaaaa' 

As the first layer

 'aaa''aba'Aba'aaa '

As the second layer

 'bbb'bbb'bbb' 

As the third layer

The goal of MC Encyclopedia (MCMOD.CN) is to provide players with a better environment for MOD learning and research, and accept and cultivate more hardcore players.Provide Minecraft (Minecraft) MOD (module) item data introduction, tutorial strategy and MOD download, and is committed to improving the player's game experience.About the encyclopedia Encyclopedia help development log Donate Encyclopedia to follow the encyclopedia B station = "Fa Fa-Anagle-Right"> Opinions feedback Email © CopyRight Mc Encyclopedia 2013-2024 mcmod.cn |

Minecraft images

In addition to other statements, MCMOD.CN, all open public editing content uses the BY-NC-SA 3.0 protocol.

Minecraft images

Minecraft images