11---
22title : 🚀 Getting Started
33description : Quickly get up and running with FerrumC.
4+
5+ perv : false
46---
57
68import { Aside , Badge , FileTree , Tabs , TabItem , Steps } from ' @astrojs/starlight/components' ;
9+ import HeadlessTabs from ' ~/components/HeadlessTabs.astro' ;
710
811## Prerequisites
912<Aside type = " tip" >You will not need to install these prerequisites if you are not compiling it yourself!</Aside >
@@ -153,45 +156,105 @@ Before starting, make sure you have the following prerequisites:
153156</Steps >
154157This will create a ` ferrumc ` executable in the ` target/release ` directory.
155158
156- ### Pre-Run
159+ ## Pre-Run
157160<Steps >
158161 1 . ** Move the FerrumC binary to your desired server directory**
159162
160163 2 . Select the ** latest** successful workflow
161164
162165 2 . <Badge text = " Optional" variant = " note" /> ** Generate a config file**
163- ~~~ bash
164- ./ferrumc --setup
165- ~~~
166+ <Tabs syncKey = " os" >
167+ <TabItem label = " Linux" >
168+ ~~~ bash
169+ ./ferrumc --setup
170+ ~~~
171+ </TabItem >
172+ <TabItem label = " macOS" >
173+ ~~~ bash
174+ ./ferrumc --setup
175+ ~~~
176+ </TabItem >
177+ <TabItem label = " Windows" >
178+ ~~~ powershell
179+ .\ferrumc.exe --setup
180+ ~~~
181+ </TabItem >
182+ </Tabs >
166183
167184 3 . ** Import an existing world**
168185
169186 Place the region files (.mca) in the folder named import then run
170- ~~~ bash
171- ./ferrumc --import
172- ~~~
187+ <Tabs syncKey = " os" >
188+ <TabItem label = " Linux" >
189+ ~~~ bash
190+ ./ferrumc --import
191+ ~~~
192+ </TabItem >
193+ <TabItem label = " macOS" >
194+ ~~~ bash
195+ ./ferrumc --import
196+ ~~~
197+ </TabItem >
198+ <TabItem label = " Windows" >
199+ ~~~ powershell
200+ .\ferrumc.exe --import
201+ ~~~
202+ </TabItem >
203+ </Tabs >
173204 The location of these files in minecraft is explained [ here] ( https://minecraft.wiki/w/Region_file_format#Location )
174- <FileTree >
175-
176- - import region files in here
177- - ...
178- - config .toml
179- - ferrumc
180-
181- </FileTree >
205+ <HeadlessTabs syncKey = " os" >
206+ <TabItem label = " Linux" >
207+ <FileTree >
208+ - import region files in here
209+ - ...
210+ - config .toml
211+ - ferrumc
212+ </FileTree >
213+ </TabItem >
214+ <TabItem label =" macOS" >
215+ <FileTree >
216+ - import region files in here
217+ - ...
218+ - config .toml
219+ - ferrumc
220+ </FileTree >
221+ </TabItem >
222+ <TabItem label =" Windows" >
223+ <FileTree >
224+ - import region files in here
225+ - ...
226+ - config .toml
227+ - ferrumc .exe
228+ </FileTree >
229+ </TabItem >
230+ </HeadlessTabs >
182231 <Aside type =" tip" >
183232 If you want to modify batch size (default 150), you can use
184- ~~~bash
185- ./ferrumc --import --batch_size =<num >
186- ~~~
233+ <HeadlessTabs syncKey =" os" >
234+ <TabItem label =" Linux" >
235+ ~~~bash
236+ ./ferrumc --import --batch_size =<num >
237+ ~~~
238+ </TabItem >
239+ <TabItem label =" macOS" >
240+ ~~~bash
241+ ./ferrumc --import --batch_size =<num >
242+ ~~~
243+ </TabItem >
244+ <TabItem label =" Windows" >
245+ ~~~cmd
246+ .\ferrumc .exe --import --batch_size =<num >
247+ ~~~
248+ </TabItem >
249+ </HeadlessTabs >
187250 Basically the number of chunks to import at once , higher => faster but more CPU intensive .
188251 Max is 1024, since that ' s the max number of chunks in a region(.mca) file.
189252 </Aside >
190253</Steps >
191254
192- ### Run
255+ ## Run
193256
194- <Tabs syncKey =" os" >
257+ <HeadlessTabs syncKey =" os" >
195258 <TabItem label =" Linux" >
196259 ~~~bash
197260 ./ferrumc
@@ -203,16 +266,30 @@ This will create a `ferrumc` executable in the `target/release` directory.
203266 ~~~
204267 </TabItem >
205268 <TabItem label =" Windows" >
206- ~~~bash
269+ ~~~cmd
207270 .\ferrumc .exe
208271 ~~~
209272 </TabItem >
210- </Tabs >
273+ </HeadlessTabs >
211274
212275You can change logging level by using ` ` ` --log=<level> ` ` ` :
213- ~~~bash
214- ./ferrumc --log =info #for info level logging
215- ~~~
276+ <Tabs syncKey =" os" >
277+ <TabItem label =" Linux" >
278+ ~~~bash
279+ ./ferrumc --log =info #for info level logging
280+ ~~~
281+ </TabItem >
282+ <TabItem label =" macOS" >
283+ ~~~bash
284+ ./ferrumc --log =info #for info level logging
285+ ~~~
286+ </TabItem >
287+ <TabItem label =" Windows" >
288+ ~~~cmd
289+ .\ferrumc .exe --log =info #for info level logging
290+ ~~~
291+ </TabItem >
292+ </Tabs >
216293
217294###### Logging values :
218295 - trace (Extremely verbose )
@@ -229,7 +306,7 @@ You can change logging level by using ```--log=<level>```:
229306 export FERRUMC_ROOT =/home /YourUser /Documents /Code /Rust /ferrumc
230307 ~~~
231308 </TabItem >
232- <TabItem label =" macOS" >
309+ <TabItem label =" macOS" >
233310 ~~~bash
234311 export FERRUMC_ROOT =/home /YourUser /Documents /Code /Rust /ferrumc
235312 ~~~
@@ -245,4 +322,4 @@ You can change logging level by using ```--log=<level>```:
245322
246323
247324
248- ---
325+ ---
0 commit comments