Skip to content

Bee CraftTweaker Functions

thedarkcolour edited this page May 9, 2020 · 4 revisions

Add or remove valid flowers for pollination.

The import for 1.12 is

import mods.futuremc.Bee;

Allowing a flower

Allows a bee to collect pollen from this block. Doesn't even have to be a flower. Parameters:

import mods.futuremc.Bee;

import crafttweaker.block.IBlockState;

Bee.addFlower(<blockstate:actuallyadditions:block_black_lotus>);

Disallowing a flower

Prevents the bee from searching and collecting pollen from this flower.

import mods.futuremc.Bee;
   
import crafttweaker.block.IBlockState;

mods.futuremc.Bee.removeFlower(<minecraft:red_flower>);

Clearing defaults

If you want to overhaul the flowers that a bee can pollinate, use this function before you add your own recipes.

mods.futuremc.Bee.clearValidFlowers();
Clone this wiki locally