> For the complete documentation index, see [llms.txt](https://mr-mezzo.gitbook.io/mezzos-railroad-blocks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mr-mezzo.gitbook.io/mezzos-railroad-blocks/custom-elements/custom-railroad-barriers/export-everything.md).

# Export everything

In order to submit your model, you need to export everything exactly as explained here.

### 🧊 ​Export the model

Click: File -> Export -> Export Java Entity

<details>

<summary>Example</summary>

<div align="left"><figure><img src="/files/OyNOgoEvtqE9x1N4EIHL" alt="" width="563"><figcaption></figcaption></figure></div>

</details>

### 🖼️ Export the texture

{% hint style="info" %}
Must be ONE single texture file
{% endhint %}

1. Go to "Paint" tab in the top right corner
2. Right click the texture in the lower left corner under "Textures"
3. Click "Save as" and download it

<details>

<summary>Example</summary>

<div align="left"><figure><img src="/files/mUYWDN58Pb2HdCqSUjBI" alt="" width="271"><figcaption></figcaption></figure></div>

</details>

### 🎥 Export animations

When exporting our animations we need one more little extra step at the end.

1. Click: File -> Export -> Export Modded Entity Animations

<details>

<summary>Example</summary>

<div align="left"><figure><img src="/files/z7Abz4VMa1JfKzw0XAHx" alt="" width="563"><figcaption></figcaption></figure></div>

</details>

2. Only select one, and hit export. Please do not export all at once because we need 4 single files. Repeat that 4 times.

<details>

<summary>Example</summary>

<div align="left"><figure><img src="/files/yZyUD1122RI5VvdMinuj" alt="" width="410"><figcaption></figcaption></figure></div>

</details>

3. Save and rename (important) the files so you can remember the file. For example: instead of "MyBarrier", call it "MyBarrierOpenIdle)
4. Double click or open the file with an editor (I recommend [VsCode](https://code.visualstudio.com/) or [Notepad ++](https://notepad-plus-plus.org/))
5. We need to rename the class. Minecraft won't work if multiple public classes are named `americanBarrierAnimation`, so the class name needs to include the animation name (or any other unique identifier). The specific name doesn't matter—it just has to be unique and different from the names of other public classes.

```java
public class americanBarrierAnimation // <--- we need another name only here {
	public static final AnimationDefinition americanBarrierOpenIdle = AnimationDefinition.Builder.withLength(1.0F).looping()
		//... (other lines of code follow here...)
```

It should look something like this:

```java
public class americanBarrierAnimationOpenIdle // <--- new name is here {
	public static final AnimationDefinition americanBarrierOpenIdle = AnimationDefinition.Builder.withLength(1.0F).looping()
// ... (other lines of code follow here...)
```

6. Save the file with STRG+S
7. Repeat this for all 4 files and you are ready to go!
