Terraria

Terraria

26 ratings
Collector's Edition Pet Bunny on Linux
By Syphist
You may have seen multiple guides and videos on how to do this on Windows, but not Linux. I will show you how!
   
Award
Favorite
Favorited
Unfavorite
Base Game: For Linux Native Users - Editing the Mono Registry
First you need to run the game once. You can do this without this step, but it sets up a bunch of folders for you.

The folder you are looking for is:

If for some reason you can't type this into your file browser press Ctrl + H to see the folder .mono in your default home folder, then navigate to the proper folder. You don't have to worry about sudo or root permissions either, as you own this folder and already have permission to write files to it.

In most Linux distros you should be able to right click and do something like Create Document > Empty File. For the file name you want "values.xml" without the quotes. Now open the file in a text editor like gedit, mousepad, vi, nano, etc. and paste this into the file:

<values> <value name="Bunny" type="string">1</value> </values>

Then save your file. You can now open up Terraria and you will be given the carrot item on any new character you create. Have fun with your pet bunny!
Base Game: For Proton Users - Adding the registry key in Proton
Since the inception of this guide 9+ years ago, Valve has released Proton. Changing the key in proton is far more similar to Windows than it is with the native Linux version. A few prerequisites are need for doing this though:
  1. You must manually set the game to use a specific version of Proton (Experimental or a custom installed version of Proton-GE is recommended) and you must run the game once
  2. You must have protontricks installed
  3. You must know where your game is installed with Steam

After you run the game and close it, run the following command:
protontricks 105600 regedit

You will get a window that looks a lot like the Windows regedit tool, this is what we want. Follow these steps:
  1. Open the folder "HKEY_CURRENT_USER"
  2. Go into the folder "Software"
  3. Right click on the "Software" folder and go to "New" > "Key"
  4. Name it "Terraria" (without the quotes)
  5. Open the "Terraria" folder
  6. Right click in the blank space below the word "(Default)" and go to "New" > "String Value"
  7. Name this value "Bunny" (without the quotes)
  8. Set the value to "1" (without the quotes)

Now you can launch the game and a new character you create should be given the bunny item.
TModLoader: For Linux Native Users
Unfortunately it looks like Linux Native dotnet 8 doesn't have a way to simulate the Windows Registry at the time of writing this. If you want to use TModLoader on Linux and have the bunny you need to use Proton.
TModLoader: For Proton Users - Changes to do this for TModLoader
Follow all the steps of the above section but use this protontricks command instead:
protontricks 1281930 regedit

Launch TModLoader and any new character created will have the pet bunny.
38 Comments
Syphist  [author] 4 May @ 7:56am 
@ShadowBlade8192 Unfortunately I was wrong to assume TModLoader uses mono. It looks like natively compiled dotnet 8 at the time of writing this. This means it does not work with the Linux Native version. I also did a deep dive and there are no mods to force this to be enabled so at this time you will have to use Proton with TModLoader if you wish to have the pet bunny.
ShadowBlade8192 3 May @ 11:11pm 
is there something im missing cause i ran the linux native version of both and only vanilla could use the carrot, not tmodloader
Syphist  [author] 3 May @ 8:08pm 
Also I made sure to get this working in TModLoader too under proton. If you use the Linux Native versions you will not need to do it seperately.
Syphist  [author] 3 May @ 7:57pm 
@arby's mcrib I updated the guide to modernize it and include both the native mono version of the registry and the Proton version. I have tested both and validated both. Just do note you need to use protontricks as using the system wine version doesn't properly edit the registry like protontricks will.
Syphist  [author] 3 May @ 7:03pm 
I think there's a way to add a .reg file with protontricks. I'll have to look into that and potentially add that to the guide. This one has been untouched for many years so I don't actually know if it works with Linux native anymore and proton wasn't even a consideration back then.
W.B. Masterson 3 May @ 10:28am 
@Zode333 You'd have to add the right registry key in wineprefixes
Zode333 12 Oct, 2024 @ 7:21pm 
@ShadowBlade8192 Many a time, when browsing forums pertaining to the issue one is having, one may stumble across someone who has the same problem and for the exact reasons, and is asking for a solution. Now, on occasion, this individual will reply some time later with a simple "Never mind, I figured it out," or some variation thereof. This is, of course, a very frustrating experience, and no one wants to be in that scenario.
So let me ask: how, pray tell, did you achieve this feat?
ShadowBlade8192 10 Mar, 2024 @ 1:02am 
nvm figured it out
ShadowBlade8192 10 Mar, 2024 @ 12:30am 
is there a way to do this when running the windows version via proton? (im using that version cause the native linux version doesnt support mouse4 and mouse5)
deudz 25 Oct, 2022 @ 10:21pm 
works :steamhappy: