Live data from Hacker News

Minecraft mod that runs RISC-V Linux

curseforge.com

21–30 of 35 posts

Re: Minecraft mod that runs RISC-V Linux

#23

Earlier quoted context omitted.

Even without mods, Minecraft supports programming mechanisms (albeit not robots). redstone blocks can be used like logic gates, to construct traps, play music, open doors or build factories. People have implemented ALUs in redstone.

Redstone is absolutely miserable to use. Even the simple task of moving signal around is a chore. Even though it can be used to do anything with the magic of NOR gates and Turing completeness, it is an outright hostile environment for learning about programming, logic and electronics.

Somewhat agree, however I think it's because building redstone actually requires some materials science type knowledge. i.e. how different materials and physical structures affect the redstone signal.

Redstone blocks vs redstone torches, and their relative strengths/purposes. Torches on sides of normal blocks with signals entering the side of the block. Using normal blocks to prevent redstone signals from connecting (particularly when going up or down stepped inclines). Space requirements to allow a signal to drive a block and not just terminate the signal next to a block.

These are all game analogues of laying out P and N state semiconductors, or conducting signals from one area of a chip to another and maintaining their signal quality, when designing ICs. Granted, these processes are hugely automated by tooling, but someone has to know, learn and understand how the materials science works in order to develop those tools.

This is why I'm surprised I've not yet seen a VHDL/Verilog compiler for minecraft redstone. Converting a gate array and netlist into a minecraft world feels like a relatively simple challenge for anyone with the knowledge, but I guess it's too niche of a project? Or I'm just not looking hard enough for it.

Re: Minecraft mod that runs RISC-V Linux

#24

Earlier quoted context omitted.

Redstone is absolutely miserable to use. Even the simple task of moving signal around is a chore. Even though it can be used to do anything with the magic of NOR gates and Turing completeness, it is an outright hostile environment for learning about programming, logic and electronics.

> it is an outright hostile environment for learning about programming, logic and electronics. Calm down, it's just a building game where it happens that you can learn quite a bit about logic. I'd trying to get my 5 y.o. niece into it, since I find it to be a much better game for children compared to those pointless freemium mobile games. Minecraft is fantastic for how simple it looks on the surface.

I do not disagree with that at all! I played Minecraft for the first time before it even had multiplayer, and I'm currently running a survival server for my friends. I think it's a great game for people of all ages, I just don't think it's any good as a "programming" game.

I guess my bias is that I played Garry's Mod with the Wiremod addon before Minecraft was even a thing, and it personally taught me a lot more about programming and logic than Minecraft ever could.

Re: Minecraft mod that runs RISC-V Linux

#25
post #22

I can't seem to find any info on how the linux enviroment interfaces with the minecraft world. Is there a minecraft.ko or a minecraftd running inside the vm?

From the documentation:

> Many devices are so-called high level API (HLAPI) devices. This means they are not controlled using regular Linux drives, but via a simple RPC system, employing JSON messages over a serial device.

Re: Minecraft mod that runs RISC-V Linux

#26
In the past, I found incredible to being able to program in Lua in ComputerCraft, controlling not only redstone and moving robots, but also being able to interface with the web and serial ports, but this, this is (or can be) a whole new world inside the Minecraft modding space. Amazing!

Re: Minecraft mod that runs RISC-V Linux

#27
post #17

I'm so happy to see it! I had much fun with original OpenComputers, back then I used to wonder if ditching custom Lua OS and running micro Linux VMs would be possible. OpenComputers 2 is the answer, and I'm happy to see it's in active development by OpenComputer's author and most active contributor. It's early in development, but I see in the source code it comes with some basic networking, with IPs, DHCPs and so on.…

I'm eagerly waiting for certificate training with minecraft. Might make certificates like LPIC more accessible and ease the initial barrier to entry.

Re: Minecraft mod that runs RISC-V Linux

#28
post #26

In the past, I found incredible to being able to program in Lua in ComputerCraft, controlling not only redstone and moving robots, but also being able to interface with the web and serial ports, but this, this is (or can be) a whole new world inside the Minecraft modding space. Amazing!

Out of curiosity, is this available in multiplayer, and if so, which physical machine is the "host"? Is it the Minecraft server or is VM execution somehow replicated on the clients (first player that enters an unloaded chunk?)?

Re: Minecraft mod that runs RISC-V Linux

#29
post #26

In the past, I found incredible to being able to program in Lua in ComputerCraft, controlling not only redstone and moving robots, but also being able to interface with the web and serial ports, but this, this is (or can be) a whole new world inside the Minecraft modding space. Amazing!

Out of curiosity, is this available in multiplayer, and if so, which physical machine is the "host"? Is it the Minecraft server or is VM execution somehow replicated on the clients (first player that enters an unloaded chunk?)?

At least with OpenComputer on 1.7.10 the "vm" runs on the "server" which is either the multiplayer server or the client if in single-player mode.

Re: Minecraft mod that runs RISC-V Linux

#30
post #11

As someone who has never played Minecraft except for creative mode without mods with a 6yo. Could someone explain to me what this mod does and what the concept of Robots is? Does this enable programmable computers and programmable robots that have their own "agency" to work for you? And on a related note: Are there other mods related to (learning) programming that can be used by kids (6-8yo)? I'm specifically looking…

OpenComputers has players build one or more machines (either "computers" which can't move, or "robots" which can) and then the conceit is those machines seem to run a primitive DOS^W [Edited: I think it's actually Linux?] with floppy disks (flying robots, but booted from floppy disks, hey it's only a game) and they can run Lua programs you write. This mod (OpenComputers II) is a "spiritual successor" to OpenComputers…

NEI remains and continues to grow, GTNH has back ported many of the JEI features to 1.7.10.

It is pretty easy to import code into OpenComputer once setup - see NIDAS https://github.com/S4mpsa/NIDAS

Post reply on HN