How to detect Inventory Scroll Direction in Minecraft 1.14/1.15/1.16

29,396
0
Published 2020-06-06
Today I'm showing you how to easily detect in which direction the player is scrolling in his hotbar. This can be used for a variety of different mechanics, I personally used it as a movement-control input

►Support me on Patreon:
www.patreon.com/McMakistein

►Merch:
streamlabs.com/mcmakistein/merch

►Download:
mcmakistein.com/creations/scroll_direction_detecti…

▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬
►Twitter: twitter.com/MrMakistein
►Instagram: www.instagram.com/mrmakistein/
►Facebook: www.facebook.com/McMakistein

▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬
►Intro Creator:
www.instagram.com/danny_p3d/
►T-Shirt artist:
twitter.com/PollieboyGames
►Video made using the Replaymod by CrushedPixel:
www.replaymod.com/
►My website programmer: youtube.com/user/timwoocker
►My sister's channel: goo.gl/ICfqv7
(She makes super awesome and super many videos)

▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬
Music:
1) Easy Jazz Piano 7 - Johan Hynynen
provided by www.epidemicsound.com/
2) Easy Jazz Piano 19 - Johan Hynynen
provided by www.epidemicsound.com/
3) Holly x Drivvin - Til The End [NCS]
   • Holly x Drivvin - Til The End [NCS Re...  

All Comments (21)
  • @Nounce
    A simpler method is to get cur_slot in a score, then get last_slot in a score. After you get cur_slot, do cur_slot - last_slot. Then check if the cur_slot score is -4..-1 for left and 1..4 for right. Then -8..-5 for right and 5..8 for left. execute store result score @s cur_slot run data get entity @s SelectedItemSlot scoreboard players operation @s cur_slot -= @s last_slot execute unless score @s cur_slot matches 5..8 unless score @s cur_slot matches -4..0 run execute unless score @s cur_slot matches 0..4 unless score @s cur_slot matches -8..-5 run execute store result score @s last_slot run data get entity @s SelectedItemSlot That's only 5 commands and much more efficient
  • This isn't really what I was looking for but I think it still solved my problem. Thanks!
  • @miningcow
    Thanks! I will definitely use this for noob detection!
  • @Flare586
    so cool. can you please show us how to show inventory bar when you render in replay mod.
  • @ilonachan
    Cool tech! And you've already shown us a brilliant use case, so I'm excited to see this being used a lot.
  • @distort9860
    Wait u recently posted i thought u wont be coming for weeks Am surprised......
  • @Leandro-vy7nj
    1:36 you can do that with one command: execute as @a store score @s sdd_last_slot int 1 run data get @s SelectedItemSlot
  • @el_pvp_pro
    Does anyone out there know how to answer me if you scroll click what setting does it make for the scroll click not to change slots? Because it changes slots instead of using the numbers, how do you use it to change the config?
  • @G1rby
    is there a way to detect sneaking in vanilla with no datapacks
  • @VoxelMusic
    This video was reccomended directly above a video of a crow, deepthroating someone's finger.
  • @dovantuantu
    I don't understand anything, but still watch cuz it's MrMakistein
  • Technically speaking, it would be possible to make it with command blocks right? Seeing the commands it would seem possible