Lotad's Computers

Downloads:
81
Upvotes: 2
Share this:
Project status
Beta
Modification type
Supported Minecraft versions
1.21.1

Jump to downloads

Lotad's Computers is a mod that adds a computer to Minecraft!

The computer can make files, edit files, execute programs, send chat to all and message other pc's


Commands

  • help: shows all commands for terminal
  • info: shows world name and player name
  • echo: prints a message to the output (echo hi > hi)
  • say: sends a message to all players (say hello) *(might delete cuz too op)
  • make: create a file (make fileName)
  • show: shows all files or one file (show > *allFiles) (show fileName > fileNameLineCount)
  • edit: opens a file in edit mode, edit mode explanation down \/ (edit fileName > *opens edit mode)
  • editline: makes it so you can edit individual lines in files (edit fileName > *enter line number > enter new text for line)
  • execute: executes files line by line, only files that end on .ex will get executed, execute commands down \/ (execute fileName.ex)
  • file: shows file contents (file fileName > *allContents) (gonna change it cuz you can only see last 6 lines now)
  • rpo (redstone port out): sets redstone output level from 0-15 (rpo 15 > *sets redstone level to 15)
  • rpi (redstone port in): shows what signal strength is coming from the RIM (Redstone Input Module) (rpi > *signal strength from RIM)
  • name: sets the pc name (name pcName > *sets pc name)
  • message: sends a message to a pc with a specific name (message pcName > *after you press execute you need to input message in input box and press execute)
  • protect: turns protection mode on or off, in protection mode only the user who turned it on can access the computer (protect > *toggle protection)

Edit mode

In edit mode you can input line by line what you want in the file, everytime you press execute it writes the input to a new line in the file. You can type SHOWLINE to see what line you will write to and you type EXIT to exit edit mode.


Execute commands

each executable file has a value (val) which is a number

  • echo [text] | val              (outputs the given value to the console)
  • say [text] | val                 (outputs the given value to the chatbox)
  • rpo [number] | val          (outputs the given value to the redstone port output)
  • wait [number] | val         (waits N amount of ticks)
  • crpi [number]                 (if the redstone port input doesn't equal the given number then it jumps 2 lines over, otherwise doesn't jump)
  • cval [number]                 (if the value doesn't equal the given number then it jumps 2 lines over, otherwise doesn't jump)
  • # [text]                           (label for goto)
  • goto [text]                     (goes to the given label unconditionally)
  • cgoto [text]                   (jumps to the given label if value is not equal to 0)
  • val< [number] | rpi        (sets the value to the given number or the rpi value)
  • val+ [number] | rpi        (adds the given number or the rpi value to value)
  • val- [number] | rpi         (subtracts the given number or the rpi value from value)

 

Example program

  1. val< 5
  2. # countdown
  3. rpo val
  4. val- 1
  5. wait 20
  6. cgoto countdown
  7. val< 5
  8. rpo val
  9. say SHABAM

(counts down from 5 and outputs it to the redstone port out, after counting down it resets back to 5 and outputs "SHABAM" to the chatbox)


If anyone has some ideas or tips please comment.
Also if anyone knows how i could implement a delete file system please comment and il tell you about my nbt tags array and other stuff to help.

If you encounter any bugs, please let me know!

Minecraft mod files
lotads_computers-1.0.0-neoforge-1.21.1.jar - version 1.0.0 Uploaded on: 01/03/2025 - 01:49   File size: 198.91 KB
lotads_computers-1.1.0-neoforge-1.21.1.jar - version 1.1.0 (Coding Update) Uploaded on: 10/22/2025 - 10:58   File size: 147.41 KB
Changelog

version 1.1.0 Coding Update

Added:

  • Conditional statements (crpi, cval, cgoto)
  • Labels and jump statements (#, goto)
  • variable (val)
  • RIM (Redstone Input Module)

Changed:

  • Redstone IO commands are now rpo and rpi (redstone port input/output)

 

version 1.0.0

  • Computer
  • Computer Core
  • Wireless Module

Commands

  • Help
  • Info
  • Redstone
  • Echo
  • Say
  • Name
  • Message
  • Make
  • Edit
  • File
  • Show
  • Execute
  • Wait