Jacked In Vr Minecraft Java Custom Ore Lesson

1. Open Your project

First, open the project in your preferred editor. This tutorial uses VS Code.

image.png

2.Declare Variables

A variable is like a special box with a name that we can store things inside.

Think of it like this: Imagine your parents told you to clean your room. You put all your toys in a box labeled toys and said: “This box is only for toys.”

Now, whenever you want your toys, you grab the toys box, not the shoes box or the gardening box.

Variables in code work the same way. We make a CustomOre box called:

myOre

We’ll use this variable to store our custom lucky block data. Whenever we want this sword data, we just use myOre.

image.png

3. Initialize Variables

When we initialize a variable, we are storing information inside of our variable. So similar to our toy box, now that we have labeled our toy box, we can now store toys inside it. But in regard to our myOre, we can now store custom ore data inside of our lucky block variable.

image.png

4. Open CustomOre.Java

Now that we have create our custom ore variable let’s actually define what kind of data we want to store inside of our Custom Ore.