Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-245503

The configuration of moss block spreading cannot be modified by data pack

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 22w44a
    • 1.18.1
    • Windows 10 21H1, openjdk 17.0.1 2021-10-19 LTS
    • Plausible
    • Custom Worlds
    • Low

      Noticed that there is a configuration file named “moss_patch_bonemeal.json” in vanilla worldgen datapack, placed in "worldgen/configured_feature". However, modifying this file does not change the spreading behaviour of moss block, but modifying “moss_patch.json” can change the moss patches generated in lush caves.

      A datapack for testing is in attachment. 

      I also checked the code and confirmed that the spreading of moss block uses configured feature to generate moss patches.

      //net.minecraft.world.level.block.MossBlock#performBonemeal
      @Override    
      public void performBonemeal(ServerLevel serverLevel, Random random, BlockPos blockPos, BlockState blockState) {
          CaveFeatures.MOSS_PATCH_BONEMEAL.place(serverLevel, serverLevel.getChunkSource().getGenerator(), random, blockPos.above());
      } 

            Unassigned Unassigned
            Youmiel Youmiel
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: