Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Minecraft startup script help (english)

Hello, I am looking for a script I can make so If my computer turns off or restarts it automatically starts my Minecraft server and if possible makes sure internet is connected before it starts. I am a noob when it comes to scripting I'm used to HTML code.

Link to post
Share on other sites

What operating system are you using? This shouldn't require any scripting, just either adding a shortcut to the autostart folder in Windows (assuming it's not already in the autostart list) or enabling a systemd service if you're on Linux.

Don't ask to ask, just ask... please聽馃え

sudo chmod -R 000 /*

What is scaling and how does it work?Asus PB287Q unboxing!Console alternatives :DWatch Netflix with Kodi on Arch Linux Sharing folders over the internet using SSH Beginner's Guide To LTT (by iamdarkyoshi)

Sauron'stm Product Scores:

Spoiler

Just a list of my personal scores for some products, in no particular order, with brief comments. I just got the idea to do them so they aren't many for now :)

Don't take these as complete reviews or final truths - they are just my personal impressions on products I may or may not have used, summed up in a couple of sentences and a rough score. All scores take into account the unit's price and time of release, heavily so, therefore don't expect absolute performance to be reflected here.

-Lenovo Thinkpad X220 - [8/10]

Spoiler

A durable and reliable machine that is relatively lightweight, has all the hardware it needs to never feel sluggish and has a great IPS matte screen. Downsides are mostly due to its age, most notably the screen resolution of 1366x768 and usb 2.0 ports.

-Apple Macbook (2015) - [Garbage -/10]

Spoiler

From my perspective, this product has no redeeming factors given its price and the competition. It is underpowered, overpriced, impractical due to its single port and is made redundant even by Apple's own iPad pro line.

-OnePlus X - [7/10]

Spoiler

A good phone for the price. It does everything I (and most people) need without being sluggish and has no particularly bad flaws. The lack of recent software updates and relatively barebones feature kit (most notably the lack of 5GHz wifi, biometric sensors and backlight for the capacitive buttons) prevent it from being exceptional.

-Microsoft Surface Book 2 - [Garbage - -/10]

Spoiler

Overpriced and rushed, offers nothing notable compared to the competition, doesn't come with an adequate charger despite the premium price. Worse than the Macbook for not even offering the small plus sides of having macOS. Buy a Razer Blade if you want high performance in a (relatively) light package.

-Intel Core i7 2600/k - [9/10]

Spoiler

Quite possibly Intel's best product launch ever. It had all the bleeding edge features of the time, it came with a very significant performance improvement over its predecessor and it had a soldered heatspreader, allowing for efficient cooling and great overclocking. Even the "locked" version could be overclocked through the multiplier within (quite reasonable) limits.

-Apple iPad Pro - [5/10]

Spoiler

A pretty good product, sunk by its price (plus the extra cost of the physical keyboard and the pencil). Buy it if you don't mind the Apple tax and are looking for a very light office machine with an excellent digitizer. Particularly good for rich students. Bad for cheap tinkerers like myself.

Link to post
Share on other sites
19 minutes ago, Sauron said:

What operating system are you using? This shouldn't require any scripting, just either adding a shortcut to the autostart folder in Windows (assuming it's not already in the autostart list) or enabling a systemd service if you're on Linux.

I'm using windows 10 but I would like a script that could also check other things like making sure internet is connected. So I don't have to go to it and connect to internet anytime my computer restarts.聽

Link to post
Share on other sites
2 minutes ago, LittleCham said:

I'm using windows 10 but I would like a script that could also check other things like making sure internet is connected. So I don't have to go to it and connect to internet anytime my computer restarts.聽

If you're on wifi then you can make it so Windows automatically reconnects to the network as soon as the wifi adapter is available - just check the "Connect automatically" box. If you're on wired you don't even need to set that up, it happens automatically.

Don't ask to ask, just ask... please聽馃え

sudo chmod -R 000 /*

What is scaling and how does it work?Asus PB287Q unboxing!Console alternatives :DWatch Netflix with Kodi on Arch Linux Sharing folders over the internet using SSH Beginner's Guide To LTT (by iamdarkyoshi)

Sauron'stm Product Scores:

Spoiler

Just a list of my personal scores for some products, in no particular order, with brief comments. I just got the idea to do them so they aren't many for now :)

Don't take these as complete reviews or final truths - they are just my personal impressions on products I may or may not have used, summed up in a couple of sentences and a rough score. All scores take into account the unit's price and time of release, heavily so, therefore don't expect absolute performance to be reflected here.

-Lenovo Thinkpad X220 - [8/10]

Spoiler

A durable and reliable machine that is relatively lightweight, has all the hardware it needs to never feel sluggish and has a great IPS matte screen. Downsides are mostly due to its age, most notably the screen resolution of 1366x768 and usb 2.0 ports.

-Apple Macbook (2015) - [Garbage -/10]

Spoiler

From my perspective, this product has no redeeming factors given its price and the competition. It is underpowered, overpriced, impractical due to its single port and is made redundant even by Apple's own iPad pro line.

-OnePlus X - [7/10]

Spoiler

A good phone for the price. It does everything I (and most people) need without being sluggish and has no particularly bad flaws. The lack of recent software updates and relatively barebones feature kit (most notably the lack of 5GHz wifi, biometric sensors and backlight for the capacitive buttons) prevent it from being exceptional.

-Microsoft Surface Book 2 - [Garbage - -/10]

Spoiler

Overpriced and rushed, offers nothing notable compared to the competition, doesn't come with an adequate charger despite the premium price. Worse than the Macbook for not even offering the small plus sides of having macOS. Buy a Razer Blade if you want high performance in a (relatively) light package.

-Intel Core i7 2600/k - [9/10]

Spoiler

Quite possibly Intel's best product launch ever. It had all the bleeding edge features of the time, it came with a very significant performance improvement over its predecessor and it had a soldered heatspreader, allowing for efficient cooling and great overclocking. Even the "locked" version could be overclocked through the multiplier within (quite reasonable) limits.

-Apple iPad Pro - [5/10]

Spoiler

A pretty good product, sunk by its price (plus the extra cost of the physical keyboard and the pencil). Buy it if you don't mind the Apple tax and are looking for a very light office machine with an excellent digitizer. Particularly good for rich students. Bad for cheap tinkerers like myself.

Link to post
Share on other sites
On 6/13/2021 at 10:57 AM, Sauron said:

If you're on wifi then you can make it so Windows automatically reconnects to the network as soon as the wifi adapter is available - just check the "Connect automatically" box. If you're on wired you don't even need to set that up, it happens automatically.

I don't know about minecraft, but I've come across a few programs that would fail to load if the internet connection started working after the program was launched.

On 6/13/2021 at 10:52 AM, LittleCham said:

I'm using windows 10 but I would like a script that could also check other things like making sure internet is connected. So I don't have to go to it and connect to internet anytime my computer restarts.聽

You can try a batch file, and putting it in the startup folder (which gets run automatically)

e.g.

@echo off

:CheckInternet
REM Calling Ping, where ping waits for 5 seconds
REM Ping will set errorlevel 1 if its not connected
REM If no internet if found, try finding it again (so it repeats checking about every 30 seconds, until you stop it or it finds a connection)
REM if connection is found goto the launchProgram
echo Attempting to find internet connection
ping www.google.com -n 1 -w 1000

if errorlevel 1 (
TIMEOUT /T 30
goto CheckInternet )
if errorlevel 0 ( goto LaunchProgram )

:LaunchProgram
echo Launching program
[PUT YOUR LAUNCH CODE HERE...something like C:\MineCraft\start.exe]

pause

3735928559 - Beware of the dead beef

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now