More things to bonemeal (#137)
Add Cocoa, Melon, Pumpkin, Mushrooms, SweetBerryBush ans Saplings. Signed-off-by: Cloudburst <18114966+C10udburst@users.noreply.github.com>
This commit is contained in:
@@ -1,7 +1,13 @@
|
|||||||
package anticope.rejects.modules;
|
package anticope.rejects.modules;
|
||||||
|
|
||||||
|
import net.minecraft.block.AzaleaBlock;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.CocoaBlock;
|
||||||
import net.minecraft.block.CropBlock;
|
import net.minecraft.block.CropBlock;
|
||||||
|
import net.minecraft.block.MushroomPlantBlock;
|
||||||
|
import net.minecraft.block.SaplingBlock;
|
||||||
|
import net.minecraft.block.StemBlock;
|
||||||
|
import net.minecraft.block.SweetBerryBushBlock;
|
||||||
import net.minecraft.item.Items;
|
import net.minecraft.item.Items;
|
||||||
import net.minecraft.network.packet.c2s.play.PlayerInteractBlockC2SPacket;
|
import net.minecraft.network.packet.c2s.play.PlayerInteractBlockC2SPacket;
|
||||||
import net.minecraft.util.Hand;
|
import net.minecraft.util.Hand;
|
||||||
@@ -62,6 +68,27 @@ public class BonemealAura extends Module {
|
|||||||
if (age < cropBlock.getMaxAge())
|
if (age < cropBlock.getMaxAge())
|
||||||
return blockPos;
|
return blockPos;
|
||||||
}
|
}
|
||||||
|
if (block instanceof CocoaBlock) {
|
||||||
|
int age = mc.world.getBlockState(blockPos).get(CocoaBlock.AGE);
|
||||||
|
if (age < 2)
|
||||||
|
return blockPos;
|
||||||
|
}
|
||||||
|
if (block instanceof StemBlock) {
|
||||||
|
int age = mc.world.getBlockState(blockPos).get(StemBlock.AGE);
|
||||||
|
if (age < StemBlock.MAX_AGE)
|
||||||
|
return blockPos;
|
||||||
|
}
|
||||||
|
if (block instanceof MushroomPlantBlock) {
|
||||||
|
return blockPos;
|
||||||
|
}
|
||||||
|
if (block instanceof SweetBerryBushBlock) {
|
||||||
|
int age = mc.world.getBlockState(blockPos).get(SweetBerryBushBlock.AGE);
|
||||||
|
if (age < 3)
|
||||||
|
return blockPos;
|
||||||
|
}
|
||||||
|
if (block instanceof SaplingBlock || block instanceof AzaleaBlock){
|
||||||
|
return blockPos;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user