Patchouli custom element giving error on "repositories {}"

Started by SHORT on

Topic category: Help with MCreator software

Active 3 weeks ago
Joined Sep 2020
Points:
686

User statistics:

  • Modifications: 0
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 82
Patchouli custom element giving error on "repositories {}"

This is my code in my custom element.:

 

package net.mcreator.deliciouspastel;

repositories {
	jscenter()
	mavenLocal()

	maven {
		name = "CurseForge"
		url = "https://minecraft.curseforge.com/api/maven/"
	}
	maven {
		url "https://maven.blamejared.com"
	}
}

dependencies {
	minecraft "net.minecraftforge:forge:1.18.2-40.1.80"

	//Patchouli
	runtimeOnly fg.deobf("vazkii.patchouli:Patchouli:${project.mcVersion}-${project.patchouliVersion}")
}

apply from: "mcreator.gradle"

And here is my error.

img

Active 2 years ago
Joined May 2022
Points:
556

User statistics:

  • Modifications: 2
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 382
when I tried making a custom…
Thu, 10/06/2022 - 13:11

when I tried making a custom element it went in a similar fashion . I really don't know wut to do

Active 3 weeks ago
Joined Oct 2022
Points:
335

User statistics:

  • Modifications: 1
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 77
Hello, I think it's a little…
Fri, 07/21/2023 - 18:38

Hello, I think it's a little bit late but did you fix the problem and used Patchouli? I have the same problem and I wanted to know if you fixed it.