Jump to content

Blurr0-0

Members
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Blurr0-0's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I'm trying to play a modpack with a friend and it had no server pack so I tried to make my own like usually but it creates errors and I'm not sure why, as long as it has no mods the server loads fine tho the modpack name is CivilizationPack if that helps [10Aug2023 23:28:02.850] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 40.2.0, --fml.mcVersion, 1.18.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220404.173914] [10Aug2023 23:28:02.853] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 9.1.3+9.1.3+main.9b69c82a starting: java version 17.0.8 by Eclipse Adoptium [10Aug2023 23:28:03.087] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/username/Desktop/servers/civilrights/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2314!/ Service=ModLauncher Env=SERVER [10Aug2023 23:28:03.975] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\username\Desktop\servers\civilrights\libraries\net\minecraftforge\fmlcore\1.18.2-40.2.0\fmlcore-1.18.2-40.2.0.jar is missing mods.toml file [10Aug2023 23:28:03.978] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\username\Desktop\servers\civilrights\libraries\net\minecraftforge\javafmllanguage\1.18.2-40.2.0\javafmllanguage-1.18.2-40.2.0.jar is missing mods.toml file [10Aug2023 23:28:03.981] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\username\Desktop\servers\civilrights\libraries\net\minecraftforge\lowcodelanguage\1.18.2-40.2.0\lowcodelanguage-1.18.2-40.2.0.jar is missing mods.toml file [10Aug2023 23:28:03.983] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\bryan\Desktop\servers\civilrights\libraries\net\minecraftforge\mclanguage\1.18.2-40.2.0\mclanguage-1.18.2-40.2.0.jar is missing mods.toml file [10Aug2023 23:28:04.102] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator/]: Found 5 dependencies adding them to mods collection [10Aug2023 23:28:04.195] [main/ERROR] [net.minecraftforge.fml.loading.ModSorter/LOADING]: Missing or unsupported mandatory dependencies: Mod ID: 'forge', Requested by: 'create', Expected range: '[40.2.4,)', Actual version: '40.2.0' Mod ID: 'forge', Requested by: 'cccbridge', Expected range: '[40.2.4,)', Actual version: '40.2.0' [10Aug2023 23:28:07.428] [main/INFO] [mixin/]: Compatibility level set to JAVA_17 [10Aug2023 23:28:07.849] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [com.wuest.prefab.MixinConnector] [10Aug2023 23:28:07.850] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [com.sonicether.soundphysics.MixinConnector] [10Aug2023 23:28:07.850] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [shetiphian.core.mixins.MixinConnector] [10Aug2023 23:28:07.851] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [com._13rac1.erosion.forge.MixinConnector] [10Aug2023 23:28:07.851] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [de.maxhenkel.car.MixinConnector] [10Aug2023 23:28:07.852] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [thelm.jaopca.mixins.JAOPCAMixinConnector] [10Aug2023 23:28:07.874] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeserver' with arguments [] [10Aug2023 23:28:07.885] [main/INFO] [Rubidium/]: Loaded configuration file for Rubidium: 28 options available, 0 override(s) found [10Aug2023 23:28:07.937] [main/INFO] [ModernFix/]: Loaded configuration file for ModernFix: 58 options available, 0 override(s) found [10Aug2023 23:28:07.938] [main/INFO] [ModernFix/]: Applying Nashorn fix [10Aug2023 23:28:07.946] [main/INFO] [ModernFix/]: Applied Forge config corruption patch [10Aug2023 23:28:07.956] [main/WARN] [mixin/]: Reference map 'forge-forge-refmap.json' for londonunderground.mixins.json could not be read. If this is a development environment you can ignore this message [10Aug2023 23:28:08.001] [main/WARN] [mixin/]: Reference map 'morevillagers-forge-forge-refmap.json' for morevillagers.mixins.json could not be read. If this is a development environment you can ignore this message [10Aug2023 23:28:08.201] [main/INFO] [Canary/]: Loaded configuration file for Canary: 124 options available, 0 override(s) found [10Aug2023 23:28:08.305] [main/WARN] [mixin/]: Reference map 'smallships-forge-refmap.json' for smallships.mixins.json could not be read. If this is a development environment you can ignore this message [10Aug2023 23:28:08.348] [main/WARN] [mixin/]: Reference map 'creativecore.mixins.refmap.json' for creativecore.mixins.json could not be read. If this is a development environment you can ignore this message [10Aug2023 23:28:09.742] [main/INFO] [net.minecraft.server.Bootstrap/]: ModernFix bootstrap [10Aug2023 23:28:10.191] [main/WARN] [mixin/]: Method overwrite conflict for m_47505_ in modernfix-common.mixins.json:perf.remove_biome_temperature_cache.BiomeMixin, previously written by com.abdelaziz.saturn.mixin.world.temperature_cache.BiomeMixin. Skipping method. [10Aug2023 23:28:11.041] [main/INFO] [net.minecraft.server.Bootstrap/]: Vanilla bootstrap took 1296 milliseconds [10Aug2023 23:28:11.285] [main/FATAL] [mixin/]: Mixin apply failed modernfix-common.mixins.json:bugfix.item_cache_flag.ItemStackMixin -> net.minecraft.world.item.ItemStack: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException @At("INVOKE") on net/minecraft/world/item/ItemStack::getItemDirect with priority 1000 cannot inject into net/minecraft/world/item/ItemStack::m_41619_()Z merged by com.abdelaziz.canary.mixin.item.ItemStackMixin with priority 1000 [PREINJECT Applicator Phase -> modernfix-common.mixins.json:bugfix.item_cache_flag.ItemStackMixin -> Prepare Injections -> -> redirect$zzc000$getItemDirect(Lnet/minecraft/world/item/ItemStack;)Lnet/minecraft/world/item/Item; -> Prepare] org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: @At("INVOKE") on net/minecraft/world/item/ItemStack::getItemDirect with priority 1000 cannot inject into net/minecraft/world/item/ItemStack::m_41619_()Z merged by com.abdelaziz.canary.mixin.item.ItemStackMixin with priority 1000 [PREINJECT Applicator Phase -> modernfix-common.mixins.json:bugfix.item_cache_flag.ItemStackMixin -> Prepare Injections -> -> redirect$zzc000$getItemDirect(Lnet/minecraft/world/item/ItemStack;)Lnet/minecraft/world/item/Item; -> Prepare] at org.spongepowered.asm.mixin.injection.code.Injector.findTargetNodes(Injector.java:305) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.injection.code.Injector.find(Injector.java:240) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.prepare(InjectionInfo.java:421) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.MixinTargetContext.prepareInjections(MixinTargetContext.java:1319) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.prepareInjections(MixinApplicatorStandard.java:1042) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:393) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156) ~[modlauncher-9.1.3.jar%235!/:9.1.3+9.1.3+main.9b69c82a] at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-9.1.3.jar%235!/:?] at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:110) ~[securejarhandler-1.0.3.jar:?] at cpw.mods.cl.ModuleClassLoader.lambda$findClass$16(ModuleClassLoader.java:216) ~[securejarhandler-1.0.3.jar:?] at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:226) ~[securejarhandler-1.0.3.jar:?] at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:216) ~[securejarhandler-1.0.3.jar:?] at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:132) ~[securejarhandler-1.0.3.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?] at net.minecraft.core.cauldron.CauldronInteraction.m_175645_(CauldronInteraction.java:39) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at net.minecraft.Util.m_137469_(Util.java:351) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at net.minecraft.core.cauldron.CauldronInteraction.m_175617_(CauldronInteraction.java:39) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at net.minecraft.core.cauldron.CauldronInteraction.<clinit>(CauldronInteraction.java:33) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at net.minecraft.world.level.block.CauldronBlock.<init>(CauldronBlock.java:17) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at net.minecraft.world.level.block.Blocks.<clinit>(Blocks.java:354) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at net.minecraft.world.level.levelgen.carver.CarverDebugSettings.<clinit>(CarverDebugSettings.java:9) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at net.minecraft.world.level.levelgen.carver.CarverConfiguration.m_190634_(CarverConfiguration.java:16) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at com.mojang.serialization.codecs.RecordCodecBuilder.mapCodec(RecordCodecBuilder.java:76) ~[datafixerupper-4.1.27.jar%2325!/:?] at net.minecraft.world.level.levelgen.carver.CarverConfiguration.<clinit>(CarverConfiguration.java:12) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at net.minecraft.world.level.levelgen.carver.WorldCarver.<clinit>(WorldCarver.java:30) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at net.minecraft.data.worldgen.Carvers.<clinit>(Carvers.java:19) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at net.minecraft.data.BuiltinRegistries.m_206400_(BuiltinRegistries.java:45) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at net.minecraft.data.BuiltinRegistries.m_206392_(BuiltinRegistries.java:101) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at java.util.LinkedHashMap.forEach(LinkedHashMap.java:721) ~[?:?] at net.minecraft.data.BuiltinRegistries.<clinit>(BuiltinRegistries.java:100) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at net.minecraft.core.Registry.<clinit>(Registry.java:633) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at net.minecraft.server.Bootstrap.m_135870_(Bootstrap.java:44) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at net.minecraft.server.Main.main(Main.java:109) ~[server-1.18.2-20220404.173914-srg.jar%23285!/:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$launchService$0(CommonServerLaunchHandler.java:32) ~[fmlloader-1.18.2-40.2.0.jar%2317!/:?] at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.1.3.jar%235!/:?] at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) [bootstraplauncher-1.0.0.jar:?]
  2. tried opening a forge server and it's not working im pretty sure i got the correct java version installed yet it still doesn't work here the log: [08Aug2023 21:35:41.597] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 35.1.37, --fml.mcpVersion, 20201102.104115, --fml.mcVersion, 1.16.4, --fml.forgeGroup, net.minecraftforge, nogui] [08Aug2023 21:35:41.600] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_382 by Temurin [08Aug2023 21:35:41.810] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [08Aug2023 21:35:41.834] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/C:/Users/insertname/Desktop/servers/oneblockmodded/libraries/org/spongepowered/mixin/0.8.2/mixin-0.8.2.jar Service=ModLauncher Env=SERVER [08Aug2023 21:35:42.311] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlserver' with arguments [--gameDir, ., nogui] [08Aug2023 21:35:42.352] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.NoSuchMethodError: sun.security.util.ManifestEntryVerifier.<init>(Ljava/util/jar/Manifest;)V [08Aug2023 21:35:42.353] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.SecureJarHandler.createCodeSource(SecureJarHandler.java:66) [08Aug2023 21:35:42.353] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:275) [08Aug2023 21:35:42.353] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) [08Aug2023 21:35:42.353] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [08Aug2023 21:35:42.353] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.ClassLoader.loadClass(ClassLoader.java:351) [08Aug2023 21:35:42.353] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.Class.forName0(Native Method) [08Aug2023 21:35:42.354] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.Class.forName(Class.java:348) [08Aug2023 21:35:42.354] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.loading.FMLServerLaunchProvider.lambda$launchService$0(FMLServerLaunchProvider.java:51) [08Aug2023 21:35:42.354] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [08Aug2023 21:35:42.354] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [08Aug2023 21:35:42.354] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [08Aug2023 21:35:42.354] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [08Aug2023 21:35:42.355] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [08Aug2023 21:35:42.355] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63) [08Aug2023 21:35:42.355] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60) [08Aug2023 21:35:42.355] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.server.ServerMain.main(ServerMain.java:57)
  3. I have looked into your crafting table code and everything looks pretty much the same. I'm not really sure what the problem may be
  4. That doesn't seem to fix it, Do you think you can send me one of your custom crafting table's code as an example
  5. I'm making a custom crafting which mostly uses the code of the normal crafting table with a bit of changes to fit my mod but when I'm crafting items with it, it doubles the items in the craft slots. see image below: here's a link to my mod's project: https://github.com/Blurr0-0/SlimeFunMod
  6. okay thank you very much for the help
  7. I tried doing what you said and I think the particle hitbox works but it still goes half inside the ground. here's the github page of the project https://github.com/Blurr0-0/TestMod
  8. okay thanks ill try it out, also I'll make sure to provide the project with github next time
  9. I'm making a custom particle and for some reason it's half inside the ground I tried changing the bounding box and it still doesn't work, is there a way to fix it? public class LegoStuds extends TextureSheetParticle { private final SpriteSet sprites; protected LegoStuds(ClientLevel pLevel, double pX, double pY, double pZ, double dX, double dY, double dZ, SpriteSet pSprites) { super(pLevel, pX, pY, pZ, dX, dY, dZ); this.friction = 0.8F; this.xd = dX; //+ (Math.random() * 20.0D - 1.0D) * (double)0.05F; this.yd = dY;// + (Math.random() * 20.0D - 1.0D) * (double)0.05F; this.zd = dZ; //+ (Math.random() * 20.0D - 1.0D) * (double)0.05F; this.quadSize *= 2F; this.lifetime = 64; this.gravity = 3; this.rCol = 1f; this.gCol = 1f; this.bCol = 1f; this.setBoundingBox(new AABB(pX - 0.5D, pY - 0.5D, pZ - 0.5D, pX + 0.5D, pY + 0.5D, pZ + 0.5D)); this.sprites = pSprites; this.setSpriteFromAge(pSprites); } @Override public void tick() { super.tick(); fadeOut(); this.setSpriteFromAge(this.sprites); } private void fadeOut() { this.alpha = (-(1/(float)lifetime) * age + 1); } @Override public ParticleRenderType getRenderType() { return ParticleRenderType.PARTICLE_SHEET_TRANSLUCENT; } @OnlyIn(Dist.CLIENT) public static class Provider implements ParticleProvider<SimpleParticleType> { private final SpriteSet sprites; public Provider(SpriteSet spriteSet) { this.sprites = spriteSet; } public Particle createParticle(SimpleParticleType particleType, ClientLevel pLevel, double pX, double pY, double pZ, double dx, double dy, double dz) { return new LegoStuds(pLevel, pX, pY, pZ, dx, dy, dz, this.sprites); } } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.