Jump to content

My server with mods is crashing, and I don't know why can someone help me?


ZapZ3r0ofc

Recommended Posts

---- Minecraft Crash Report ----

WARNING: coremods are present:
  IELoadingPlugin (ImmersiveEngineering-core-0.12-98.jar)
  EnderCorePlugin (EnderCore-1.12.2-0.5.76-core.jar)
  MekanismCoremod (Mekanism-1.12.2-9.8.3.390.jar)
  Quark Plugin (Quark-r1.6-179.jar)
  SecurityCraftLoadingPlugin ([1.12.2]+SecurityCraft+v1.9.5.jar)
  CTMCorePlugin (CTM-MC1.12.2-1.0.2.31.jar)
Contact their authors BEFORE contacting forge

// Why did you do that?

Time: 26/02/23 13:43
Description: Exception in server tick loop

java.lang.NoSuchMethodError: net.minecraft.item.Item.setTileEntityItemStackRenderer(Lnet/minecraft/client/renderer/tileentity/TileEntityItemStackRenderer;)V
    at com.magistuarmory.item.ItemProperties.extract(ItemProperties.java:75)
    at com.magistuarmory.item.MedievalItem.<init>(MedievalItem.java:11)
    at com.magistuarmory.init.ModItems.lambda$static$0(ModItems.java:31)
    at com.magistuarmory.init.DeferredRegister.register(DeferredRegister.java:66)
    at com.magistuarmory.init.ModItems.<clinit>(ModItems.java:31)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_33_ModItems_registerItems_Register.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:144)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
    at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:850)
    at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:630)
    at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99)
    at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:333)
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:125)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486)
    at java.lang.Thread.run(Unknown Source)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_351, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 212807368 bytes (202 MB) / 1993867264 bytes (1901 MB) up to 1993867264 bytes (1901 MB)
    JVM Flags: 2 total; -Xmx2048M -Xms2048M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.42 Powered by Forge 14.23.5.2859 80 mods loaded, 80 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

    | State | ID                                | Version           | Source                                                       | Signature                                |
    |:----- |:--------------------------------- |:----------------- |:------------------------------------------------------------ |:---------------------------------------- |
    | LCH   | minecraft                         | 1.12.2            | minecraft.jar                                                | None                                     |
    | LCH   | mcp                               | 9.42              | minecraft.jar                                                | None                                     |
    | LCH   | FML                               | 8.0.99.99         | server.jar                                                   | e3c3d50c7c986df74c645c0ac54639741c90a557 |
    | LCH   | forge                             | 14.23.5.2859      | server.jar                                                   | e3c3d50c7c986df74c645c0ac54639741c90a557 |
    | LCH   | securitycraft                     | v1.9.5            | [1.12.2]+SecurityCraft+v1.9.5.jar                            | None                                     |
    | LCH   | magistuarmory                     | 1.0               | [1.12.2]-Epic-Knights-Armor-and-Weapons-6.2v(uncomplete).jar | None                                     |
    | LCH   | crafttweaker                      | 4.1.20            | CraftTweaker2-1.12-4.1.20.685.jar                            | None                                     |
    | LCH   | jei                               | 4.16.1.1001       | jei_1.12.2-4.16.1.1001.jar                                   | None                                     |
    | LCH   | quark                             | r1.6-179          | Quark-r1.6-179.jar                                           | None                                     |
    | LCH   | autoreglib                        | 1.3-32            | AutoRegLib-1.3-32.jar                                        | None                                     |
    | LCH   | baubles                           | 1.5.2             | Baubles-1.12-1.5.2.jar                                       | None                                     |
    | LCH   | betterbuilderswands               | 0.13.2            | BetterBuildersWands-1.12.2-0.13.2.271+5997513.jar            | None                                     |
    | LCH   | bookshelf                         | 2.3.590           | Bookshelf-1.12.2-2.3.590.jar                                 | d476d1b22b218a10d845928d1665d45fce301b27 |
    | LCH   | codechickenlib                    | 3.2.3.358         | CodeChickenLib-1.12.2-3.2.3.358-universal.jar                | f1850c39b2516232a2108a7bd84d1cb5df93b261 |
    | LCH   | redstoneflux                      | 2.1.1             | RedstoneFlux-1.12-2.1.1.1-universal.jar                      | None                                     |
    | LCH   | brandonscore                      | 2.4.20            | BrandonsCore-1.12.2-2.4.20.162-universal.jar                 | None                                     |
    | LCH   | castle_dungeons                   | 1.3               | castle_dungeons-2.2p1-1.12.2-forge.jar                       | None                                     |
    | LCH   | chameleon                         | 1.12-4.1.3        | Chameleon-1.12-4.1.3.jar                                     | None                                     |
    | LCH   | chisel                            | MC1.12.2-1.0.2.45 | Chisel-MC1.12.2-1.0.2.45.jar                                 | None                                     |
    | LCH   | cofhcore                          | 4.6.6             | CoFHCore-1.12.2-4.6.6.1-universal.jar                        | None                                     |
    | LCH   | cofhworld                         | 1.4.0             | CoFHWorld-1.12.2-1.4.0.1-universal.jar                       | None                                     |
    | LCH   | compactstorage                    | 3.1               | CompactStorage-3.1-12.jar                                    | None                                     |
    | LCH   | crafttweakerjei                   | 2.0.3             | CraftTweaker2-1.12-4.1.20.685.jar                            | None                                     |
    | LCH   | cucumber                          | 1.1.3             | Cucumber-1.12.2-1.1.3.jar                                    | None                                     |
    | LCH   | customizeddungeonloot             | 1.0.3             | Customized-Dungeon-Loot-1.12 -(v.1.0.3).jar                  | None                                     |
    | LCH   | customnpcs                        | 1.12              | CustomNPCs_1.12.2-(05Jul20).jar                              | None                                     |
    | LCH   | cyclicmagic                       | 1.20.12           | Cyclic-1.12.2-1.20.14.jar                                    | 0e5cb559be7d03f3fc18b8cba547d663e25f28af |
    | LCH   | waila                             | 1.8.26            | Hwyla-1.8.26-B41_1.12.2.jar                                  | None                                     |
    | LCH   | darkutils                         | 1.8.230           | DarkUtils-1.12.2-1.8.230.jar                                 | d476d1b22b218a10d845928d1665d45fce301b27 |
    | LCH   | props                             | 2.6.3.7           | Decocraft-2.6.3.7_1.12.2.jar                                 | None                                     |
    | LCH   | thermalfoundation                 | 2.6.6             | ThermalFoundation-1.12.2-2.6.6.1-universal.jar               | None                                     |
    | LCH   | draconicevolution                 | 2.3.28            | Draconic-Evolution-1.12.2-2.3.28.354-universal.jar           | None                                     |
    | LCH   | draconicadditions                 | 1.17.0            | Draconic-Additions-1.12.2-1.17.0.45-universal.jar            | None                                     |
    | LCH   | elevatorid                        | 1.3.14            | ElevatorMod-1.12.2-1.3.14.jar                                | None                                     |
    | LCH   | eplus                             | 5.0.179           | EnchantingPlus-1.12.2-5.0.179.jar                            | d476d1b22b218a10d845928d1665d45fce301b27 |
    | LCH   | endercore                         | 1.12.2-0.5.76     | EnderCore-1.12.2-0.5.76.jar                                  | None                                     |
    | LCH   | thermalexpansion                  | 5.5.7             | ThermalExpansion-1.12.2-5.5.7.1-universal.jar                | None                                     |
    | LCH   | enderio                           | 5.3.70            | EnderIO-1.12.2-5.3.70.jar                                    | None                                     |
    | LCH   | enderiointegrationtic             | 5.3.70            | EnderIO-1.12.2-5.3.70.jar                                    | None                                     |
    | LCH   | enderiobase                       | 5.3.70            | EnderIO-1.12.2-5.3.70.jar                                    | None                                     |
    | LCH   | enderioconduits                   | 5.3.70            | EnderIO-1.12.2-5.3.70.jar                                    | None                                     |
    | LCH   | enderioconduitsappliedenergistics | 5.3.70            | EnderIO-1.12.2-5.3.70.jar                                    | None                                     |
    | LCH   | enderioconduitsopencomputers      | 5.3.70            | EnderIO-1.12.2-5.3.70.jar                                    | None                                     |
    | LCH   | refinedstorage                    | 1.6.16            | refinedstorage-1.6.16.jar                                    | 57893d5b90a7336e8c63fe1c1e1ce472c3d59578 |
    | LCH   | enderioconduitsrefinedstorage     | 5.3.70            | EnderIO-1.12.2-5.3.70.jar                                    | None                                     |
    | LCH   | enderiointegrationforestry        | 5.3.70            | EnderIO-1.12.2-5.3.70.jar                                    | None                                     |
    | LCH   | mantle                            | 1.12-1.3.3.55     | Mantle-1.12-1.3.3.55.jar                                     | None                                     |
    | LCH   | twilightforest                    | 3.11.1021         | twilightforest-1.12.2-3.11.1021-universal.jar                | None                                     |
    | LCH   | tconstruct                        | 1.12.2-2.13.0.183 | TConstruct-1.12.2-2.13.0.183.jar                             | None                                     |
    | LCH   | enderiointegrationticlate         | 5.3.70            | EnderIO-1.12.2-5.3.70.jar                                    | None                                     |
    | LCH   | enderioinvpanel                   | 5.3.70            | EnderIO-1.12.2-5.3.70.jar                                    | None                                     |
    | LCH   | enderiomachines                   | 5.3.70            | EnderIO-1.12.2-5.3.70.jar                                    | None                                     |
    | LCH   | enderiopowertools                 | 5.3.70            | EnderIO-1.12.2-5.3.70.jar                                    | None                                     |
    | LCH   | enderstorage                      | 2.4.6.137         | EnderStorage-1.12.2-2.4.6.137-universal.jar                  | f1850c39b2516232a2108a7bd84d1cb5df93b261 |
    | LCH   | extrautils2                       | 1.0               | extrautils2-1.12-1.9.9.jar                                   | None                                     |
    | LCH   | zerocore                          | 1.12.2-0.1.2.9    | zerocore-1.12.2-0.1.2.9.jar                                  | None                                     |
    | LCH   | bigreactors                       | 1.12.2-0.4.5.68   | ExtremeReactors-1.12.2-0.4.5.68.jar                          | None                                     |
    | LCH   | cfm                               | 6.3.0             | furniture-6.3.2-1.12.2.jar                                   | None                                     |
    | LCH   | guideapi                          | 1.12-2.1.8-63     | Guide-API-1.12-2.1.8-63.jar                                  | None                                     |
    | LCH   | ironchest                         | 1.12.2-7.0.67.844 | ironchest_1.12.2_7.0.72.847.jar                              | None                                     |
    | LCH   | ironfurnaces                      | 1.3.5             | ironfurnaces-1.3.5.jar                                       | None                                     |
    | LCH   | journeymap                        | 1.12.2-5.7.1      | journeymap-1.12.2-5.7.1.jar                                  | None                                     |
    | LCH   | lucky                             | 7.5.0             | lucky-block-forge-1.12.0-2.0.jar                             | None                                     |
    | LCH   | mahoutsukai                       | 1.12.2-v1.19.55   | mahoutsukai-1.12.2-v1.19.55.jar                              | None                                     |
    | LCH   | mekanism                          | 1.12.2-9.8.3.390  | Mekanism-1.12.2-9.8.3.390.jar                                | None                                     |
    | LCH   | mekanismgenerators                | 1.12.2-9.8.3.390  | MekanismGenerators-1.12.2-9.8.3.390.jar                      | None                                     |
    | LCH   | mekanismtools                     | 1.12.2-9.8.3.390  | MekanismTools-1.12.2-9.8.3.390.jar                           | None                                     |
    | LCH   | mobends                           | 1.2.1             | MoBends_1.12.2-1.2.1-19.12.21.jar                            | None                                     |
    | LCH   | mysticalagriculture               | 1.7.4             | MysticalAgriculture-1.12.2-1.7.4.jar                         | None                                     |
    | LCH   | oreduplicator                     | 1.0.0             | oredup+1.12.2.jar                                            | None                                     |
    | LCH   | oreexcavation                     | 1.4.150           | OreExcavation-1.4.150.jar                                    | None                                     |
    | LCH   | harvestcraft                      | 1.12.2zb          | Pam's+HarvestCraft+1.12.2zg.jar                              | None                                     |
    | LCH   | patchouli                         | 1.0-23.6          | Patchouli-1.0-23.6.jar                                       | None                                     |
    | LCH   | projectintelligence               | 1.0.9             | ProjectIntelligence-1.12.2-1.0.9.28-universal.jar            | None                                     |
    | LCH   | additionalstructures              | 2.5.0             | Rex's-AdditionalStructures-1.12.x(v.2.5.0).jar               | None                                     |
    | LCH   | storagedrawers                    | 5.2.2             | StorageDrawers-1.12.2-5.4.2.jar                              | None                                     |
    | LCH   | theoneprobe                       | 1.4.28            | theoneprobe-1.12-1.4.28.jar                                  | None                                     |
    | LCH   | thermaldynamics                   | 2.5.6             | ThermalDynamics-1.12.2-2.5.6.1-universal.jar                 | None                                     |
    | LCH   | immersiveengineering              | 0.12-98           | ImmersiveEngineering-0.12-98.jar                             | None                                     |
    | LCH   | jade                              | 0.1.0             | Jade-0.1.0.jar                                               | None                                     |

    Loaded coremods (and transformers): 
IELoadingPlugin (ImmersiveEngineering-core-0.12-98.jar)
  blusunrize.immersiveengineering.common.asm.IEClassTransformer
EnderCorePlugin (EnderCore-1.12.2-0.5.76-core.jar)
  com.enderio.core.common.transform.EnderCoreTransformer
  com.enderio.core.common.transform.SimpleMixinPatcher
MekanismCoremod (Mekanism-1.12.2-9.8.3.390.jar)
  mekanism.coremod.KeybindingMigrationHelper
Quark Plugin (Quark-r1.6-179.jar)
  vazkii.quark.base.asm.ClassTransformer
SecurityCraftLoadingPlugin ([1.12.2]+SecurityCraft+v1.9.5.jar)
  
CTMCorePlugin (CTM-MC1.12.2-1.0.2.31.jar)
  team.chisel.ctm.client.asm.CTMTransformer
    Ender IO: Found the following problem(s) with your installation (That does NOT mean that Ender IO caused the crash or was involved in it in any way. We add this information to help finding common problems, not as an invitation to post any crash you encounter to Ender IO's issue tracker. Always check the stack trace above to see which mod is most likely failing.):
                  * Offline mode for dedicated servers is NOT supported by Ender IO.
                 This may (look up the meaning of 'may' in the dictionary if you're not sure what it means) have caused the error. Try reproducing the crash WITHOUT this/these mod(s) before reporting it.
    Authlib is : /D:/Users/Administrator/Desktop/Server/minecraft_server.1.12.2.jar

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!You are looking at the diagnostics information, not at the crash.       !!!
    !!!Scroll up until you see the line with '---- Minecraft Crash Report ----'!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Pulsar/tconstruct loaded Pulses: 
        - TinkerCommons (Enabled/Forced)
        - TinkerWorld (Enabled/Not Forced)
        - TinkerTools (Enabled/Not Forced)
        - TinkerHarvestTools (Enabled/Forced)
        - TinkerMeleeWeapons (Enabled/Forced)
        - TinkerRangedWeapons (Enabled/Forced)
        - TinkerModifiers (Enabled/Forced)
        - TinkerSmeltery (Enabled/Not Forced)
        - TinkerGadgets (Enabled/Not Forced)
        - TinkerOredict (Enabled/Forced)
        - TinkerIntegration (Enabled/Forced)
        - TinkerFluids (Enabled/Forced)
        - TinkerMaterials (Enabled/Forced)
        - TinkerModelRegister (Enabled/Forced)
        - chiselIntegration (Enabled/Not Forced)
        - wailaIntegration (Enabled/Not Forced)
        - theoneprobeIntegration (Enabled/Not Forced)
        - quarkIntegration (Enabled/Not Forced)

    Profiler Position: N/A (disabled)
    Is Modded: Definitely; Server brand changed to 'fml,forge'
    Type: Dedicated Server (map_server.txt)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello everyone.  I need help.  I'm relatively new to modding Minecraft and can't make heads-or-tails of the crash-logs.  I have both the actual crash report and the "latest" log file to look at. This only began happening recently, and I cannot figure out exactly what the cause is.  Some sources I've had look at it have said perhaps it's Cupboard.  Others have said it may be related to the Forgified API and "Connections", but I've attempted break-down with removing both of those and still have gotten the crashes. Regardless, I am uncertain what to do.  Admittedly I don't want to get rid of Cupboard, as I have several additional QOL mods that depend on it.  Also, I would like to know if there's an Embeddium-friendly version of Entity Texture Features, as apparently my version seems to have issue with it?  According to an Embeddium post near the top of the crash log. The files are enclosed below.  Thank you in advance. - TheMegaNerd    
    • i keep getting these errors and im not sure how to fix them or if i can just leave them be :PS i know about the missing tags i just dont have the mods required to add those extra villages Here is the log  https://paste.ee/p/KpYoV
    • Minecraft: 1.18.2, Forge: 40.2.21 I created some code that renders a custom particle. The particle renders without depth test: `disableDepthTest()` and should be visible through other blocks. Locally, all works fine. When I install it on the server and client, it also works fine. But when the mod is removed from the server, it no longer works.   The particle is registered under the name "DEPTH_VISION", and if i check if it is present `ModParticles.DEPTH_VISION.isPresent()`, while the mod is not on the server, I get a `false` back.   So my question is: - Is it even possible to make a custom particle, while staying client side only? - What do I need to change to make it work?    ModParticles.java import net.minecraft.core.particles.SimpleParticleType; import net.minecraft.core.particles.ParticleType; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; public class ModParticles { public static final DeferredRegister<ParticleType<?>> REGISTRY = DeferredRegister.create(ForgeRegistries.PARTICLE_TYPES, SomeNameMod.MODID); public static final RegistryObject<SimpleParticleType> DEPTH_VISION = REGISTRY.register("depth_vision", () -> new SimpleParticleType(true)); }    SomeNameMod.java import com.peet.somename.HighlightBlock; import com.peet.somename.DepthVisionParticle; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.texture.TextureAtlas; import net.minecraft.core.particles.ParticleType; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.level.Level; import net.minecraft.world.entity.player.Player; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import net.minecraftforge.client.event.ParticleFactoryRegisterEvent; import net.minecraftforge.client.event.TextureStitchEvent; @Mod(com.peet.somename.SomeNameMod.MODID) public class SomeNameMod { public static final String MODID = "somename"; private static int tickCounter = 0; // Counter to track ticks public SomeNameMod() { IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); modEventBus.addListener(this::onTextureStitch); modEventBus.addListener(this::registerParticleFactories); ModParticles.REGISTRY.register(modEventBus); MinecraftForge.EVENT_BUS.register(this); } @SubscribeEvent public void registerParticleFactories(ParticleFactoryRegisterEvent event) { Minecraft.getInstance().particleEngine.register((ParticleType) ModParticles.DEPTH_VISION.get(), DepthVisionParticle.Factory::new); } @SubscribeEvent public void onWorldTick(TickEvent.WorldTickEvent event) { if (event.phase == TickEvent.Phase.END) { Level world = event.world; if (!world.isClientSide) return; if (tickCounter++ >= 20) { // 5 seconds = 100 ticks Player player = Minecraft.getInstance().player; if (player != null) { HighlightBlock.spawnParticles(world, player); } tickCounter = 0; // Reset the counter after spawning particles } } } @SubscribeEvent public void onClientTick(TickEvent.ClientTickEvent event) { } @SubscribeEvent public void onTextureStitch(TextureStitchEvent.Pre event) { if (event.getAtlas().location().equals(TextureAtlas.LOCATION_PARTICLES)) { event.addSprite(new ResourceLocation(MODID, "particles/depth_vision")); } } }    HighlightBlock.java import com.peet.somename.ModParticles; import net.minecraft.network.chat.TextComponent; import net.minecraft.world.entity.player.Player; import net.minecraft.world.level.Level; import net.minecraft.client.Minecraft; import net.minecraft.client.particle.ParticleEngine; public class HighlightBlock { public static <ExceptionType> void spawnParticles(Level world, Player player ) { ParticleEngine particleEngine = Minecraft.getInstance().particleEngine; if (!ModParticles.DEPTH_VISION.isPresent()) { Minecraft.getInstance().player.sendMessage(new TextComponent("DEPTH_VISION particle is not registered."), Minecraft.getInstance().player.getUUID()); return; } particleEngine.createParticle(ModParticles.DEPTH_VISION.get(), 0, 0, 0, 0.0, 0.0, 0.0); } }    DepthVisionParticle.java package com.peet.somename.particles; import net.minecraft.client.particle.Particle; import net.minecraft.core.particles.SimpleParticleType; import net.minecraft.client.particle.ParticleProvider; import com.mojang.blaze3d.vertex.Tesselator; import com.mojang.blaze3d.systems.RenderSystem; import net.minecraft.client.renderer.texture.TextureManager; import com.mojang.blaze3d.vertex.BufferBuilder; import net.minecraft.world.entity.player.Player; import net.minecraft.client.Minecraft; import net.minecraft.client.Camera; import com.mojang.blaze3d.vertex.VertexConsumer; import net.minecraft.client.particle.SpriteSet; import net.minecraft.client.multiplayer.ClientLevel; import net.minecraft.client.particle.ParticleRenderType; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraft.client.particle.SimpleAnimatedParticle; @OnlyIn(Dist.CLIENT) public class DepthVisionParticle extends SimpleAnimatedParticle { private static final ParticleRenderType DEPTH_PARTICLE_SHEET_TRANSLUCENT; private DepthVisionParticle(final ClientLevel world, final double x, final double y, final double z, final double motionX, final double motionY, final double motionZ, final SpriteSet spriteWithAge) { super(world, x, y, z, spriteWithAge, 0.0f); this.xd = motionX; this.yd = motionY; this.zd = motionZ; this.lifetime = 20; this.setSpriteFromAge(spriteWithAge); } public void render(final VertexConsumer buffer, final Camera renderInfo, final float partialTicks) { final Player player = Minecraft.getInstance().player; super.render(buffer, renderInfo, partialTicks); } public void tick() { super.tick(); this.setSprite(this.sprite); if (this.age++ >= this.lifetime) { this.remove(); } } public ParticleRenderType getRenderType() { return com.peet.somename.particles.DepthVisionParticle.DEPTH_PARTICLE_SHEET_TRANSLUCENT; } static { DEPTH_PARTICLE_SHEET_TRANSLUCENT = new ParticleRenderType() { public void begin(BufferBuilder buffer, TextureManager textureManager) { RenderSystem.disableDepthTest(); ParticleRenderType.PARTICLE_SHEET_TRANSLUCENT.begin(buffer, textureManager); } public void end(Tesselator tessellator) { ParticleRenderType.PARTICLE_SHEET_TRANSLUCENT.end(tessellator); RenderSystem.enableDepthTest(); } }; } @OnlyIn(Dist.CLIENT) public static class Factory implements ParticleProvider<SimpleParticleType> { private final SpriteSet spriteSet; public Factory(final SpriteSet spriteSet) { this.spriteSet = spriteSet; } public Particle createParticle(final SimpleParticleType type, final ClientLevel world, final double x, final double y, final double z, final double xSpeed, final double ySpeed, final double zSpeed ) { final com.peet.somename.particles.DepthVisionParticle particle = new com.peet.somename.particles.DepthVisionParticle(world, x, y, z, 0.0, 0.0, 0.0, this.spriteSet); particle.setParticleSpeed((float) xSpeed, (float) ySpeed, (float) zSpeed); return particle; } } }  
    • no, but do you know  any alternatives that will give me access to shaders?
  • Topics

×
×
  • Create New...

Important Information

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