Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

send to minecraft #13

Open
invisiblespider opened this issue Apr 7, 2020 · 8 comments
Open

send to minecraft #13

invisiblespider opened this issue Apr 7, 2020 · 8 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@invisiblespider
Copy link

send to minecraft

instead of reloading and running the code inside minecraft, vs code sends the code directly to minecraft to run so you can quickly iterate over ideas.
there is a maya extension that does that, it would be a cool addition

@ImUrX ImUrX added the enhancement New feature or request label Apr 7, 2020
@ImUrX
Copy link
Owner

ImUrX commented Apr 7, 2020

will need to implement kind of a LSP to the carpet mod, will check it out with gnembon

@ImUrX ImUrX added the blocked label Apr 7, 2020
@Ghoulboy78
Copy link
Contributor

what is an lsp, and also there is no need for that man. You just save it into scripts folder, then go into game and type /script load scriptname. It doesnt get faster than that

@ImUrX
Copy link
Owner

ImUrX commented Apr 21, 2020

im talking about a debugger you genius

@ImUrX
Copy link
Owner

ImUrX commented Apr 21, 2020

and an LSP is just an addon but as a server

@Ghoulboy78
Copy link
Contributor

yeah but then you have to implement that stuff directly into carpet mod, no real other way is there?

@ImUrX
Copy link
Owner

ImUrX commented May 17, 2020

I never replied by here, you would need some high permissions as an app there is no other "nice" way of doing it

@Parietic
Copy link

Parietic commented Dec 30, 2021

Gonna leave this here incase it helps anyone.

What I'm currently doing to quickly test scripts is using this extension: Run on Save
With these settings:

"emeraldwalk.runonsave": {
    "commands": [
        {
            "match":"\\.sc$",
            "cmd":"copy ${file} C:\\Users\\USER\\AppData\\Roaming\\.minecraft\\config\\carpet\\scripts\\${fileBasename}"
        }
    ]
}

This lets me automatically copy any script within my workspace, to the scripts directory in MC each time the script is saved.
Combine this with "files.autoSave": "afterDelay" and it feels pretty smooth.
All I need to do after I make a modifcation is alt-tab and reload the script.

Will say though, having vs code auto reload the script and then have MCs chat/logs in vs codes output would be amazing. But Sadly doubt we can do that with out carpet providing a LSP.

@ImUrX ImUrX removed the blocked label Apr 4, 2022
@ImUrX
Copy link
Owner

ImUrX commented Apr 4, 2022

kind of possible with carpet extensions but you need some kind of mod in the client and maybe in the server or you can do what's said above lol

@ImUrX ImUrX added the help wanted Extra attention is needed label Apr 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants