-
Notifications
You must be signed in to change notification settings - Fork 120
[1.2.x] MineTweaker3
Documents all the methods provided by AgriCraft. For feature requests create an issue or head over to the FTB thread.
CustomWood recipes are the recipes for the Channel, Tank and Valve. These are like vanilla recipes with the only difference that for each plank type a seperate recipe is created.
Import: import mods.agricraft.CustomWood
-
remove(IItemStack result)
: Removes all recipes for craftingresult
addShaped(IItemStack result, IItemStack[][] inputs)
addShapeless(IItemStack result, IItemStack[] inputs)
import mods.agricraft.CustomWood;
CustomWood.remove(<AgriCraft:waterChannel>);
CustomWood.addShaped(<AgriCraft:waterChannel>,
[[<minecraft:planks>, null, <minecraft:planks>],
[null, null, null],
[null, <minecraft:planks>, null]]);
CustomWood.remove(<AgriCraft:channelValve>);
CustomWood.addShapeless(<AgriCraft:channelValve>,
[<AgriCraft:waterChannel>, <AgriCraft:waterChannel>, <minecraft:stick>])
This example will change the recipe for all Channel and Valve versions. Note that the <minecraft:planks>
in the shaped recipe and the <AgriCraft:waterChannel>
in the shapeless recipe, will get replaced with the "correct" instance for all the recipes.
Seed mutations are of the general form <result> = <parent1> + <parent2>
. Additional parameters can further refine the mutation. Not all possibilities are exposed via MineTweaker (yet).
Import: import mods.agricraft.SeedMutation
-
remove(IItemStack result)
: Removes all mutations where<result>
is the result of the mutation. add(IItemStack result, IItemStack parent1, IItemStack parent2)
-
add(IItemStack result, IItemStack parent1, IItemStack parent2, int id, IItemStack block)
:-
id
can either be1
or2
. - An
id
of1
specifies thatblock
must be below the resulting crop - An
id
of2
specifies thatblock
must be nearby.
-
import mods.agricraft.SeedMutation;
SeedMutation.remove(<minecraft:pumpkin_seeds>);
SeedMutation.add(<minecraft:pumpkin_seeds>, <minecraft:melon_seeds>, <minecraft:wheat_seeds>);
Seeds on the blacklist can not be planted on crops. Make sure that all provided method arguments
are of type ItemSeeds
.
Import: import mods.agricraft.SeedBlacklist
add(IItemStack seed)
add(IItemStack[] seeds)
remove(IItemStack seed)
remove(IItemStack[] seeds)
import mods.agricraft.SeedBlacklist;
SeedBlacklist.add([<minecraft:pumpkin_seeds>, <minecraft:melon_seeds>]);
Soils on the whitelist allow that crop sticks can be planted on them. Make sure that all provided
method arguments are of type ItemBlock
.
Import: import mods.agricraft.SoilWhitelist
add(IItemStack soil)
add(IItemStack[] soils)
remove(IItemStack soil)
remove(IItemStack[] soils)
The spread chance of individual seeds can be overwritten. The spread chance denotes the probability that a fully grown fruit will spread to an adjecent cross-breed crop.
Import: import mods.agricraft.SpreadChance
-
override(IItemStack seed, int chance)
: Chance has to be between0
and100
inclusive.
You can change the fruits dropped by custom crops by adding/removing drops
Import: import mods.agricraft.CropProduct
-
add(IItemStack seed, IItemStack fruit, int weight)
: seed is the seed corresponding to the crop, weight has to be higher than zero, else the default value of 10 will be used - `remove(IItemStack seed, IItemStack fruit)