• Recently Browsing

    No registered users viewing this page.

  • Posts

    • Hello!   I've got 2 questions about to different things. The first is about filling a capability and the second about particles.   1. So I've got a working capabilities for projectile entities and I want to fill it with data from its source. I also got other capabilities, where I use the AttachCapabilitiesEvent to fill them (I use data, that I loaded from json). Now in the case for the projectile entity I wanted to use func_234616_v_(), which should return the shooter of my projectile. But this functions always returns null, mostly likely because the shooter hasn't be set yet. Should I use an other event or is there some other way to get the shooter, that I'm not aware of?   2. I have 4 particles, which are all working as intended. But I also have a lot of code duplication going on, because all 4 particles behave the same, except the texture and when they are supposed to be displayed. What would be the better solution, than copying the code 4 times like I did?   Just in case you want to look at my code, here is my repository. The code for the particles is here and they are getting generated here. Trying to get the shooter of a particle can be found here.
    • So I'm trying to make a block that when I right click on with a certain item it spawn a portal of the end arround the block. The problem is even though the end block appears, it doesn't do anything so I don't know if the way I did it is wrong or if I'm missing something but I can't figure out why the end block doesn't teleport to the end.   btw I'm a beginer so if you have some documentations that I should read to help me it would be awesome
    • Thank you Draco, I was being stupid.  
    • I was playing around with config files and when I clicked on my mod in mod options it crashed. This is the report: [12:57:43] [main/FATAL] [ne.mi.fo.la.MavenVersionAdapter/]: Failed to parse version spec [1.15.2,1.6] org.apache.maven.artifact.versioning.InvalidVersionSpecificationException: Range defies version ordering: [1.15.2,1.6]     at org.apache.maven.artifact.versioning.VersionRange.parseRestriction(VersionRange.java:232) ~[maven-artifact-3.6.3.jar:3.6.3] {}     at org.apache.maven.artifact.versioning.VersionRange.createFromVersionSpec(VersionRange.java:145) ~[maven-artifact-3.6.3.jar:3.6.3] {}     at net.minecraftforge.forgespi.language.MavenVersionAdapter.createFromVersionSpec(MavenVersionAdapter.java:33) ~[forgespi-2.1.2.jar:?] {}     at java.util.Optional.map(Optional.java:215) ~[?:1.8.0_212] {}     at net.minecraftforge.forgespi.language.IModInfo$ModVersion.<init>(IModInfo.java:88) ~[forgespi-2.1.2.jar:?] {}     at net.minecraftforge.fml.loading.moddiscovery.ModInfo.lambda$new$4(ModInfo.java:93) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar:?] {}     at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_212] {}     at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0_212] {}     at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_212] {}     at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_212] {}     at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_212] {}     at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_212] {}     at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0_212] {}     at net.minecraftforge.fml.loading.moddiscovery.ModInfo.<init>(ModInfo.java:93) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar:?] {}     at net.minecraftforge.fml.loading.moddiscovery.ModFileInfo.lambda$new$2(ModFileInfo.java:70) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar:?] {}     at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_212] {}     at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0_212] {}     at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_212] {}     at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_212] {}     at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_212] {}     at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_212] {}     at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0_212] {}     at net.minecraftforge.fml.loading.moddiscovery.ModFileInfo.<init>(ModFileInfo.java:70) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar:?] {}     at net.minecraftforge.fml.loading.moddiscovery.ModFileParser.loadModFile(ModFileParser.java:59) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar:?] {}     at net.minecraftforge.fml.loading.moddiscovery.ModFileParser.readModList(ModFileParser.java:51) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar:?] {}     at net.minecraftforge.fml.loading.moddiscovery.ModFile.identifyMods(ModFile.java:132) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar:?] {}     at net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.discoverMods(ModDiscoverer.java:116) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar:?] {}     at net.minecraftforge.fml.loading.FMLLoader.beginModScan(FMLLoader.java:211) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar:31.2] {}     at net.minecraftforge.fml.loading.FMLServiceProvider.runScan(FMLServiceProvider.java:105) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar:31.2] {}     at cpw.mods.modlauncher.TransformationServiceDecorator.runScan(TransformationServiceDecorator.java:111) ~[modlauncher-5.1.0.jar:?] {}     at cpw.mods.modlauncher.TransformationServicesHandler.lambda$runScanningTransformationServices$8(TransformationServicesHandler.java:115) ~[modlauncher-5.1.0.jar:?] {}     at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267) [?:1.8.0_212] {}     at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1628) [?:1.8.0_212] {}     at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) [?:1.8.0_212] {}     at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) [?:1.8.0_212] {}     at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) [?:1.8.0_212] {}     at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [?:1.8.0_212] {}     at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) [?:1.8.0_212] {}     at cpw.mods.modlauncher.TransformationServicesHandler.runScanningTransformationServices(TransformationServicesHandler.java:116) [modlauncher-5.1.0.jar:?] {}     at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:63) [modlauncher-5.1.0.jar:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:75) [modlauncher-5.1.0.jar:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-5.1.0.jar:?] {}     at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:102) [forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?] {}   any help would be appreciated. Thanks.    
  • Topics

  • Who's Online (See full list)