From 5dd658c2c5a41e05dc89c6e48270ddf5940a428a Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 15 Aug 2023 13:04:26 +0200 Subject: [PATCH] [Change] Have behaviour Builder for non -tickable leaves --- .../betterx/bclib/behaviours/BehaviourBuilders.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/betterx/bclib/behaviours/BehaviourBuilders.java b/src/main/java/org/betterx/bclib/behaviours/BehaviourBuilders.java index 78fd5a96..56338d47 100644 --- a/src/main/java/org/betterx/bclib/behaviours/BehaviourBuilders.java +++ b/src/main/java/org/betterx/bclib/behaviours/BehaviourBuilders.java @@ -100,13 +100,15 @@ public class BehaviourBuilders { public static BlockBehaviour.Properties createLeaves() { return createLeaves(MapColor.PLANT, true); } + public static BlockBehaviour.Properties createStaticLeaves() { + return createStaticLeaves(MapColor.PLANT, true); + } - public static BlockBehaviour.Properties createLeaves(MapColor color, boolean flammable) { + public static BlockBehaviour.Properties createStaticLeaves(MapColor color, boolean flammable) { final BlockBehaviour.Properties p = BlockBehaviour.Properties .of() .mapColor(color) .strength(0.2f) - .randomTicks() .noOcclusion() .isValidSpawn(Blocks::ocelotOrParrot) .isSuffocating(Blocks::never) @@ -120,6 +122,10 @@ public class BehaviourBuilders { return p; } + public static BlockBehaviour.Properties createLeaves(MapColor color, boolean flammable) { + return createStaticLeaves(color, flammable).randomTicks(); + } + public static BlockBehaviour.Properties createCactus(MapColor color, boolean flammable) { final BlockBehaviour.Properties p = BlockBehaviour.Properties .of()