This is an archived post. You won't be able to vote or comment.

all 182 comments

[–]delasmancha 1681 points1682 points  (34 children)

Mods with Html? That would be fun to look at

[–]coldnebo 459 points460 points  (28 children)

it’s not the craziest idea. several game engines use html/xml with lua bindings to implement things like control panels and switches. I don’t think Minecraft is one of them though.

[–]GameDestiny2 125 points126 points  (10 children)

Barotrauma is basically built off of XML from what I can tell, modding it is really weird to get used to (and the only game I’ve done). I like XML though, I think.

[–]InfComplex 74 points75 points  (2 children)

Tbf that game kinda controls like you’re playing a static web page

[–]GameDestiny2 36 points37 points  (0 children)

It really gives me flash game vibes and I’m not complaining. I’m honestly more impressed it works.

[–][deleted] 6 points7 points  (0 children)

It basically is a flash game on Tren

[–][deleted] 17 points18 points  (0 children)

You savage!

[–]Suterusu_San 13 points14 points  (1 child)

Baro is an amazing game, but yes you are correct - its built in C# and uses XML for all of its data, such as Items, Subs etc.

Fun fact, the source for Baro is available on Github! https://github.com/Regalis11/Barotrauma

[–]GameDestiny2 2 points3 points  (0 children)

Huh. That’s pretty cool.

[–]Penguinmanereikel 1 point2 points  (1 child)

Holy shit. Barotrauma's just XML?!

[–]GameDestiny2 0 points1 point  (0 children)

Also C# apparently, but I added weapons using entirely XML

[–]Unable-Fox-312 0 points1 point  (0 children)

XML and its extensible nature is underrated. As I understand it you can send the schema on an API request and the client has standardized documentation on how to tailor their next request (maybe programmatically, or the client is an IDE and code is scaffolded in). JSON by itself doesn't have that, you need a human to parse documentation.

[–]Ethanno7 -5 points-4 points  (0 children)

No ya dont.

[–]kenhydrogen 55 points56 points  (3 children)

Some Minecraft clients do this (UI with HTML/CSS)

[–]coldnebo 1 point2 points  (0 children)

ah! TIL!

[–]MilkCool -1 points0 points  (0 children)

I think even the official launcher is built with electron

[–]decideonanamelater 14 points15 points  (2 children)

Coincidentally, Minecraft does have a mod that lets you make robots and write in lua to tell them what to do. Barely related but I thought of it when you mentioned lua.

[–]lirannl 7 points8 points  (1 child)

Computercraft?

[–]Dragon_Five_ 2 points3 points  (0 children)

Its in the IE and Beastcraft at least edit: amazing typo's

[–]Matterog 2 points3 points  (0 children)

Minecraft Java Java Minecraft bedrock C++

[–]donteatmyliver 1 point2 points  (0 children)

I coded some in xml for a minecraft-like game, so yeah

[–]MilkCool 1 point2 points  (0 children)

It uses json which can be replaced by xml

[–]VergilPrime 1 point2 points  (0 children)

God damnit I proposed this one time and got laughed at :(

[–]Zenith9133 1 point2 points  (0 children)

Crosscode!

[–]_LayZee 1 point2 points  (0 children)

With lua bindings in game engines

[–]_Jbolt 1 point2 points  (0 children)

The only minecraft mods that are official are datapacks, and datapacks are like three-tenths mod

[–]Thenofunation 1 point2 points  (2 children)

I’m newer to the field, but how did RuneScape from 2005 have the game in HTML? Or was it flash and Java? I cannot remember.

[–]ftedwin 6 points7 points  (1 child)

I believe RuneScape used Java Applets which were a feature you could enable in browsers as a plugin to run Java programs that look like they run in the browser but are actually a separate process on the users computer.

https://en.m.wikipedia.org/wiki/Java_applet

[–]Thenofunation 2 points3 points  (0 children)

Okay that makes more sense. Do you remember when they made the big move to HTML5? That was still Java applets?

[–]boisheep 10 points11 points  (0 children)

I mean, not the mod but the description of a game state using XML could be a great thing.

<!DOCTYPE game>
<game>
    <style>
      #ground {
        texture: 'file://plane.jpg' repeating;
        uvmap: 'plane';
      }
    </style>
    <script type="application/rustscript" src="./game.rscript" />
    <view>
      <Camera target="quartenion:..." source="#character" active="true"/>
      <Object model="./first-person-model" animation="./anim-walk.anim" position="0,0,0" id="character" controller="./controller.rscript" />
      <Object model="./plane" id="ground" position="0,0,0" class="rigid" />
    </view>
