ComputerCraftMail is a custom program for the Minecraft mod ComputerCraft that allows players to send local emails within the game using the ComputerCraft mod. This project provides a simple and efficient way to communicate with other players in your Minecraft world.
- Server and Client Scripts: Easily set up your email system with dedicated server and client scripts.
- Local Email System: Send and receive messages between players in your Minecraft world.
- User-Friendly Interface: Simple commands to send and check emails.
To install ComputerCraftMail, follow these steps:
-
Ensure you have the ComputerCraft mod installed in your Minecraft environment.
-
Use the following commands to download the server and client scripts directly from GitHub:
For the server side:
wget https://raw.githubusercontent.com/TheAgent-1/ComputerCraftMail/main/mail_server.lua
For the client-side:
wget https://raw.githubusercontent.com/TheAgent-1/ComputerCraftMail/main/mail_client.lua
-
To run the scripts, simply type the following commands in your ComputerCraft computer:
- For the server:
mail_server - For the client:
mail_client
- For the server:
If you want to change the email domain (e.g., from spectre.local to something else), you will need to clone the repository and modify the code directly:
-
Clone the repository:
git clone https://github.com/TheAgent-1/ComputerCraftMail.git
-
Open the
mail_client.luafile and locate the line that defines the domain:return email:match("^(%w+)@spectre%.local$")
Change
spectre.localto your desired domain. -
Save your changes and run the modified client script.
Once installed, you can use the following features to interact with ComputerCraftMail:
- When you run the client script, you will be prompted to enter your email in the format
username@spectre.local. Ensure you enter a valid email format to proceed.
After logging in, you will see the main menu with the following options:
-
Send Mail:
- Select this option to compose and send an email.
- You will be prompted to enter the recipient's email and your message.
- Ensure the recipient's email is in the correct format before sending.
-
View Inbox:
- Select this option to fetch and view your inbox.
- You will see a list of received emails, including the sender and timestamp.
- You can choose to delete an email by entering its corresponding number.
-
Exit:
- Select this option to exit the email client.
Contributions are welcome! If you would like to contribute to ComputerCraftMail, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request.