Particle collision magic reform tutorial particle collision (Collision) Minecraft Game

This tutorial is set by the author to use the CC By-NC-SA protocol.

CRT version support

The particle collision is only compatible with CRT 4.1.20.582 and above. If a CRT below this version is installed, the game will crash.

Crystal nucleus and metal generator

Crystal nucleus' magic reform is not implemented by CRT, and the crystal nuclear data is specific.

Gem generator

Added items: Mods.Collision.GemSPAWNER.ADDDITEM (IITEMSTACK Stack, int Wight);

Delete items: Mods.Collision.GemSPAWNER.RMOVEITEM (IITEMSTACK Stack);

Delete all items: mods.collision.gemspawner.removeal ();

example:

mods.collision.gemspawner.additem (, 400); // Add bone meal to gem generator with a weight of 400 400

mods.collision.gemspawner.removeitem (); // Delete red stone

Particle collision

General formula add

MODS.COLLIISION.COLLIDER.Addrecipe (int level, IItemstack Out, absorber [] [] absorbers, @Optional INT SuccessChance)

Level is the collision device level used

OUT is the formula output

ABSORBERS is an absorption carrier used

SuccessChance is the probability of formula success, that is, the chance of producing the finished product, which can be omitted without filling, the default value is 100.

example:

Import Mods.Collision.absorber;

Import mods.Collision.collider;

Val p as absorber = absorber.proton (); // proton

valry n as absorber = absorber.neutron (); // neutron

Collider.addrecipe (3, , [[P, NULL, N], [Null, NULL, NULL], [n, NULL, NULL]]; 80); 80); 80); 80); 80); 80); 80); 80); 80); 80);

Normal formula removal

mods.collision.collider.removerecipe (IItemstack Stack); // Delete the formula of the specified item

mods.collision.collider.Removeall (); // Delete all formulas

Special formula added

The particle collisher allows other blocks to be used as input at the same time.

mods.collision.collider.addcustomRcipe (int level, IItemstack Out, IINGREDIENT [] []], @optional INT SUCCESSSSSSSSSSSSSSSSSSSSSSS, @Optional int , @Optingal youingredient [] [] [] ConversionBlocks);

Level is a collision device elevator

OUT is a formula finished product

Blocks is an input block, where the parameters are EINGREDIENT, so you can use mineral rhetoric, even Ingredientor

Successchance is the chance of success, that is, the chance of generating a formula, the default is 100

ConversionChance is the chance of changing the surrounding cubes after activating the collision, and the default is 100

ConversionBlocks is that the surrounding block will change why, and the default is all air.Although the parameter is ingredient, the internal processing is considered IItemstack, so try to use only items or minerals as much as possible.

example

VAL BS = | ;

Val G = ; Mods.Collision.collider.addcustomRcipe (1, , [[BS, BS, BS], [NULL, NULL], [BS] , BS, BS], 100, 80, [[NULL, G, NULL], [G, NULL, G], [NULL, G, NULL]]);