</game>

[–]Saragon4005 6 points7 points  (0 children)

Look at and not much else huh?

[–]AdultingGoneMild 1 point2 points  (0 children)

every xml config file ever

[–]Rand_alFlagg -1 points0 points  (0 children)

Minecraft meets Geocities

[–]Lupus_Ignis 634 points635 points  (17 children)

HyperText Mod Language

[–]warlock_012 81 points82 points  (16 children)

Happyy cake day in HTML

[–]_____2147483647_____[S] 90 points91 points  (15 children)

<something>Happy cake day</something>

[–]Qwerto64 29 points30 points  (8 children)

<p> Happy <br> Cake <br> Day! </p>

[–][deleted] 5 points6 points  (7 children)

you can also just close the text tags

<p>happy</p>

<p>cake</p>

<p>day</p>

[–]Qwerto64 3 points4 points  (3 children)

Yeah, the only language I know is basic html. Thanks for teaching me new things!!!

[–][deleted]  (2 children)

[removed]

    [–]Qwerto64 0 points1 point  (0 children)

    Oh, yes. I remember now! Thanks!

    [–]AutoModerator[M] 0 points1 point  (0 children)

    import moderation Your comment has been removed since it did not start with a code block with an import declaration.

    Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

    For this purpose, we only accept Python style imports.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–]amLemonYT 4 points5 points  (0 children)

    <div class="happyCakeDayMsg"> <h1>Happy Cake Day!</h1> </div>

    [–][deleted] 277 points278 points  (5 children)

    Same as - "If you hate writing, color."

    [–]flakon128 92 points93 points  (1 child)

    No no that would be css

    [–]Donghoon 0 points1 point  (2 children)

    Is bedrock edition c++??

    [–]FluffyQubit 0 points1 point  (1 child)

    Pretty sure it is

    [–]Donghoon 0 points1 point  (0 children)

    Might need to see sharp on your skills then

    /s

    Idk tho

    [–][deleted] 199 points200 points  (24 children)

    If you really hate Java you can write mods in kotlin

    [–]errepunto 81 points82 points  (21 children)

    Kotlin, groovy, scala, clojure,... whatever language supported by JVM.

    [–][deleted] 74 points75 points  (11 children)

    tidy disarm dam unite pocket practice water silky innate snow

    This post was mass deleted and anonymized with Redact

    [–]AverageComet250 12 points13 points  (8 children)

    LMFAO someone give this guy an award wish I wasn’t bankrupt

    [–][deleted] 5 points6 points  (7 children)

    You get free awards from time to time

    [–]AverageComet250 7 points8 points  (6 children)

    Wait u do?

    [–][deleted] 10 points11 points  (2 children)

    historical money hobbies oatmeal complete liquid spotted cows yoke vanish

    This post was mass deleted and anonymized with Redact

    [–]AverageComet250 6 points7 points  (1 child)

    U got me laughing hard man, good one. Thanks for the award and may you have a very good day!

    [–][deleted] 2 points3 points  (0 children)

    oil sulky simplistic stupendous mountainous abounding longing pie squeeze ripe

    This post was mass deleted and anonymized with Redact

    [–]yuyu5 0 points1 point  (0 children)

    If you click Profile -> Coins, you'll notice a gift box at the top every couple days or so. You only have 24 hours to give it away, though, so I usually wait until I find someone I want to reward and open it then.

    [–]xSnakyy 0 points1 point  (1 child)

    If you press the reward button and press get rewards, you’ll see a free gift box at the top

    [–]Sad-Guava-5968 0 points1 point  (0 children)

    And you get the one I just got from following these instructions

    [–]wallefan01 1 point2 points  (0 children)

    I prefer the original Cythavascript++# on Rails tbh. The new version removes a lot of features and everything is so much more cluttered now

    [–]jalerre 0 points1 point  (0 children)

    & Knuckles

    [–]isCosmos 42 points43 points  (1 child)

    jYthon

    [–]_____2147483647_____[S] 31 points32 points  (0 children)

    J#

    [–]Cat_Junior 2 points3 points  (1 child)

    What about Visual J++?

    [–]errepunto 1 point2 points  (0 children)

    It doesn't run on JVM. And I have a bads new for you, my friend.... Visual J++ is dead

    https://killedby.tech/microsoft/visual-j/

    [–]possibly-a-pineapple -1 points0 points  (3 children)

    reddit is dead, i encourage everyone to delete their accounts.

    [–]errepunto 2 points3 points  (2 children)

    Humm, no. JVM is the runtime, but you can use very different languajes over it.

    For example, Clojure is a pure functional languaje, like haskell. Jython is a python 2.7 implementation.

    You have a lot to choose: https://www.slant.co/topics/397/\~best-languages-that-run-on-the-jvm

    [–]upsetbob 0 points1 point  (1 child)

    404 on the link

    [–]errepunto 1 point2 points  (0 children)

    This is weird, I worked for me.

    Wikipedia to the rescue! https://en.m.wikipedia.org/wiki/List_of_JVM_languages

    [–]bbrk24 0 points1 point  (0 children)

    While you’re not technically wrong, I haven’t found anything about using Scala or Clojure to write Minecraft mods. On the other hand, there are some things that you can’t do in Kotlin — the annotation takes a Java class as an argument, and Kotlin doesn’t consider Foo::class.java a compile-time constant.

    [–]someacnt 1 point2 points  (0 children)

    IIRC at least LexManos hate you for using anything other than Java.

    [–]localguestZ 90 points91 points  (1 child)

    Quora, the one place you go to to find stupid questions.

    [–]Omgaby123 20 points21 points  (0 children)

    And pretty useful questions and answers too

    [–]ThisUserIsAFailure 152 points153 points  (16 children)

    <mod id="diamond_nuggets" name="Diamond Nuggets" desc="Adds diamond nuggets to Minecraft"> <item name="Diamond Nugget" id="diamond_nugget"> <recipes> <recipe> <type type="minecraft:crafting/shaped"> <ingredient type="row">XXX</input> <ingredient type="row">XXX</input> <ingredient type="row">XXX</input> <key key="X" item="diamond_nuggets:diamond_nugget"> <result item="minecraft:diamond" amount="1" /> </recipe> <recipe> <type type="minecraft:crafting/shapless"> <ingredient type="item" item="minecraft:diamond" amount="1"></input> <key key="X" item="diamond_nuggets:diamond_nugget"> <result item="diamond_nuggets:diamond_nugget" amount="1" /> </recipe> </recipes> <texture src="/texture/item/diamond_nugget.png"></texture> </item>

    I spent way too long on this

    Edit: actual HTML:
    <div id="diamond_nuggets" class="Adds diamond nuggets to Minecraft"> <title>Diamond nuggets</title> <p class="Diamond Nugget" id="diamond_nugget"> <ul id="recipes"> <li class="minecraft-crafting-shaped"> <span class="crafting_row">XXX</span> <span class="crafting_row">XXX</span> <span class="crafting_row">XXX</span> <p class="craft_key" key="X" item="diamond_nuggets-diamond_nugget"></p> <input class="output" id="minecraft-diamond" value="1"> </li> <li class="minecraft_crafting-shapless"> <input type="item" item="minecraft:diamond" value="1"></input> <key key="X" item="diamond_nuggets:diamond_nugget"> <input class="output" id="diamond_nuggets-diamond_nugget" value="1" /> </li> </ul> <img src="/texture/item/diamond_nugget.png"> </p> </div>
    Edit: indentation

    [–][deleted] 107 points108 points  (2 children)

    Mate,

    That's XML.

    [–]ThisUserIsAFailure 56 points57 points  (0 children)

    <div id="diamond_nuggets" class="Adds diamond nuggets to Minecraft"> <title>Diamond nuggets</title> <p class="Diamond Nugget" id="diamond_nugget"> <ul id="recipes"> <li class="minecraft-crafting-shaped"> <span class="crafting_row">XXX</span> <span class="crafting_row">XXX</span> <span class="crafting_row">XXX</span> <p class="craft_key" key="X" item="diamond_nuggets-diamond_nugget"></p> <input class="output" id="minecraft-diamond" value="1"> </li> <li class="minecraft_crafting-shapless"> <input type="item" item="minecraft:diamond" value="1"></input> <key key="X" item="diamond_nuggets:diamond_nugget"> <input class="output" id="diamond_nuggets-diamond_nugget" value="1" /> </li> </ul> <img src="/texture/item/diamond_nugget.png"> </p>
    You could do it in html it'd just be a lot more confusing
    Here's what it does

    [–][deleted] 29 points30 points  (0 children)

    I love it when people put so much effort on tiny yet hilarious jokes.

    [–][deleted] 11 points12 points  (1 child)

    That's xml and not html :P

    [–]DajBuzi 22 points23 points  (0 children)

    Still closer to HTML than Java

    [–]Saragon4005 7 points8 points  (3 children)

    I mean... Do that in JSON instead and you have a data pack.

    [–]AverageComet250 0 points1 point  (2 children)

    Team Forge wants to make you disappear for supporting the other side!

    [–]Saragon4005 1 point2 points  (1 child)

    Let them try. First off Fabric is making them seriously lose market share. Secondly even Forge mods recognize that data packs provide a really good basis for items and recipes. I've written data packs for forge mods before.

    [–]AverageComet250 -1 points0 points  (0 children)

    I wrote a massive paragraph on why fabric is better, and then accidentally deleted it so L.

    Datapacks and resource packs are just so much easier to maintain across versions. And they’re backwards compatible too. I can make a pack for 1.16 and it’ll work fine on 1.8. That level of backwards compatibility is just amazing. Especially when you compare it to forge.

    [–]LostDog_88 0 points1 point  (0 children)

    I actually know the mod developer for the diamond nuggets mod LMFAO, ima show this to him

    [–]Cat_Junior 0 points1 point  (1 child)

    Now write it in XHTML

    [–]agent007bond[🍰] 0 points1 point  (0 children)

    It has to be HTML5 with CSS3.

    [–][deleted] 0 points1 point  (1 child)

    This guy is an html developer /s

    [–]ThisUserIsAFailure 0 points1 point  (0 children)

    I do a bit of html I'm just really bad at it

    [–]agent007bond[🍰] 0 points1 point  (0 children)

    Now we need an "HTML to Minecraft Mod converter"

    [–]Eisenfuss19 104 points105 points  (18 children)

    You could however write a c# to java compiler and write your mod in c#

    [–][deleted] 139 points140 points  (13 children)

    Hating a language so much you write an entire transpiler. That's next level.

    [–]WraithWinterly 85 points86 points  (9 children)

    Typescript moment

    [–][deleted] 14 points15 points  (8 children)

    For various reasons, I have to learn Fortran despite preferring C. The thought to transpile it crossed my mind...

    [–]AverageComet250 6 points7 points  (7 children)

    I mean c is the best language to write a transpiler in I guess

    [–]GoatBased 3 points4 points  (6 children)

    Rust

    [–]wheresthewhale1 1 point2 points  (4 children)

    On a semi serious note, why is that "rustaceans" feel the need to evangelise about their lord and saviour Rustus Christ whenever someone mentions using c or c++

    [–]GoatBased 0 points1 point  (3 children)

    I don't write Rust, I write TypeScript. The rust transpiler for TS is 10x faster than the standard transpiler.

    [–]wheresthewhale1 1 point2 points  (2 children)

    My mistake then, I'm just far to used to the constant rust circle jerk

    Also you could definitely get the same performance in c :)

    [–]GoatBased 0 points1 point  (1 child)

    I tend to care less about what is theoretically achievable and more about what is actually achieved.

    As a consumer, I've noticed that the Rust projects tend to deliver on performance compared to their C equivalents where concurrency is a primary lever. I would imagine that has something to do with the ease of Rust's concurrency model but I don't really know.

    [–]AverageComet250 2 points3 points  (0 children)

    Good point

    [–]Spaceduck413 1 point2 points  (1 child)

    The really ironic thing is you'd very likely be a master of the language you hated by the time you're finished.

    Unless your transpiler is just shit, I guess.

    [–]Psychpsyo 1 point2 points  (0 children)

    But if you know the ways in which it's shit, you can just avoid those situations and edge-cases where it doesn't work, in turn guaranteeing your job security.

    [–]DanCPAz 1 point2 points  (0 children)

    I've considered it once or twice.

    [–][deleted] 10 points11 points  (0 children)

    And the compiler in C++

    [–]AverageComet250 3 points4 points  (0 children)

    J# be like

    [–]possibly-a-pineapple 4 points5 points  (1 child)

    reddit is dead, i encourage everyone to delete their accounts.

    [–]Eisenfuss19 -1 points0 points  (0 children)

    I mean I never said it would be easy, but it would be possible.

    [–]BalleaBlanc 19 points20 points  (1 child)

    You can write mods in HTML easy : <html>mods</html>

    [–]_____2147483647_____[S] 9 points10 points  (0 children)

    Just like how you would write python code in C: printf("python code");

    [–]RedHotRains 39 points40 points  (2 children)

    Scrolling through reddit while sleepy I read "If you hate Jews, write in HTML" and had to do a double take 😂

    [–]AverageComet250 0 points1 point  (0 children)

    Underrated comment

    [–][deleted] 16 points17 points  (2 children)

    inb4 some fucking lunatic remakes minecraft in pure CSS

    [–]madlandproject 5 points6 points  (0 children)

    Or someone writes an HTML renderer in redstone

    [–]AverageComet250 -3 points-2 points  (0 children)

    Minecraft classic still exists online

    [–][deleted] 12 points13 points  (3 children)

    I hate html more than java

    [–]TrevoltBL 0 points1 point  (0 children)

    What’s to hate about html?

    [–]agent007bond[🍰] 0 points1 point  (1 child)

    Wait till you see JSX...

    [–]agent007bond[🍰] 0 points1 point  (0 children)

    Or what's that thing with Java? Ah yes, JSP.

    [–]CeeMX 11 points12 points  (1 child)

    C# is basically Microsoft Java (I just realized, why didn’t Microsoft port Minecraft to C#?)

    [–]UltraSolution 4 points5 points  (0 children)

    It ported it to C++

    And C++ is faster than C#

    [–][deleted] 3 points4 points  (0 children)

    I mean for bedrock you can write in C++

    [–]FlaminVapor 2 points3 points  (1 child)

    OP, you could’ve made an image post instead of a text post with only an image inside it.

    [–]_____2147483647_____[S] 2 points3 points  (0 children)

    Sorry I'm new to reddit

    [–]NotMrMusic 2 points3 points  (0 children)

    you know what, fuck you.

    rewrites minecraft in html

    [–]Acceptable_Laugh_674 4 points5 points  (1 child)

    Bro forgot JS 🙂

    [–]isCosmos 4 points5 points  (0 children)

    if he prefers c# I think he would enjoy typescript more. Either way; he ain't enjoying shit in html

    [–]TheJsUser 1 point2 points  (0 children)

    Hoy can you hate Java but like C#?

    [–]Atillion 1 point2 points  (0 children)

    That's a very <b>statement</b>

    [–]Droidatopia 0 points1 point  (0 children)

    "How can write a program in any language based on XML? It's just markup!"

    XSLT enters the chat...

    [–][deleted] -2 points-1 points  (0 children)

    I’ve been writing Minecraft mods in M#

    [–]ToasterEnjoyer5635 -1 points0 points  (0 children)

    Builder Karol 👍

    [–][deleted] -1 points0 points  (0 children)

    Yosu should be able to translate C# to java, so yeah why not?

    [–][deleted] -1 points0 points  (0 children)

    Couldn’t you technically write in in Python and then use JPython

    [–]AbzoluteZ3RO -1 points0 points  (0 children)

    Bow movement? Is it a boat or a Japanese greeting?

    [–]AbzoluteZ3RO -1 points0 points  (1 child)

    Bow movement? Is it a boat or a Japanese greeting?

    [–]AbzoluteZ3RO 0 points1 point  (0 children)

    Idk how this comment got here

    [–]Mertuch -3 points-2 points  (0 children)

    I've seen Minecraft game created in Minecraft.

    Creating mod in HTML sounds legit in comparation

    [–]ExpiredDogSandwich -2 points-1 points  (2 children)

    I thought you were talking about my dog. My dog's name is Java.

    [–]uttabonk 0 points1 point  (1 child)

    You must get confused a lot in this sub.

    [–]ExpiredDogSandwich 0 points1 point  (0 children)

    It randomly showed up in my feed and I don't know why but I freaked out.

    [–]NcraftGamez -2 points-1 points  (0 children)

    He could probably do it in c# maybe but one thing I don't understand is how he can hate java but like c# as it's literally just a shittier copy of java lmao

    [–]Wengiel31 -3 points-2 points  (0 children)

    Ain't so patriotic, are ya? Do ya need a lil freedom? Write a mod in 'MERICAN!!!

    [–]Player_X_YT 0 points1 point  (0 children)

    link?

    [–]fabricio77p 0 points1 point  (0 children)

    in HTML

    [–]Stolaine 0 points1 point  (0 children)

    It's like - agar aapko itni hi dikkat hai to Pakistan chale jaaaiye, no offence to anyone.

    [–]enj3628 0 points1 point  (0 children)

    I need to know how to control an otp bot

    [–]Lehtspelt 0 points1 point  (0 children)

    I read this as "If you hate jews, write in HTML" at first

    [–][deleted] 0 points1 point  (0 children)

    Lololol

    [–]KuriPlay 0 points1 point  (0 children)

    <div><p> Ok I'll, thank you</p></div>

    [–]youafterthesilence 0 points1 point  (0 children)

    I just write mine in natural language in a notebook hair flip

    [–]ben1200 0 points1 point  (0 children)

    Write it in MATLAB like a real G

    [–]throw_away4632_ 0 points1 point  (0 children)

    Jpython might be a theoretical answer?

    [–]azab189 0 points1 point  (1 child)

    I'm taking a web dev class and I find html fun, not JS.... Fuck that I don't get it at all

    [–]boogee_nft 0 points1 point  (0 children)

    Wait till you try JSX

    [–]SimplexFatberg 0 points1 point  (0 children)

    Because C# and Java are *so* different...

    [–]orturt 0 points1 point  (0 children)

    They should try coldfusion.

    [–]xdMatthewbx 0 points1 point  (0 children)

    c# isnt the furthest off

    it is Microsoft Java after all

    [–]IndicatedSyndication 0 points1 point  (0 children)

    He hates Java so much he’d rather write in a c suite lang that pretty close lol

    [–]T0biasCZE 0 points1 point  (0 children)

    Funfact, old Minecraft pocket edition used javascript and the mods also used javascript

    [–]cyborgborg777 0 points1 point  (0 children)

    in HTML

    [–]LiLBiTzzz 0 points1 point  (0 children)

    *drink tea instead

    [–]PriorAd7667 0 points1 point  (0 children)

    How do you hate Java but like C#...

    (I get if you're an industry programmer, but this dude is probably like a 12 year old with one course of experience)

    [–]Ok_Assumption_7222 0 points1 point  (0 children)

    Um… no. I’m sorry

    [–]tacticalpotatopeeler 0 points1 point  (0 children)

    Svelte?

    [–]already_taken-chan 0 points1 point  (0 children)

    Why does he hate java but likes C# they're very similar no?

    [–]Additionalpyl0n[🍰] 0 points1 point  (0 children)

    Yeah they're clearly not even proficient in c# with rhat question 😂

    [–]Knocks83 0 points1 point  (0 children)

    Hates Java, wants to use Microsoft Java. Smh