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

Clamp density function takes a direct input and doesn't allow a reference

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19, 1.19.2, 1.19.3 Release Candidate 1, 1.20.4, 23w51b
    • None
    • Plausible
    • Custom Worlds
    • Low
    • Platform

      The "clamp" density function type has an "input" field. But it only allows a direct (inlined) density function or a constant, it doesn't allow a reference (string). This is inconsistent with every other density function that takes another density function as argument.

      The reason is because DensityFunctions.Clamp uses DensityFunction.DIRECT_CODEC, instead of DensityFunctions.HOLDER_HELPER_CODEC, which is what every other density function type uses.

            Unassigned Unassigned
            Misoloo [Helper] Misode
            Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: