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

Player head placed using repeat mode command block does not immediately show texture

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.4, 24w13a
    • None
    • Community Consensus
    • Commands, Networking, Rendering
    • Low
    • Platform

      I'm using a command block set in repeat mode to constantly check that a player head (styled as a cake) is at a given position. If the position is air, i.e. whenever a player breaks the head, it will be immediately replaced using /setblock.

      Here is the command text being run:

       

      1.20.4 and below
      execute if block ~ ~1 ~ air run setblock ~ ~1 ~ minecraft:player_head[rotation=1]{SkullOwner:{Id:[I;-1263558717,974606245,-1774197082,1862776698],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2M5YTg3MjI2ZmRhMDVhMWU2MjRlYmI3MmNmNzQwNjIzZTgxOTE4OWRmZWY1ODliNjgwNzdlNzVjMjQ4Y2U3OSJ9fX0="}]}}}
      24w13a+
      /execute if block ~ ~1 ~ air run setblock ~ ~1 ~ minecraft:player_head[rotation=1]{profile:NeunEinser}
      

      Expected behaviour:
      The head is replaced with the correct custom texture.

      Actual behaviour:
      The player head is replaced with the default Steve texture until either you move far away from the head and return, or log out and log in again. Using F3+A to reload chunks does not fix the texture.

      Notes:

      • Running the command in an impulse command block with a button, the head texture will be set correctly whenever it is placed.
      • The same command worked correctly in 1.18.2 so this seems to be a bug that was introduced at some point since then.

            Unassigned Unassigned
            Telkir Telkir
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: