Jump to content

Happens when i place every block i have. Even a vanilla stone block.


Doseishy

Recommended Posts

---- Minecraft Crash Report ----
// Who set us up the TNT?

Time: 9/29/20 3:13 PM
Description: Unexpected error

java.lang.NoSuchMethodError: net.minecraft.entity.player.PlayerEntity.isSneaking()Z
    at com.github.sejoslaw.catchEverythingInBook.CatchBlockHandler.onRightClick(CatchBlockHandler.java:38) ~[?:1.15.2-1.0.1-forge] {re:classloading}
    at net.minecraftforge.eventbus.ASMEventHandler_388_CatchBlockHandler_onRightClick_RightClickBlock.invoke(.dynamic) ~[?:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-2.2.0-service.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-2.2.0-service.jar:?] {}
    at net.minecraftforge.common.ForgeHooks.onRightClickBlock(ForgeHooks.java:786) ~[?:?] {re:classloading}
    at net.minecraft.client.multiplayer.PlayerController.func_217292_a(PlayerController.java:267) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.optifine.override.PlayerControllerOF.func_217292_a(PlayerControllerOF.java:98) ~[?:?] {re:classloading}
    at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1281) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.func_184117_aA(Minecraft.java:1542) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1375) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:904) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:553) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(SourceFile:204) [?:?] {re:classloading}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.15.2-31.2.41.jar:31.2] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$485/1724495151.call(Unknown Source) [forge-1.15.2-31.2.41.jar:31.2] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-5.1.2.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-5.1.2.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-5.1.2.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-5.1.2.jar:?] {}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-5.1.2.jar:?] {}


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

-- Head --
Thread: Render thread
Stacktrace:
    at com.github.sejoslaw.catchEverythingInBook.CatchBlockHandler.onRightClick(CatchBlockHandler.java:38)
    at net.minecraftforge.eventbus.ASMEventHandler_388_CatchBlockHandler_onRightClick_RightClickBlock.invoke(.dynamic)
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80)
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258)
    at net.minecraftforge.common.ForgeHooks.onRightClickBlock(ForgeHooks.java:786)
    at net.minecraft.client.multiplayer.PlayerController.func_217292_a(PlayerController.java:267)
    at net.optifine.override.PlayerControllerOF.func_217292_a(PlayerControllerOF.java:98)
    at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1281)
    at net.minecraft.client.Minecraft.func_184117_aA(Minecraft.java:1542)

-- Affected level --
Details:
    All players: 1 total; [ClientPlayerEntity['Alizabeth_Lumley'/185, l='MpServer', x=169.31, y=70.00, z=-16.73]]
    Chunk stats: Client Chunk Cache: 729, 344
    Level dimension: DimensionType{atum:atum}
    Level name: MpServer
    Level seed: 7584745978719742529
    Level generator: ID 00 - default, ver 1. Features enabled: false
    Level generator options: {}
    Level spawn location: World: (223,68,-96), Chunk: (at 15,4,0 in 13,-6; contains blocks 208,0,-96 to 223,255,-81), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
    Level time: 1689 game time, 1689 day time
    Known server brands: 
    Level was modded: false
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
    Server brand: forge
    Server type: Non-integrated multiplayer server
Stacktrace:
    at net.minecraft.client.world.ClientWorld.func_72914_a(ClientWorld.java:611)
    at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:1763)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:572)
    at net.minecraft.client.main.Main.main(SourceFile:204)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51)
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$485/1724495151.call(Unknown Source)
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81)
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65)

-- System Details --
Details:
    Minecraft Version: 1.15.2
    Minecraft Version ID: 1.15.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_51, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 5931360760 bytes (5656 MB) / 10737418240 bytes (10240 MB) up to 10737418240 bytes (10240 MB)
    CPUs: 6
    JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx10G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    ModLauncher: 5.1.2+70+master.2845bb9
    ModLauncher launch target: fmlclient
    ModLauncher naming: srg
    ModLauncher services: 
        /eventbus-2.2.0-service.jar eventbus PLUGINSERVICE 
        /forge-1.15.2-31.2.41.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.15.2-31.2.41.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-2.1.3-shadowed.jar accesstransformer PLUGINSERVICE 
        /forge-1.15.2-31.2.41.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.15.2-31.2.41.jar runtimedistcleaner PLUGINSERVICE 
        /preview_OptiFine_1.15.2_HD_U_G1_pre30.jar OptiFine TRANSFORMATIONSERVICE 
        /forge-1.15.2-31.2.41.jar fml TRANSFORMATIONSERVICE 
        /MixinBootstrap-1.0.4.jar mixinbootstrap TRANSFORMATIONSERVICE 
        /MixinBootstrap-1.0.4.jar mixin PLUGINSERVICE 
        /MixinBootstrap-1.0.4.jar mixinbootstrap PLUGINSERVICE 
    FML: 31.2
    Forge: net.minecraftforge:31.2.41
    FML Language Providers: 
        [email protected]
        minecraft@1
        [email protected]
    Mod List: 
        enchantedbookredesign-2.0a.jar Enchanted Book Redesign {[email protected] DONE}
        doubledoors_1.15-2.1.jar Double Doors {[email protected] DONE}
        WizardsAnimalsPlus2.2.jar Wizard Animals Plus {[email protected] DONE}
        SlimyBoyos-2.0.1.2.jar SlimyBoyos {[email protected] DONE}
        hatstands-1.0.1-1.15.2.jar Hat Stands {[email protected] DONE}
        Wyrmroost-1.1.2.jar Wyrmroost {[email protected] DONE}
        brine.jar Brine {[email protected] DONE}
        dungeon_armors_1.0.0.jar Dungeon Armors {[email protected] DONE}
        jei-1.15.2-6.0.3.15.jar Just Enough Items {[email protected] DONE}
        Druidcraft-1.15-0.4.31.jar Druidcraft {[email protected] DONE}
        Abnormals-Core-1.15.2-1.0.6.jar Abnormals Core {[email protected] DONE}
        KiwiBirds 1.3 1.15.2.jar Kiwi Birds {[email protected] 1.15.2 DONE}
        flower-breeding-1.15.2-1.4.jar Lizzie's Flower Breeding {[email protected] DONE}
        Upgrade-Aquatic-1.15.2-1.7.1.jar Upgrade Aquatic {[email protected] DONE}
        strawgolem-1.15.2-1.9.jar Straw Golem {[email protected] DONE}
        modnametooltip_1.15.2-1.13.0.jar Mod Name Tooltip {[email protected] DONE}
        Neat 1.6-22.jar Neat {[email protected] DONE}
        Waystones_1.15.2-6.0.2.jar Waystones {[email protected] DONE}
        Clumps-5.0.2.6.jar Clumps {[email protected] DONE}
        journeymap-1.15.2-5.7.0b3.jar Journeymap {[email protected] DONE}
        Placebo-1.15.2-3.1.0.jar Placebo {[email protected] DONE}
        citadel-1.1.11.jar Citadel {[email protected] DONE}
        FruitTrees-1.15.2-1.5.2.jar Fruit Trees {[email protected] DONE}
        Kiwi-1.15.2-2.8.2.jar Kiwi {[email protected] DONE}
        premium-wood-1.15.2-1.1.1.jar Premium Wood {[email protected] DONE}
        DungeonCrawl-1.15.2-2.1.0.jar Dungeon Crawl {[email protected] DONE}
        betteranimalsplus-1.15.2-10.0.0.jar Better Animals Plus {[email protected] DONE}
        MutantBeasts-1.15.2-1.0.7.jar Mutant Beasts {[email protected] DONE}
        branders-enhanced-spawnermod-1.15.2-1.6.5.jar Enhanced Mob Spawners {[email protected] DONE}
        Bookshelf-1.15.2-5.6.40.jar Bookshelf {[email protected] DONE}
        BotanyPots-1.15.2-2.0.27.jar BotanyPots {[email protected] DONE}
        Reliquary-1.15.2-1.3.4.995.jar Reliquary {[email protected] DONE}
        creeperconfetti-3.0.jar Creeper Confetti {[email protected] DONE}
        Apotheosis-1.15.2-3.3.7.jar Apotheosis {[email protected] DONE}
        bedspreads-FORGE-1.15.2-3.0.0.1.jar Bedspreads {[email protected] DONE}
        additional_lights-1.15.2-2.0.2.jar Additional Lights {[email protected] DONE}
        sworddisplay-1.15.2-1.4.1..jar Sword Displays {[email protected]. DONE}
        iceandfire-2.0.2-1.15.2.jar Ice and Fire {[email protected] DONE}
        dads-sewing-1.15.2-v2.jar Dad's Sewing {[email protected] DONE}
        traverse-1.15.2-3.2.0.jar Traverse {[email protected] DONE}
        carryon-1.15.2-1.13.0.5.jar Carry On {[email protected] DONE}
        mysticalworld-1.15.2-2.1.3.jar Mystical World {[email protected] DONE}
        forge-1.15.2-31.2.41-universal.jar Forge {[email protected] DONE}
        Atum-1.15.2-2.1.8.jar Atum 2 {[email protected] DONE}
        shetiphiancore-1.15-3.7.4.jar ShetiPhian-Core {[email protected] DONE}
        respawnablepets-1.1.4.jar Respawnable Pets {[email protected] DONE}
        mysticallib-1.15.2-2.0.1.jar Mystical Lib {[email protected] DONE}
        comfycozy-1.15-1.0-fix.jar Comfy Cozy {[email protected] DONE}
        structure-gel-api-1.15.2-1.1.0.jar Structure Gel API {[email protected] DONE}
        ironchest-1.15.2-10.0.3.jar Iron Chests {[email protected] DONE}
        forge-1.15.2-31.2.41-client.jar Minecraft {[email protected] DONE}
        cofh_core-1.15.2-0.7.0b.jar CoFH Core {[email protected] DONE}
        ensorcellation-1.15.2-0.7.0b.jar Ensorcellation {[email protected] DONE}
        The-Endergetic-Expansion-1.15.2-v1.3.2.jar The Endergetic Expansion {[email protected] DONE}
        resourcefulbees-1.15.2-0.3.8a.jar Resourceful Bees {[email protected] DONE}
        repurposedstructures-1.15.2-1.7.2.jar Repurposed Structures {[email protected] DONE}
        EnchantmentDescriptions-1.15.2-2.0.9.jar EnchantmentDescriptions {[email protected] DONE}
        pandoras_creatures-1.15.2-1.0.1.jar Pandoras Creatures {[email protected] DONE}
        effectivepets-0.1.jar Effective Pets {effectivepets@NONE DONE}
        compactores-1.15.2-2.1.3.jar Compact Ores {[email protected] DONE}
        projectvibrantjourneys-1.15.2-2.0.3.jar Project: Vibrant Journeys {[email protected] DONE}
        valhelsia_structures-15.0.3a.jar Valhelsia Structures {[email protected] DONE}
        CatchEverythingInBook-1.15.2-1.0.1-forge.jar Catch Everything In Book {[email protected] DONE}
        JAHM-v1.3.4-[1.15.2].jar Just Another Head Mod {[email protected] DONE}
        Bountiful-1.15.2-3.1.2.jar Bountiful {[email protected] DONE}
        extragolems-10.2.1.jar Extra Golems {[email protected] DONE}
        curios-FORGE-1.15.2-2.0.2.6.jar Curios API {[email protected] DONE}
        Botania-r1.15-388.jar Botania {[email protected] DONE}
        Patchouli-1.15.2-1.2-35.jar Patchouli {[email protected] DONE}
        gravestone-1.17.5.jar Gravestone Mod {[email protected] DONE}
        collective-1.15.2-1.39.jar Collective {[email protected] DONE}
        camera-1.6.9.jar Camera Mod {[email protected] DONE}
        autumnity-1.3.3-1.15.2.jar Autumnity {[email protected] DONE}
        StorageDrawers-1.15.2-7.0.2.jar Storage Drawers {[email protected] DONE}
        Mushroom Quest_1.15.2_v2.4.jar Mushroom Quest {[email protected] DONE}
        themidnight-0.5.9.jar The Midnight {[email protected] DONE}
        Statues-1.15.2-0.1.5.2.jar Statues Mod {[email protected] DONE}
        byg-1.0.11.jar Oh The Biomes You'll Go {[email protected] DONE}
        FriendlyFire-1.15.2-4.0.1.jar FriendlyFire {[email protected] DONE}
        Charm-1.15.2-1.5.9.jar Charm {[email protected] DONE}
        terraqueous-1.15-1.6.3.jar Terraqueous {[email protected] DONE, [email protected] DONE, [email protected] DONE}
        earth2java_1.5.0_forge_1.15.2.jar Earth2Java {[email protected] DONE}
        FastLeafDecay-v22.jar FastLeafDecay {fastleafdecay@v22 DONE}
        Disenchanting-forge_1.15.2-1.5.0.jar Disenchanting {[email protected] DONE}
        SoundFilters-0.14_for_1.15.2.jar Sound Filters {[email protected]_for_1.15.2 DONE}
        theparakeetmod-Forge-1.15.2-1.0.4.jar The Parakeet Mod {[email protected] DONE}
        farlanders-1.15.2-1.3.1.jar The Farlanders {[email protected] DONE}
    Kiwi Modules: 
        fruittrees:cherry
        fruittrees:fruittrees
        fruittrees:hybridization
        kiwi:contributors
        kiwi:data
    Patchouli open book context: n/a
    Launched Version: 1.15.2-forge-31.2.41
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: GeForce GTX 1660/PCIe/SSE2 GL version 4.6.0 NVIDIA 452.06, NVIDIA Corporation
    GL Caps: Using framebuffer using OpenGL 3.0
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'forge'
    Type: Client (map_client.txt)
    Resource Packs: vanilla
    Current Language: English (US)
    CPU: 6x Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
    OptiFine Version: OptiFine_1.15.2_HD_U_G1_pre30
    OptiFine Build: 20200622-083032
    Render Distance Chunks: 8
    Mipmaps: 4
    Anisotropic Filtering: 1
    Antialiasing: 0
    Multitexture: false
    Shaders: null
    OpenGlVersion: 4.6.0 NVIDIA 452.06
    OpenGlRenderer: GeForce GTX 1660/PCIe/SSE2
    OpenGlVendor: NVIDIA Corporation
    CpuCount: 6

What does this mean,and how can I fix it?

Link to comment
Share on other sites

From the looks of their github repo, Catch Everything in Book isn't being reobfuscated during build, so it's not usable outside of a development workspace

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

Spoiler

Logs (Most issues require logs to diagnose):

Spoiler

Please post logs using one of the following sites (Thank you Lumber Wizard for the list):

https://gist.github.com/100MB Requires member (Free)

https://pastebin.com/: 512KB as guest, 10MB as Pro ($$$)

https://hastebin.com/: 400KB

Do NOT use sites like Mediafire, Dropbox, OneDrive, Google Drive, or a site that has a countdown before offering downloads.

 

What to provide:

...for Crashes and Runtime issues:

Minecraft 1.14.4 and newer:

Post debug.log

Older versions:

Please update...

 

...for Installer Issues:

Post your installer log, found in the same place you ran the installer

This log will be called either installer.log or named the same as the installer but with .log on the end

Note for Windows users:

Windows hides file extensions by default so the installer may appear without the .jar extension then when the .log is added the log will appear with the .jar extension

 

Where to get it:

Mojang Launcher: When using the Mojang launcher debug.log is found in .minecraft\logs.

 

Curse/Overwolf: If you are using the Curse Launcher, their configurations break Forge's log settings, fortunately there is an easier workaround than I originally thought, this works even with Curse's installation of the Minecraft launcher as long as it is not launched THROUGH Twitch:

