Skip to main content

NPC Buttons can be spam clicked to run commands more than once

Comments

10 comments

  • cool!!!

    0
  • That's an interesting problem. It may be possible to fix with some rethinking about how to use the NPC -- I will ponder. But my first response to preventing kids from getting the high score or quickly figuring out the answer to the question is to wonder what the point is of teaching them this material in this manner. Minecraft offers us an opportunity to approach teaching and learning in new ways and to turn more of our focus towards the learners "making things" with their new knowledge found in both instruction and exploration.

     

    0
  • Joz Leschi

    This is a game I have designed to consolidate their knowledge with maths concepts we learn at this school. It is a different approach to give them a different way to practice. For some kids, this really motivates them. This may not me a 'making-things' thing like all the other things I do with it, but it is no less valid a use for Minecraft.

    0
  • Fair enough -- I get that and want to help. I understand that a gamification model is motivating for some students. I hope my desire to broaden the conversation was not taken as a mark against your efforts.

    :-)

    I think that my first brainstorm to help would be to set up a chain command block that teleports students to a new location after closing out of the NPC. You might be able to put a slight delay on that with some redstone repeaters before the teleport. I suppose you could also run a kill command (a bit brutal for school!) if the student answers incorrectly and have their score reset. Are you using the scoreboard commands to keep track? 

    If you are willing to share the world, I am happy to play and talk to some other MC colleagues about some possible solutions.

    Kind regards,

    Bryan

    0
  • Joz Leschi

    Thanks for your insight. Like I said, I certainly agree with you, I have many worlds I use in my class like that. The reason I created this one is to provide a different way to rapid recall basic maths equations. It is also designed so it can be used by a student independently as a rotation. Having their basic maths facts on Minecraft has been a huge motivator for most of my students.

     

    Happy to share if you think =) Not sure how to share a world though.

     

    How each npc is setup:

    -Name is the rapid recall question.

    -The correct answer has a two commands. One to add a point to a scoreboard, the other to play a sound.

    -Incorrect answers have no code in them, so it just closes the NPC interface

    -There is a /teleport @s ~ ~10 ~ command that happens after the interface is closed so that regardless what you press, the NPC is out of reach in a cobweb for a short time, forcing students to find a different NPC.

     

    The obvious solution would be to put the /teleport @s ~ 10 ~ on the correct answer as well so that it teleports away the same time as it is clicked. This would require a lot of work, as I have nearly 2,000 NPCs in the system.

    The reason I bring this issue up however, isn't because it would be a lot of work, it is because I see the possibility to spam click an NPC button before the interface closes as a design oversight that undermines to purpose of the NPC button.

     

    0
  • 2000 NPCs! I see now why you are concerned. That's a load of work.

    :-)

    If you go to view your worlds, click settings, scroll down on the right side, you should see an export world option. You could pop that into a share and provide a link for me. I have some ways to contact me on my MC profile:

    https://education.minecraft.net/user/bsanderssjsla-org

    0
  • Joz Leschi

    I have emailed you an online link via WeTransfer of the world. Link is valid for 7 days.

    0
  • Received!

    0
  • Joz Leschi

    I have a few commands running to protect the world from some of my more tech savvy students.

    When you enter, turn cheats on and run the command

    /setblock 4 4 7 air 0

     

    You should be able to change game modes then and be in /wb

    0
  • Joz Leschi

    Not sure why I sent you my hard work, nothing came out of it...

     

    Anyway I solved the problem myself by running a repeating command adding scoreboard (spamwall) value on the player 4 times a second.

    Then I edited every single NPC (was a long plane trip) to only play the sound and give them a correct answer point if they had a > 0 score in spamwall

    Once they got the correct point, it set the player's spamwall score to -6.

     

    This way if they keep spamming the button, they keep setting their spamwall score to -6, preventing them getting points.

    0

Please sign in to leave a comment.