Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-156303

Cannot target npc entity in ticking area

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.10, 1.18.31, 1.19.10, 1.19.63, 1.20.41 Hotfix
    • Confirmed
    • Multiple
    • 831829

      I have been using the dialogue command on npcs and noticed a while ago that npcs I put within a ticking area could not be selected using a selector. I read that something was off about ticking areas and proceeded to make my own temp work-around by having several npcs throughout my map. I would use one of those NPCs as a dialogue opener.
      But now I am wanting to have one central NPC be used to open up dialogue boxes from anywhere and reduce the amount of entities I have in the world. As far as I could tell the issue with ticking areas is still occurring and I am unable to open a dialogue because it is not "within my ticking range" which confuses me.
      I did look up other tickets and the closest one I found was MCPE-109263.

      Steps to Reproduce:

      • Create a new world. Gamemode: Creative. Difficulty: Peaceful. World type: Flat. Show coordinates: On. Always day: True. Everything else left on default.
      • Type in: /give @s spawn_egg 1 51. Then place an NPC on 0 -60 0
      • Type in: /tickingarea add 0 -60 0 0 -60 0 test true. This will create a ticking area from 0 0 0 to 15 0 15
      • Go 64 blocks away (I went to 0 -60 -64). Type in: /dialogue open @e[type=npc,c=1] @s. NPC will be just within the player's view and a dialogue will open normally
      • Go 1 more block away (0 -60 -65). NPC goes away because it's outside players view. Type in the same dialogue command listed previously. It will state: An NPC was found, but was not in the receiving player's ticking range

      Observed Results:
      Ticking area was created but dialogue box could not be opened

      Expected Results:
      Dialogue box should open because the selected NPC is within a ticking area

      Screenshots/Videos:
      Image 1: Placed the NPC down and created a ticking area
      Image 2: Dialogue was successfully opened from 64 blocks away
      Image 3: Dialogue was unsuccessful from 65 blocks away

      Notes:
      Likely related to ticket #MCPE-109263. If so, please close this ticket and add as related link.

      To my knowledge this seems to be a bug, but I might be missing something obvious. My apologizes if that is the case.

      Also tried the command: /dialogue open @e[type=npc,x=0,y=-60,z=0,c=1] @s so it was exactly where the NPC was located, but had the same results.

        1. image1.png
          206 kB
          Yash
        2. image2.png
          219 kB
          Yash
        3. image3.png
          224 kB
          Yash

            Inuyashamaster1 Yash
            Votes:
            18 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              CHK: