Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Rhayzan

Rhayzan

Members
 View Profile  See their activity
  • Content Count

    4
  • Joined

    January 21
  • Last visited

    January 25

Community Reputation

0 Neutral

About Rhayzan

  • Rank
    Tree Puncher
  • Birthday June 2

Converted

  • Location
    Germany

Recent Profile Visitors

102 profile views
  • diesieben07

    diesieben07

    January 21

  1. Rhayzan started following [SOLVED] Dependency Failure January 22
  2. Rhayzan

    [SOLVED] Dependency Failure

    Rhayzan posted a topic in Modder Support

    Hey guys, can someone please tell me whats the problem with build.gradle? I tried to add "Patchouli" as a dependecy: Error: [00:39:11] [Netty Local Client IO #0/DEBUG] [mixin/]: Mixing client.MixinClientAdvancementManager from assets/patchouli/patchouli.mixins.json into net.minecraft.client.multiplayer.ClientAdvancementManager [00:39:11] [Netty Local Client IO #0/FATAL] [mixin/]: Mixin apply failed assets/patchouli/patchouli.mixins.json:client.MixinClientAdvancementManager -> net.minecraft.client.multiplayer.ClientAdvancementManager: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException Critical injection failure: @Inject annotation on patchouli_onSync could not find any targets matching 'Lnet/minecraft/client/multiplayer/ClientAdvancementManager;func_192799_a(Lnet/minecraft/network/play/server/SAdvancementInfoPacket;)V' in net.minecraft.client.multiplayer.ClientAdvancementManager. Using refmap patchouli.refmap.json [PREINJECT Applicator Phase -> assets/patchouli/patchouli.mixins.json:client.MixinClientAdvancementManager -> Prepare Injections -> -> handler$zza000$patchouli_onSync(Lnet/minecraft/network/play/server/SAdvancementInfoPacket;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse] org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @Inject annotation on patchouli_onSync could not find any targets matching 'Lnet/minecraft/client/multiplayer/ClientAdvancementManager;func_192799_a(Lnet/minecraft/network/play/server/SAdvancementInfoPacket;)V' in net.minecraft.client.multiplayer.ClientAdvancementManager. Using refmap patchouli.refmap.json [PREINJECT Applicator Phase -> assets/patchouli/patchouli.mixins.json:client.MixinClientAdvancementManager -> Prepare Injections -> -> handler$zza000$patchouli_onSync(Lnet/minecraft/network/play/server/SAdvancementInfoPacket;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse] at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.findMethods(InjectionInfo.java:572) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.readAnnotation(InjectionInfo.java:288) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.<init>(InjectionInfo.java:275) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.<init>(InjectionInfo.java:267) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.injection.struct.CallbackInjectionInfo.<init>(CallbackInjectionInfo.java:46) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_275] {} at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_275] {} at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_275] {} at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_275] {} at org.spongepowered.asm.mixin.injection.struct.InjectionInfo$InjectorEntry.create(InjectionInfo.java:140) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.parse(InjectionInfo.java:624) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.transformer.MixinTargetContext.prepareInjections(MixinTargetContext.java:1247) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.prepareInjections(MixinApplicatorStandard.java:1033) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:388) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:320) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:345) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:569) [mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:351) [mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:223) [mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.transformer.MixinTransformationHandler.processClass(MixinTransformationHandler.java:121) [mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.launch.MixinLaunchPlugin.processClass(MixinLaunchPlugin.java:131) [mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:154) [modlauncher-8.0.6.jar:8.0.6+85+master.325de55] {} at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:119) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) [modlauncher-8.0.6.jar:?] {re:classloading} at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [modlauncher-8.0.6.jar:?] {re:classloading} at java.lang.ClassLoader.loadClass(ClassLoader.java:351) [?:1.8.0_275] {} at net.minecraft.client.network.play.ClientPlayNetHandler.<init>(ClientPlayNetHandler.java:360) [forge:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.network.login.ClientLoginNetHandler.handleLoginSuccess(ClientLoginNetHandler.java:119) [forge:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.network.login.server.SLoginSuccessPacket.processPacket(SLoginSuccessPacket.java:53) [forge:?] {re:classloading} at net.minecraft.network.login.server.SLoginSuccessPacket.processPacket(SLoginSuccessPacket.java:13) [forge:?] {re:classloading} at net.minecraft.network.NetworkManager.processPacket(NetworkManager.java:156) [forge:?] {re:classloading} at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:146) [forge:?] {re:classloading} at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:49) [forge:?] {re:classloading} at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [netty-all-4.1.25.Final.jar:4.1.25.Final] {} at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-all-4.1.25.Final.jar:4.1.25.Final] {} at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-all-4.1.25.Final.jar:4.1.25.Final] {} at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-all-4.1.25.Final.jar:4.1.25.Final] {} at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434) [netty-all-4.1.25.Final.jar:4.1.25.Final] {} at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-all-4.1.25.Final.jar:4.1.25.Final] {} at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-all-4.1.25.Final.jar:4.1.25.Final] {} at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965) [netty-all-4.1.25.Final.jar:4.1.25.Final] {} at io.netty.channel.local.LocalChannel.readInbound(LocalChannel.java:304) [netty-all-4.1.25.Final.jar:4.1.25.Final] {} at io.netty.channel.local.LocalChannel.finishPeerRead0(LocalChannel.java:446) [netty-all-4.1.25.Final.jar:4.1.25.Final] {} at io.netty.channel.local.LocalChannel.access$400(LocalChannel.java:51) [netty-all-4.1.25.Final.jar:4.1.25.Final] {} at io.netty.channel.local.LocalChannel$5.run(LocalChannel.java:404) [netty-all-4.1.25.Final.jar:4.1.25.Final] {} at io.netty.channel.DefaultEventLoop.run(DefaultEventLoop.java:54) [netty-all-4.1.25.Final.jar:4.1.25.Final] {} at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) [netty-all-4.1.25.Final.jar:4.1.25.Final] {} at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275] {} My build.gradle: buildscript { repositories { maven { url = 'https://files.minecraftforge.net/maven' } jcenter() mavenCentral() } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true } } apply plugin: 'net.minecraftforge.gradle' // --------------- apply plugin: 'eclipse' apply plugin: 'maven-publish' version = '0.0.0' group = 'com.rhayzan.rfa' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = 'rfa' sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly. println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch')) minecraft { // The mappings can be changed at any time, and must be in the following format. // snapshot_YYYYMMDD Snapshot are built nightly. // stable_# Stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not always work. // Simply re-run your setup task after changing the mappings to update your workspace. mappings channel: 'snapshot', version: '20201028-1.16.3' // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Default run configurations. // These can be tweaked, removed, or duplicated as needed. runs { client { workingDirectory project.file('run') // Recommended logging data for a userdev environment property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' // Recommended logging level for the console property 'forge.logging.console.level', 'debug' mods { rfa { source sourceSets.main } } } server { workingDirectory project.file('run') // Recommended logging data for a userdev environment property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' // Recommended logging level for the console property 'forge.logging.console.level', 'debug' mods { rfa { source sourceSets.main } } } data { workingDirectory project.file('run') // Recommended logging data for a userdev environment property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' // Recommended logging level for the console property 'forge.logging.console.level', 'debug' // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources. args '--mod', 'rfa', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') mods { rfa { source sourceSets.main } } } } } // Include resources generated by data generators. sourceSets.main.resources { srcDir 'src/generated/resources' } dependencies { // Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed // that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied. // The userdev artifact is a special name and will get all sorts of transformations applied to it. minecraft 'net.minecraftforge:forge:1.16.4-35.1.4' // You may put jars on which you depend on in ./libs or you may define them like so.. // compile "some.group:artifact:version:classifier" // compile "some.group:artifact:version" // Real examples // compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env // compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env // The 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. // provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // These dependencies get remapped to your current MCP mappings // deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev' // For more info... // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html //ADDED DEPENDENCY runtimeOnly fg.deobf("vazkii.patchouli:Patchouli:1.16.2-47") } //ADDED REPOSITORY repositories { maven { url 'https://maven.blamejared.com' } } // Example for how to get properties into the manifest for reading by the runtime.. jar { manifest { attributes([ "Specification-Title": "rfa", "Specification-Vendor": "rfasareus", "Specification-Version": "1", // We are version 1 of ourselves "Implementation-Title": project.name, "Implementation-Version": "${version}", "Implementation-Vendor" :"rfasareus", "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } } // Example configuration to allow publishing using the maven-publish task // This is the preferred method to reobfuscate your jar file jar.finalizedBy('reobfJar') // However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing //publish.dependsOn('reobfJar') publishing { publications { mavenJava(MavenPublication) { artifact jar } } repositories { maven { url "file:///${project.projectDir}/mcmodsrepo" } } } It freezes when loading the world (at 100%) instantly after "Dev" joined the game. As always thanks in advance!!!
    • January 22
  3. Rhayzan

    [Solved] Place Crops on Water

    Rhayzan replied to Rhayzan's topic in Modder Support

    Alright after checking the lilypad item I finally got it working. Thanks so much guys. And for everyone who has the same question: This was the right solution for the CustomCrop class: @Override protected boolean isValidGround(BlockState state, IBlockReader worldIn, BlockPos pos) { FluidState fluidstate = worldIn.getFluidState(pos); FluidState fluidstate1 = worldIn.getFluidState(pos.up()); return (fluidstate.getFluid() == Fluids.WATER || state.getMaterial() == Material.ICE) && fluidstate1.getFluid() == Fluids.EMPTY; } And this for the CustomSeed class: /** * Called when this item is used when targetting a Block */ public ActionResultType onItemUse(ItemUseContext context) { return ActionResultType.PASS; } /** * Called to trigger the item's "innate" right click behavior. To handle when this item is used on a Block, see * {@link #onItemUse}. */ public ActionResult<ItemStack> onItemRightClick(World worldIn, PlayerEntity playerIn, Hand handIn) { BlockRayTraceResult blockraytraceresult = rayTrace(worldIn, playerIn, RayTraceContext.FluidMode.SOURCE_ONLY); BlockRayTraceResult blockraytraceresult1 = blockraytraceresult.withPosition(blockraytraceresult.getPos().up()); ActionResultType actionresulttype = super.onItemUse(new ItemUseContext(playerIn, handIn, blockraytraceresult1)); return new ActionResult<>(actionresulttype, playerIn.getHeldItem(handIn)); }
    • January 21
    • 4 replies
  4. Rhayzan

    [Solved] Place Crops on Water

    Rhayzan replied to Rhayzan's topic in Modder Support

    First, thanks for your help! ๐Ÿ˜ƒ The reason why I used isIn() was because nether warts use this to check if it is soulsand: protected boolean isValidGround(BlockState state, IBlockReader worldIn, BlockPos pos) { return state.isIn(Blocks.SOUL_SAND); } I checked how it is done with lilypads before and that didn't do anything either. So checking if the State at the position is water and the position above is empty would be: public class BelladonnaCrop extends CropsBlock { private static final VoxelShape[] SHAPES = new VoxelShape[]{Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 2.0D, 16.0D), Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 4.0D, 16.0D), Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 6.0D, 16.0D), Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 8.0D, 16.0D), Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 10.0D, 16.0D), Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 12.0D, 16.0D), Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 14.0D, 16.0D), Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 16.0D, 16.0D)}; public BelladonnaCrop(Properties builder) { super(builder); } @Override protected IItemProvider getSeedsItem() { return ItemRegister.BELLADONNA_SEEDS.get(); } @Override public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context) { return SHAPES[state.get(this.getAgeProperty())]; } @Override public boolean canSustainPlant(BlockState state, IBlockReader world, BlockPos pos, Direction facing, IPlantable plantable) { return super.canSustainPlant(state, world, pos, facing, plantable); } @Override protected boolean isValidGround(BlockState state, IBlockReader worldIn, BlockPos pos) { FluidState fluidstate = worldIn.getFluidState(pos); FluidState fluidstate1 = worldIn.getFluidState(pos.up()); return (fluidstate.getFluid() == Fluids.WATER || state.getMaterial() == Material.ICE) && fluidstate1.getFluid() == Fluids.EMPTY; } } Weird thing about it is that it still works on farmland even though I have overridden the isValidGround function. ๐Ÿ˜… Could it be that I need to create a custom event for rightclicking with the seeds as soon as I dont use farmland?
    • January 21
    • 4 replies
  5. Rhayzan Rhayzan changed their profile photo January 21
  6. Rhayzan started following [Solved] Place Crops on Water January 21
  7. Rhayzan

    [Solved] Place Crops on Water

    Rhayzan posted a topic in Modder Support

    Hello guys, I started modding yesterday and I would like to know how to let a crop be planted on water. public class BelladonnaCrop extends CropsBlock { private static final VoxelShape[] SHAPES = new VoxelShape[]{Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 2.0D, 16.0D), Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 4.0D, 16.0D), Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 6.0D, 16.0D), Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 8.0D, 16.0D), Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 10.0D, 16.0D), Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 12.0D, 16.0D), Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 14.0D, 16.0D), Block.makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 16.0D, 16.0D)}; public BelladonnaCrop(Properties builder) { super(builder); } @Override protected IItemProvider getSeedsItem() { return ItemRegister.BELLADONNA_SEEDS.get(); } @Override public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context) { return SHAPES[state.get(this.getAgeProperty())]; } @Override public boolean canSustainPlant(BlockState state, IBlockReader world, BlockPos pos, Direction facing, IPlantable plantable) { if(state.isIn(Blocks.WATER)){ return true; }else{ return false; } } @Override protected boolean isValidGround(BlockState state, IBlockReader worldIn, BlockPos pos) { return state.isIn(Blocks.WATER); } } I started out with this and got it all working on Farmland. So the only question is how to change the block I can plant it on. Thanks in advace! ๐Ÿ˜„
    • January 21
    • 4 replies
  • All Activity
  • Home
  • Rhayzan
  • Theme

Copyright ยฉ 2019 ForgeDevelopment LLC ยท Ads by Longitude Ads LLC Powered by Invision Community