-
-
Notifications
You must be signed in to change notification settings - Fork 133
Crafttweaker Support
Buuz135 edited this page Sep 10, 2017
·
1 revision
The ItemWeight
is a number that represents the chance of an item to get selected. For example:
Item | Weight | Chance % |
---|---|---|
Stone | 99 | 99% |
Dirt | 1 | 1% |
Item | Weight | Chance % |
---|---|---|
Stone | 2 | 66% |
Dirt | 1 | 33% |
ItemChance% = (ItemWeight/TotalWeight)*100
import mods.industrialforegoing.BioReactor;
BioReactor.add(<minecraft:diamond>);
BioReactor.remove(<minecraft:diamond>);
import mods.industrialforegoing.LaserDrill;
LaserDrill.add(1, <minecraft:stone>, 10); // Arguments: (LaserItemMetadata, ItemStack, ItemWeight)
LaserDrill.remove(<minecraft:stone>);
import mods.industrialforegoing.SludgeRefiner;
SludgeRefiner.add(<minecraft:wheat_seeds>, 10); //Arguments: (ItemStack, ItemWeight)
SludgeRefiner.remove(<minecraft:wheat_seeds>);