Skip to content

Commit b2e7d67

Browse files
authored
Update create-a-minecraft-mod-with-java.mdx
1 parent 1134fce commit b2e7d67

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

projects/create-a-minecraft-mod-with-java/create-a-minecraft-mod-with-java.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ This can be done through clicking the three dots "⋮" on the project, like this
8484

8585
And in "Appearance", ensure “Flatten Modules”, “Flatten Packages”, and “Compact Middle Packages” are all turned off (not checked). If they were on, they would make adding directories and files to existing ones harder.
8686

87-
Right-click the **itemmod** folder under the **codedex** folder (can be accessed through src -> main -> java -> com -> codedex) and press new. We will be creating a new Package. You should see a popup, just add “item” to the end of the line, like so:
87+
Right-click the **itemmod** folder under the **codedex** folder (can be accessed through **src** -> **main** -> **java** -> **com** -> **codedex**) and press new. We will be creating a new Package. You should see a popup, just add “item” to the end of the line, like so:
8888

8989
![screenshot](https://i.imgur.com/4r25NPl.png)
9090

@@ -94,13 +94,10 @@ Your **itemmod** folder should look like the following:
9494

9595
![screenshot2](https://i.imgur.com/DDzpUXJ.png)
9696

97-
9897
Open ModItems, we will begin to write some code in here:
9998

100-
10199
![screenshot3](https://i.imgur.com/5x38mEM.png)
102100

103-
104101
In IntelliJ IDEA, you can use autocomplete to automatically add `import` statements. This is convenient and prevents typos, but for the sake of uniformity in this curriculum, we are listing all imports explicitly at the top of the file.
105102

106103
Below the first line, add the following `import` statements:
@@ -173,6 +170,7 @@ Since we are adding an item into the game, we need to make sure it’s accessibl
173170
```java
174171
// Add the example block item to the building blocks tab
175172
private void addCreative(BuildCreativeModeTabContentsEvent event)
173+
{
176174

177175
}
178176
```

0 commit comments

Comments
 (0)