Minecraft Blogs / Article

How to add functionality to the Tricorders in A Touch of Trek

  • 1,252 views, 0 today
  • 6
  • 2
  • 2
Cygnus656 avatar Cygnus656
Level 50 : Grandmaster Mage
In v1.7 of A Touch of Trek, a 3D modeled tricorder was added, replacing the carrot on a stick. The carrot on a stick is a unique item because it has a rightclick function that doesn't use durability. (That's how it was explained to me anyway). Using commands, you can make the tricorder actually perform functions on your minecraft map. Here's how.

For Minecraft 1.13 and up:

First, type this in chat:/scoreboard objectives add rightClick minecraft.used:minecraft.carrot_on_a_stick

Then, place down a repeating unconditional and always active command block with this in it:/execute at @a[​scores={rightClick=1}] run playsound music_disc.11 block

Then a chain, conditional, always active command block feeding away from it with this:/effect give @p minecraft:night_vision 5 1

Then another command block, same as above with this in it:/effect give @e minecraft:glowing 5 1

Finally, add a chain unconditional always active command block to finish the line, with this in it:/scoreboard players set @a rightClick 0

For Minecraft 1.12 and older:

First, type this out in chat:/scoreboard objective add rightClick stat.useItem.minecraft.carrot_on_a_stick

Then set up a repeating command block, with the following command:/execute @a[​score_rightClick_min=1] ~ ~ ~ /playsound record.11 block @a

That will make it so the tricorder will play the tricorder scanning sound when right clicked, since record.11 has been replaced with the tricorder sound. To add more functions to the tricorder, add a chain command block to the side with the desired function. Such as /effect @p 16 5

After you are done with the functions, finish the chain with a final chain command block with the following command:/scoreboard players set @a rightClick 0

Congrats! As long as the chunk with the command blocks stays loaded, you should be able to use your tricorder. There may be a more elegant solution to this (I'm no command expert) but this works. There is a more complicated way you can do this where you can have different functions for different carrot on a sticks, but I'll leave that tutorial for the pros. Hope this helps!

1 Update Logs

Update #1 : by Cygnus656 08/06/2019 7:44:44 amAug 6th, 2019

Updated for 1.14

Create an account or sign in to comment.

08/06/2019 1:29 am
Level 1 : New Miner
OrbiterYT avatar
Hey this needs an update, I have tried to use it in 1.14.4
08/06/2019 7:36 am
Level 50 : Grandmaster Mage
Cygnus656 avatar
I did manage to get this to work in 1.14, but it's been awhile since I did so. The process is generally the same but the commands are different. I think I actually had to go piece by piece with it because I couldn't find an answer online. I will try to post an update soon.
Planet Minecraft


© 2010 - 2023