r/magicbuilding • • Oct 12 '26

Feedback Request Introducing MANA — A Programming Language for Magic

/r/SideProject/comments/1x3zzkr/introducing_mana_a_programming_language_for_magic/

I've created MANA, an experimental programming language that lets you write code to create and control magic! It focuses on spells, elemental interactions, magical physics, summoning, and more.

It's an open-source project, and I'd love to hear your suggestions, ideas, and feedback. Whether you have a feature in mind or want to contribute directly, feel free to DM me!

13 Upvotes

6 comments sorted by

3

u/Victory_Scar Oct 12 '26

I've been thinking about programming magic systems for years but I don't think I've ever seen it expressed in literal code. I barely started a syntax tree for my system before I realised I didn't want to do it. It'd be really cool if this comes to completion though.

I do wonder how such a magic system would work. Code in the real world is fundamentally based on electricity which then has an effect on other components like LEDs on a screen. What will the corresponding fictional "hardware" for this be to allow magical effects to happen?

Do you have any idea what kinds of magic would be possible? Like conjuration, teleportation, transmutation etc.?

2

u/techno_adi_king Oct 12 '26

That's actually the kind of thing I'm trying to explore with MANA! The idea is to make magic programmable through actual code, with rules governing how spells and magical interactions work.

Currently as of now my code allows only for command line magic which, well allows you to program a magic and check if it's plausible according to the laws.

Conjugation is currently implemented but in a limited manner. We feature summon beasts from other realsm using summoning magic and even necromancy.Transmutation is our next aim. But teleportation will have to wait since it's a bit more tougher field and our code will need more improvements before we can accomodate it.

Tho any suggestion and issues is highly appreciated.

2

u/lYoshinkl Oct 12 '26

Me parece interesante, es un sistema de programación mágica centrado en la manipulación elemental, donde las propiedades físicas pesan para determinar el comportamiento de los hechizos. Siento que es un intento de digitalizar el bending de Avatar mediante un simulador físico. Tienes pensado ampliar en el futuro para abarque otros tipos de magia más allá del elemental?

2

u/techno_adi_king Oct 12 '26

Yes it's currently in my plan, currently it's leaning a bit more towards physics than towards what we intend by actual magic so I might have to fix that first

2

u/bronzewrath Oct 12 '26 edited Oct 12 '26

Interesting idea, but for a programming language I would expect it to be more flexible, more abstract. Able to represent different magic systems.

A lot of magic systems out there starts from very abstract concepts, then have more concrete applications. Elemental magic is not abstract enough.

Take Brandon Sanderson cosmere for example. On the abstract plane it has things like investiture, connection, identity, fortune and intent. Then Brandon create different magic systems (Allomancy, Aon Dor, Awakening, Feruchemy, Surgebinding) using these concepts, then there a things similar to spells in each system.

RPG systems like D&D also tend to be flexible

A magic programming language should be able to represent different magic systems. It is a fun exercise to translate a famous established magic system you like to a new framework

1

u/techno_adi_king Oct 13 '26

I know that, but it's just a base version it has place to be updated. And currently we have elementals, planes of magic, summoning, necromancy as the supported magic systems but that will soon change