Minecraft Data Packs / Tool

JMC (JavaScript-like Minecraft Function)

    • 1,531 views, 2 today
    • 0 downloads, 0 today
    • 13
    • 13
    • 7
    WingedSeal's Avatar WingedSeal
    Level 8 : Apprentice System
    0

    JMC (JavaScript-like Minecraft Function) Minecraft Data Pack

    JMC (JavaScript-like Minecraft Function) is a mcfunction extension language for making Minecraft Datapack.

    Sometimes, coding datapack in mcfunction has very annoying problems. To create a function, you need to create an entirely new file. There's no way to format your code, and no in-line comment. There are algorithms you need to implement again and again. This is where a preprocessor can help.

    Once you start using JMC, it will take your preprocessed JMC file and save it as normal mcfunction files and the rest of the datapack.


    Why use JMC?

    • Avoid repetitive tasks
    • Superior Syntax
    • Low learning curve
    • Many more features

    JMC allows you to write minecraft functions in a better language (.jmc) which is more readable and easier to write.

    Documentation


    Everything you need to know about JMC can be found at https://jmc.wingedseal.com



    Installation

    • Executable

    In "datapacks" folder of your world file (Usually .minecraft/saves/world_name/datapacks). Create a new datapack folder. And put JMC.exe in that folder then run it.

    • Python 3.10+

    pip install jmcfunction --pre

    FAQ


    Is it a virus?
    No, why would I post a virus on planetminecraft...


    But I still think it's a virus?
    https://www.virustotal.com


    But my computer says it's a virus?
    It's very likely a smartscreen, it's saying the file is not know by Microsoft (Obviously, I'm not going to pay them). But there's a small chance an antivirus gives a false positive result since it's "compiled" from python, and there are viruses that use the same method. If you are paranoid, you can use python version instead of executable.


    What is JMC exactly?
    It's its own language that come with a compiler, you write in this language, the program turns it into a datapack.



    Is it open source?
    JMC (JavaScript-like Minecraft Function) Minecraft Data Pack

    https://github.com/WingedSeal/jmc


    How do I compile it from source?

    The instruction is written in the README of github


    Does it support my OS?
    If you are on Windows or Linux, yes natively. For MacOS, you need to use python version.


    Will it be slower than vanilla datapack?
    Very likely, no. If you are a beginner it might even optimize your code. And it's low level enough for advanced datapacker to controls 100% of the result datapack.


    Is there a discord server?
    https://discord.gg/PNWKpwdzD3


    What do I do when I find a bug?

    Report it on https://github.com/WingedSeal/jmc/issues or just tell me in the discord server.



    How is it better than [​insert precompiler here]?
    I don't know. ¯\_(ツ)_/¯ That's something for you to decide.






    Note: My planetminecraft level is too low to post my custom website as a download link. If you have trouble navigating Github, the download is also available in https://jmc.wingedseal.com/download (They also pull from the Github)
    CompatibilityMinecraft 1.13
    toMinecraft 1.20
    Tags

    Create an account or sign in to comment.

    amandin
    11/05/2023 4:31 am
    Level 57 : Grandmaster uwu
    amandin's Avatar
    masterpiece ngl
    1
    ARandomPigeon
    09/09/2023 2:14 pm
    Level 1 : New Miner
    ARandomPigeon's Avatar
    Could you add the support for vanilla macros within functions like $tp $(x) $(y) $(z)?
    1
    WingedSeal
    09/15/2023 8:35 am
    Level 8 : Apprentice System
    WingedSeal's Avatar
    It has already been done in the github but I haven't rolled it out yet. It should be rolled out in a few days and at max 1 week.
    1
    Mizab
    08/31/2023 12:24 am
    Level 63 : High Grandmaster Programmer
    Mizab's Avatar
    But how do I bake a cake?
    1
    Natasha425
    08/30/2023 4:30 pm
    Level 8 : Apprentice Explorer
    Natasha425's Avatar
    1
    User3881461G
    08/30/2023 6:38 pm
    Level 1 : New Miner
    User3881461G's Avatar
    Hilarious
    1
    MyNameIsBhex
    08/30/2023 11:18 am
    Level 40 : Master Mage
    MyNameIsBhex's Avatar
    This is so cool
    3
    Planet Minecraft

    Website

    © 2010 - 2024
    www.planetminecraft.com

    Welcome