zhuowei / MCPELauncher

Source code for BlockLauncher, a launcher that patches Minecraft for Android
Apache License 2.0
670 stars 193 forks source link

ModPE JavaScript Question #1479

Open StudioJR opened 5 years ago

StudioJR commented 5 years ago

Is there a way to run in my one file main.js a function from modul.js? I'm thinking of an API but therefore i must have a way to run my function from another file Thanks for all answers

StudioJR commented 5 years ago

I know that blocklauncher doesn't set ModPE JavaScript Api like stuff but i need an idea and dont know who to ask

zedman2000 commented 5 years ago

there is a way, I don't remember it, but I am pretty sure I did it in my Super Door Operator mod.

StudioJR commented 5 years ago

Where can I find your Mod? - I would take a look at it is it on Github?

zedman2000 commented 5 years ago

they are posted on: https://minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/2696679-super-something-something-2000-mods-by-ironhead65