qalarc. multi-perspective analysis
Technologygmod

Developer Pitches Modder-First Minecraft Clone in C With GMod-Style Lua API

Multi-perspective analysis. Each perspective deliberately argues one viewpoint; none represents the editorial position of qalarc.

A hobbyist developer has shared an in-progress voxel game written in C, describing it as a deliberately barebones engine whose playable content is layered entirely through a Lua modding API modeled on Garry's Mod. The pitch β€” that the core game is 'extremely barebones and unplayable' without Lua, with everything in the demo screenshot produced through the modding layer β€” drew technical pushback over the choice of language runtime, scripting engine, and graphics API rather than the concept itself.

What the terms mean (5)
  • Garry's Mod (GMod) β€” A sandbox game built on Valve's Source engine whose content is overwhelmingly created by users via an extensive Lua scripting/modding API.
  • Lua / LuaJIT β€” Lua is a lightweight scripting language commonly embedded in games; LuaJIT is a high-performance just-in-time-compiled implementation of it.
  • LuaJIT FFI / cdata vs userdata β€” LuaJIT's Foreign Function Interface lets Lua code directly access C structs by memory layout ('cdata'), avoiding the heavier 'userdata' wrapper objects that add garbage-collection overhead.
  • Luau β€” A typed, performance-focused dialect of Lua originally developed by Roblox, sometimes proposed as a faster, safer alternative to standard Lua.
  • fogleman/Craft β€” A well-known open-source Minecraft clone written in C using modern OpenGL, often cited as proof the concept is viable in C.
