A Meteor Addon that lets you create Meteor modules in Multiple Languages.
We currently only support Python and Lua, more are coming in the future though.
- Launch up Minecraft Fabric with the Mod installed.
- Close the game and go to your .minecraft folder.
- Go to the Meteor-Client Folder and then go to Scripts.
- Put your Python / Lua Script into that folder and then Relaunch the game.
- You then should have a Category in the ClickGui that shows your modules.
Please use the wiki! That explains almost everything the API has to offer.
But here's an example piece of code
from net.minecraft.client import MinecraftClient
from net.minecraft.text import Text
from meteordevelopment.meteorclient.events.world import TickEvent
@EventHandler(TickEvent.Pre)
def onTickEventPre():
mc.player.setSprinting(True)
def onActivate():
mc.player.sendMessage(Text.of("Just Enabled Sprint"))
def onDeactivate():
mc.player.sendMessage(Text.of("Just Disabled Sprint"))
mc.player.setSprinting(False)
function onActivate()
print("Hello from Lua!")
end
function onTickPre()
mc.player:setSprinting(true)
end
function onDeactivate()
print("Goodbye from Lua!")
mc.player:setSprinting(false)
end
Although, the code must be obfuscated through minecraft's mappings. Our API does that automatically for you so you don't have to worry about that.
It uses Jython's Python to Java library to convert your Python code to Java code. My API then checks for any Events like Tick Events. It also uses Luaj to convert your Lua code to Java code and execture it. My API then checks for any Event like Tick Events