#How do I change minecraft version?

54 messages · Page 1 of 1 (latest)

marble edge
#

Well I made a basic mod (only items) that is on 1.20.4, and I want to adapt it to 1.20.5, Any help with it?

shy ore
#

First update gradle to the latest version. You can search online for guides on that. Then you want to update loom to 1.6-SNAPSHOT at the top of your build.gradle if it isn't already. Then you should go to the gradle.properties file and update minecraft, yarn, fabric liader and fabric api. I'll send a bot command with the correct ones. After that you just have to go through the code fixing errors and test in game.

#

!versions

safe haloBOT
#
1.20.5 Fabric versions

build.gradle (constants inside the build script)

    minecraft "com.mojang:minecraft:1.20.5"
    mappings "net.fabricmc:yarn:1.20.5+build.1:v2"
    modImplementation "net.fabricmc:fabric-loader:0.15.10"

    // Fabric API
    modImplementation "net.fabricmc.fabric-api:fabric-api:0.97.6+1.20.5"
}```
**gradle.properties** (constants in a separate file, as with Example Mod)
```minecraft_version=1.20.5
yarn_mappings=1.20.5+build.1
loader_version=0.15.10

# Fabric API
fabric_version=0.97.6+1.20.5```
**Mappings Migration** ([more info](https://fabricmc.net/wiki/tutorial:migratemappings))
```gradlew migrateMappings --mappings "1.20.5+build.1"```
Note that the Fabric API version is usually only correct for the latest minor MC release (e.g. 1.16.5 or 1.15.2) due to implementation limitations. Check [CurseForge](https://minecraft.curseforge.com/projects/fabric/files) for a more precise listing.
marble edge
#

Now can't find what is the import, the old one is now wrong.

#

Oh It changed

steady wharf
#

Settings.Item()

marble edge
#

And now I crash on creating a world.

#

I would need to learn these changes.

marble edge
marble edge
#

Anyone?

steady wharf
#

What you did before getting that

marble edge
#

Above

#

Its all the steps I did

#

Then this happenef

marble edge
#

It doesn't shown up any of my classes on the crash

steady wharf
#

share repo

marble edge
#

not knowing if I pushed in or not

steady wharf
#

Latest 2 day ago, same 1.20.5

#

Is it outdate or not?

#

what branch I should check?

marble edge
#

1.20.5

steady wharf
#

I don't see anygthing illegal

#

So

#

@marble edge Problem in your material

#

If comment it and all what depend on it it create world success

marble edge
#

So what are the error in the material?

steady wharf
#

Idk

#

I didn't yet touched 1.20.5

#

I await for 1.21

marble edge
#

I think it's probably to this maybe?

steady wharf
#

Maybe

#

Try out)

marble edge
#

It needs to be there

#

It gives a compilation error if I remove it so

steady wharf
#

Because it part of ToolMaterial interface

#

But not sure can it be null. Mojang should mark it as @NotNull if it should not be

marble edge
#

but the thing is that I really don't know what I need to return

#

This method should also be there

#

but not

steady wharf
#

Just for fun, put that BlockTags.WOOL

#

Ah

#

Minecraft default is BlockTags.INCORRECT_FOR_WOODEN_TOOL

#

And looks like this

marble edge
steady wharf
#

data -> tags -> blocks...

marble edge
#

let me try

#

Oh was that

#

then fixed.

marble edge
steady wharf
#

Navigate over Source Code and find yourself