The facts (8)
  • The developer states they are building a 'modder-friendly Minecraft remake in C,' designing the engine to be 'modders-first,' with the core game without Lua being 'extremely barebones and unplayable' and the screenshot content produced through the Lua modding API.
  • The stated goal is a modding API 'on par with GMod's modding API,' including engine-level features like asset loading and bundled utility libraries to make the modding layer powerful.
  • Garry's Mod exposes a well-documented Lua scripting API via Lua's C/C++ stack-based interface, which is the established reference point for a 'GMod-comparable' modding model [1][2].
  • Commenters urged switching from standard Lua to Luau (Roblox's typed Lua dialect) and from OpenGL to a newer graphics API such as SDL3 or WebGPU, calling OpenGL 'a 20 year old graphic api' [link: luau-lang/luau].
  • Other commenters pushed LuaJIT's FFI, arguing position vectors should be represented as 'cdata' rather than 'userdata' to avoid VM memory overhead and GC cycles, manipulating struct layouts directly by address.
  • The developer says they want strong performance and broad compatibility, targeting hardware as old as a 2015 Intel dual-core with integrated graphics, and frames the project as a fast, mod-built reimagining of older Minecraft versions.
  • Real prior art exists: 'fogleman/Craft' is a documented Minecraft clone written in C using modern OpenGL [14], and Lua scripting mods for Minecraft such as the Fabric-based 'ScriptIt' already exist [4].
  • A separate side-thread in the same discussion asked why C++ is not commonly used for web development, and floated whether C strings could carry a length header while remaining null-terminated β€” both framed as design debates rather than features of the project.
Context & background

Lua is widely used as an embeddable scripting and extension language in C/C++ engines, including Garry's Mod, World of Warcraft, Factorio and VLC, which is consistent with the project's premise of a thin C core extended through Lua [1][5][6]. Garry's Mod itself is a sandbox game built on the Source engine whose modding ecosystem is driven almost entirely by user-authored Lua addons, and its developer documentation details the C/Lua interface that addon authors use [2][6]. The Minecraft modding space already includes Lua-based approaches β€” both as add-on APIs layered over Fabric and as scripting interfaces discussed in modding communities β€” providing direct precedent for the concept [4][7][9]. No specific project name, repository, or release date has been independently verified for this particular effort; a project page on a small network was shared in the discussion [13], but the work is presented as an early personal project rather than a launched or announced product.

Still unresolved
  • Whether the project has a public repository, named release, or working build beyond the shared screenshot β€” none of which could be independently verified.
  • Whether the developer will adopt the suggested LuaJIT/Luau and modern graphics-API changes, or stay with standard Lua and OpenGL as described.
  • Whether the discussion's reference to an earlier, similar Lua-modding project for Minecraft Alpha relates to this effort or a separate developer.
Three perspectives

The same story, argued three ways. Pick an angle β€” the facts above stay the same.

🧭 Cui bono β€” who benefits?

Beneficiaries

  • Independent game developers and modding communities β€” Access to a lightweight, performant Minecraft alternative with direct C/Lua modding without reverse-engineering or violating ToS
    via C implementation removes JVM overhead; Lua API lowers barrier to entry versus Java bytecode manipulation or plugin APIs that Microsoft can deprecate at will
  • Lua ecosystem and tooling vendors β€” Expanded addressable market as voxel game modding becomes a major Lua use case
    via If project gains traction, voxel games join game engines (Roblox, LΓ–VE, Defold) as Lua anchor application; drives demand for debuggers, LSPs, training content
  • Anti-Microsoft sentiment factions in gaming β€” Credible alternative reduces lock-in to Bedrock/Realms ecosystem
    via Self-hostable C clone with open modding API provides exit option from Microsoft's progressive enclosure of Java Edition modding and monetization of Marketplace
  • Embedded and resource-constrained platform vendors β€” Voxel games become viable on low-spec ARM devices, retro hardware, microcontrollers
    via C plus Lua scripting drastically lowers memory and CPU floor versus JVM; opens Raspberry Pi, SBC, even ESP32-class targets that cannot run Java Edition

Who loses

  • Microsoft (Mojang): erosion of Minecraft's modding moat and potential player/server fragmentation
  • Java-based modding frameworks (Forge, Fabric): obsolescence if community migrates to Lua-scripted alternative
  • Minecraft Marketplace creators: reduced platform leverage if open modding ecosystem drains audience
  • C++ game engine vendors: reinforces perception that C remains viable for performance-critical indie work, slowing C++20/23 adoption

Rivalry & conflicts of interest

Ramifications (follow the chain)

intentional reading Strongest intentional read: Developer is ideologically motivated anti-enclosure activist targeting Microsoft's progressive lockdown of Minecraft modding. Choice of C (maximum performance, undermines 'you need our optimized Bedrock') and Lua (explicitly copying GMod's modding success story against Source Engine's complexity) are deliberate architectural choices to prove Microsoft's control is unnecessary. If developer has ties to open-source game engine projects or previously worked on reverse-engineering Minecraft protocols, this is a purposeful competitive strike disguised as a hobby project. The timingβ€”as Microsoft tightens Marketplace rules and pushes Bedrockβ€”is not coincidental.

structural reading No coordination required: Minecraft's Java legacy created decade of modding culture that Microsoft cannot fully monetize or control. Every developer who learned Java modding and hit a performance wall or ToS restriction has incentive to rebuild in C. Lua choice is rational mimicry of proven GMod success. The structural conflict is Microsoft's platform rent-seeking (Marketplace, Realms) versus modding community's expectation of free creativity. C/Lua clone emerges because the economic gradient (performance gains, no Oracle/Microsoft licensing ambiguity, scripting ease) rewards whoever builds it first with community gratitude and GitHub stars. Competitive dynamics (Rust vs C, engine wars) provide volunteer contributor energy even without anti-Microsoft intent.

πŸ“Š Trading signals β€” winners & losers

Tradeable instruments most exposed to this story, inferred from the analysis above. Not financial advice β€” informational only, generated by AI from forum discussion and may be wrong.

πŸ“ˆ Likely winners

  • β€”

πŸ“‰ Likely losers

  • β–Ό MSFTstockMicrosoftOwns Mojang; open Minecraft clone threatens modding/server ecosystem lock-in

From the threads

The posts that drew the most replies in the source discussion β€” shown as posted. Reactions ranged across the spectrum; these are the ones people actually engaged with. Each quote links to its archived source thread so you can verify it; quotes we couldn't tie to a source thread are marked source unverified.

Anonymousβ–Έ 35 repliespositive reaction

Hello /g/, I am making a modder-friendly Minecraft remake in C. I am designing the engine to be modders-first. The core game without any lua is extremely barebones and unplayable. What you see in pic rel is a result of the lua modding API. I want the modding API to be on par with GMod's modding API. I will implement features like asset loading into the engine to make modding incredibly powerful alongside creating and bundling incredibly useful libraries to make loading assets from other engines easier. This could make it easy to do things like: Luanti and other attempts at doing this have a pr

view in archive β†—
Anonymousβ–Έ 13 repliesmixed reaction

why can't we build websites in C++?

view in archive β†—
Anonymousβ–Έ 5 repliesmixed reaction

You will burnout, and ditch this project in 4 months.

view in archive β†—
Anonymousβ–Έ 5 repliespositive reaction

replace Lua for Luau instead but please use something other than OpenGL, you could use something like SDL3 or WebGPU, anything better than a 20 year old graphic api

view in archive β†—
Anonymousβ–Έ 3 repliesnegative reaction

It doesn't actually feel like Minecraft and is made in C++ instead of C also doesn't actually feel like minecraft

view in archive β†—

Continue the discussion

Add your own take β€” replies are kept on this article and can be upvoted.

References

  1. [1] Garry's Mod - Wikipedia
  2. [2] C Lua: Functions - Garry's Mod Wiki
  3. [3] β—Ž Gorlem/ScriptIt: Lua Scripting mod for Minecraft using the Fabric API
  4. [4] gLua 101 - An Introduction to Garry's Mod Lua coding
  5. [5] Basics - Getting Started - Garry's Mod Wiki
  6. [6] Lua minecraft modding API? - Mechaenetia Forum
  7. [7] Posts - Cyberix Network
  8. [8] β—Ž fogleman/Craft: A Minecraft clone written in C using modern OpenGL
  9. [9] β—Ž C Lua: Functions - Garry's Mod Wiki
  10. [10] β—Ž Basics - Getting Started - Garry's Mod Wiki
  11. [11] β—Ž Modifying a Minecraft world using Lua scripts - YouTube

β—– supportive Β· β—— critical Β· β—Ž neutral wire Β· β—‘ partisan Β· βš‘ state outlet

Topics

gmodcminecraftlua

Rate this analysis

How fair and useful did you find this multi-perspective breakdown?

Which perspective did you find most worth reading?

β–Ύ Discussion

Select any text in the article to comment on that passage.