Skip to content

Instantly share code, notes, and snippets.

buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net' }
maven { url = 'https://maven.parchmentmc.org' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath group: 'org.spongepowered', name: 'mixingradle', version: '0.7.+'
classpath 'org.parchmentmc:librarian:1.+'
Starting Gradle Daemon...
Gradle Daemon started in 3 s 853 ms
> Configure project :
Java: 1.8.0_231 JVM: 25.231-b11(Oracle Corporation) Arch: amd64
Directory 'C:\Program Files\Java\jdk1.8.0_202' (Windows Registry) used for java installations does not exist
C:\Users\HOME\IdeaProjects\ZenHorizon\build\tmp\expandedArchives\forge-1.18.2-40.1.52_mapped_parchment_2022.09.04-1.18.2-sources.jar_78cc14d04ab0b81d3d40352d3f33e116\net\minecraft\world\entity\EntityType.java:335: warning: [removal] doSpecialSpawn(Mob,Level,float,float,float,BaseSpawner,MobSpawnType) in ForgeEventFactory has been deprecated and marked for removal
if (t instanceof net.minecraft.world.entity.Mob && net.minecraftforge.event.ForgeEventFactory.doSpecialSpawn((net.minecraft.world.entity.Mob) t, pLevel, pPos.getX(), pPos.getY(), pPos.getZ(), null, pSpawnType)) return null;
^
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.stream.Collectors;
public class Main {
public static void main(String[] args) {
final String help = "WOSAJ 2022, all rights recieved\n"
+"+===WOSAJ'S DECODE HELP===+\n"
+"en [text] - encode text\n"
> Task :compileJava FAILED
An exception has occurred in the compiler (17.0.1). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
java.util.ServiceConfigurationError: com.sun.source.util.Plugin: Provider com.github.bsideup.jabel.JabelCompilerPlugin could not be instantiated
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:586)
at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:813)
at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:729)
at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1403)
at jdk.compiler/com.sun.tools.javac.api.BasicJavacTask.initPlugins(BasicJavacTask.java:220)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.prepareCompiler(JavacTaskImpl.java:204)
at jdk.comp
@WOSAJ
WOSAJ / ZENSpear.java
Created December 28, 2021 06:28
Don't work...
package discord.wosaj.zen_horizon.items.ranged;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.projectile.LargeFireball;
import net.minecraft.world.item.*;
import net.minecraft.world.level.Level;
public class ZENSpear extends Item {
public ZENSpear() {
super(new Properties()
buildscript {
repositories {
// These repositories are only for Gradle plugins, put any other repositories in the repository block further below
maven { url = 'https://maven.minecraftforge.net' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
}
}
@WOSAJ
WOSAJ / Test
Created September 27, 2021 17:06
Test