Spoiler
  1. Make sure you have the correct version of Forge installed (some packs are heavily dependent on one specific build of Forge)
  2. Make a launcher profile targeting this version of Forge.
  3. Set the launcher profile's GameDir property to the pack's instance folder (not the instances folder, the folder that has the pack's name on it).
  4. Now launch the pack through that profile and follow the "Mojang Launcher" instructions above.

Video:

Spoiler

 

 

 

or alternately, 

 

Fallback ("No logs are generated"):

If you don't see logs generated in the usual place, provide the launcher_log.txt from .minecraft

 

Server Not Starting:

Spoiler

If your server does not start or a command window appears and immediately goes away, run the jar manually and provide the output.

 

Reporting Illegal/Inappropriate Adfocus Ads:

Spoiler

Get a screenshot of the URL bar or copy/paste the whole URL into a thread on the General Discussion board with a description of the Ad.

Lex will need the Ad ID contained in that URL to report it to Adfocus' support team.

 

Posting your mod as a GitHub Repo:

Spoiler

When you have an issue with your mod the most helpful thing you can do when asking for help is to provide your code to those helping you. The most convenient way to do this is via GitHub or another source control hub.

When setting up a GitHub Repo it might seem easy to just upload everything, however this method has the potential for mistakes that could lead to trouble later on, it is recommended to use a Git client or to get comfortable with the Git command line. The following instructions will use the Git Command Line and as such they assume you already have it installed and that you have created a repository.

 

  1. Open a command prompt (CMD, Powershell, Terminal, etc).
  2. Navigate to the folder you extracted Forge’s MDK to (the one that had all the licenses in).
  3. Run the following commands:
    1. git init
    2. git remote add origin [Your Repository's URL]
      • In the case of GitHub it should look like: https://GitHub.com/[Your Username]/[Repo Name].git
    3. git fetch
    4. git checkout --track origin/master
    5. git stage *
    6. git commit -m "[Your commit message]"
    7. git push
  4. Navigate to GitHub and you should now see most of the files.
    • note that it is intentional that some are not synced with GitHub and this is done with the (hidden) .gitignore file that Forge’s MDK has provided (hence the strictness on which folder git init is run from)
  5. Now you can share your GitHub link with those who you are asking for help.

[Workaround line, please ignore]

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • 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?
    • I used an alternative for this, this is a sheet template, which helped me simplify my task and I did not have to count, because every time I start counting again, I always get confused. In the same way, when I change something, in the template, I can edit everything and put it in the order I need.
  • Topics

×
×
  • Create New...

Important Information

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