Skip to main content

NPC commands not working

Comments

15 comments

  • Dan Noble

    Hi David, 

    Unfortunately NPCs don't give output so it's difficult to guess what could be going on. 

    I would suggest using the command that is failing in a command block to test, or just typing it into a command prompt. If the command fails, you can review the output and it will give you some clue as to the issue. 

    You could also try using the abbreviated version of the teleport command ( /tp instead of /teleport) and see if that makes a difference. I seem to recall a similar situation where I just couldn't get /teleport to work and /tp did. Shouldn't have made a difference, but it did and I've used the abbreviated version ever since.  

    0
  • Kyle M

    Dan Noble, great troubleshooting idea! 

    0
  • Kyle M

    Thank you Bryan Sanders (archived)

    0
  • David Conover

    Hello.

    I am having this issue again.  I am setting up multiple NPC (robots)  as 'vending machines'.  Students can click on a button to receive a camera, portfolio or Book & Quill.  I create one or two - no problems.  But then I go to make another one (even if in a different part of the world) and the commands don't work.  Sometimes after making - they don't even show up as buttons.  I have tried saving and exiting, restarting my computer, etc... but the problem persists.   Ugh!

    Help please.

    0
  • Dan Noble

    Can you show us some screen shots of the behaviour? 

    Have you tried doing the commands in a different world? Wondering if it's an issue with the specific world or your game installation overall. 

    Wasn't able to replicate the issue here. 

    Can you try with command blocks, or run from the command line? I'm interested in seeing the output. 

    0
  • Dan Noble

    That is interesting. 

    What happens if you try it in a command block or from the command line? 

    Can you try it in another world too? 

    0
  • David Conover

    Command lines work for everything.

    Command blocks no.

    Tried in another world and no luck via NPC or Command Block.

    Issue happens about 90% of the time.  Links work fine.  And on some of the original NPC that I put into my world, the commands work fine (even multiple commands on one NPC).

     

    0
  • Dan Noble

    Might be an issue with the installation. 

    Have you tried uninstalling Minecraft and reinstalling? Are you installing from the Store or the download from the Edu site? 

    1
  • David Conover

    From the EDU site.  I assume if I uninstall I should save and export my world first?  I have spent literally 100s of hours working on it so far and don't want to lose anything.

    0
  • Dan Noble

    Absolutely! 

    I have a world I've been working on for some time too. I'm in the habit of exporting it after every session as it's become fairly extensive. 

    1
  • David Conover

    Dan.

    That seemed to have worked!  You are a hero as usual. 

    Thanks.

    David

    0
  • Dan Noble

    Lol, thanks!

    Glad to hear you got it working!

    0
  • I am using minecraft but when I try to spawn in npc, it does not work!

    0
  • Dan Noble

    Hi Zachary's Minenight club!

    Have you enabled worldbuilder? Type /wb then you will be able to place NPCs. 

    0

Please sign in to leave a comment.