Jump to content

U_Worm

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

14831 profile views

U_Worm's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I've experienced a similar issue. I haven't seen your code, but if you enter this inModBlockStateProvider.java, it should fix the problem you're facing! I hope your problem gets resolved! makeCustomFlowerBlock(ModBlocks.CUSTOMFLOWER.get(), "customflower_bottom", "customflower_top"); public void makeCustomflowerBlock(Block block, String lowerModelName, String upperModelName) { Function<BlockState, ConfiguredModel[]> function = state -> customflowerStates(state, block, lowerModelName, upperModelName); getVariantBuilder(block).forAllStates(function); } private ConfiguredModel[] customflowerStates(BlockState state, Block block, String lowerModelName, String upperModelName) { DoubleBlockHalf blockHalf = state.getValue(TallFlowerBlock.HALF); List<ConfiguredModel> models = new ArrayList<>(); if (blockHalf == DoubleBlockHalf.LOWER) { models.add(new ConfiguredModel(models().cross(lowerModelName, new ResourceLocation(TutorialMod.MOD_ID, "block/" + lowerModelName)).renderType("cutout"))); } else if (blockHalf == DoubleBlockHalf.UPPER) { models.add(new ConfiguredModel(models().cross(upperModelName, new ResourceLocation(TutorialMod.MOD_ID, "block/" + upperModelName)).renderType("cutout"))); } return models.toArray(new ConfiguredModel[0]); } modblocks.java : public static final RegistryObject<Block> CUSTOMFLOWER = registerBlock("customflower", () -> new TallFlowerBlock(BlockBehaviour.Properties.ofFullCopy(Blocks.PEONY).noOcclusion().noCollission()));
  2. I'm experiencing the same issue. Were you able to fix it?
  3. Did you manage to fix the issue where this block couldn't be placed on water?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.