Jump to content

Error: Bad type on operand stack


holylemonaple

Recommended Posts

I am attempting to install Galacticraft, but anytime I attempt, the bad type on operand stack error shows up
i am very new to this and have no idea what i am doing in terms of handling java 

 

 

---- Minecraft Crash Report ----

WARNING: coremods are present:
  EnderCorePlugin (EnderCore-1.10.2-0.4.1.66-beta.jar)
  MicdoodlePlugin (MicdoodleCore-1.10.2-4.0.2.190.jar)
Contact their authors BEFORE contacting forge

// I'm sorry, Dave.

Time: 2/7/21 2:44 PM
Description: Unexpected error

java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    net/minecraft/client/renderer/chunk/RenderChunk.func_178581_b(FFFLnet/minecraft/client/renderer/chunk/ChunkCompileTaskGenerator;)V @538: invokestatic
  Reason:
    Type 'java/util/Iterator' (current frame, stack[4]) is not assignable to 'net/minecraft/block/Block'
  Current Frame:
    bci: @538
    flags: { }
    locals: { 'net/minecraft/client/renderer/chunk/RenderChunk', float, float, float, 'net/minecraft/client/renderer/chunk/ChunkCompileTaskGenerator', 'net/minecraft/client/renderer/chunk/CompiledChunk', integer, 'net/minecraft/util/math/BlockPos', 'net/minecraft/util/math/BlockPos', 'net/minecraft/client/renderer/chunk/VisGraph', 'java/util/HashSet', 'net/optifine/override/ChunkCacheOF', '[Z', 'net/minecraft/client/renderer/BlockRendererDispatcher', integer, integer, 'java/util/Iterator', 'net/optifine/BlockPosM', 'net/minecraft/block/state/IBlockState', 'net/minecraft/block/Block', '[Lnet/minecraft/util/BlockRenderLayer;', integer, 'net/minecraft/util/BlockRenderLayer', integer, 'net/minecraft/client/renderer/VertexBuffer', 'net/optifine/render/RenderEnv' }
    stack: { '[Z', integer, integer, integer, 'java/util/Iterator' }
  Bytecode:
    0x0000000: bb00 5359 b701 413a 0504 3606 bb00 0959
    0x0000010: 2ab4 0082 b701 443a 0719 0710 0f10 0f10
    0x0000020: 0fb6 0148 3a08 1904 b601 4cb6 014f 1904
    0x0000030: b601 53b2 0157 a500 0c19 04b6 014c b601
    0x0000040: 5ab1 1904 1905 b601 5e19 04b6 014c b601
    0x0000050: 5aa7 0010 3a09 1904 b601 4cb6 015a 1909
    0x0000060: bfbb 0162 59b7 0163 3a09 b800 653a 0a2a
    0x0000070: 1907 b701 679a 0277 b201 6904 60b3 0169
    0x0000080: 2a19 07b7 016d 3a0b 190b b601 72b2 0174
    0x0000090: bebc 043a 0cb8 017a b601 7e3a 0db2 0182
    0x00000a0: b601 8536 0eb2 0188 b601 8536 0f19 0719
    0x00000b0: 08b8 018e b901 9401 003a 1019 10b9 019f
    0x00000c0: 0100 9901 9719 10b9 01a3 0100 c001 8a3a
    0x00000d0: 1119 0b19 11b6 01a7 3a12 1912 b901 ad01
    0x00000e0: 003a 1319 12b9 01b0 0100 9900 0a19 0919
    0x00000f0: 11b6 01b4 1912 b801 bc99 0043 190b bb00
    0x0000100: 0959 1911 b701 44b6 01c0 3a14 1914 c600
    0x0000110: 2eb2 01c6 1914 b601 ca3a 1519 15c6 001f
    0x0000120: 1915 1914 b601 d099 000e 190a 1914 b601
    0x0000130: d457 a700 0a19 0519 14b6 01da 150e 9900
    0x0000140: 0bb2 0174 3a14 a700 122a b400 863a 1419
    0x0000150: 1403 1913 b601 de53 0336 1515 1519 14be
    0x0000160: a200 e019 1415 1532 3a16 150e 9900 2319
    0x0000170: 13b2 0182 05bd 0004 5903 1912 5359 0419
    0x0000180: 1653 b801 e336 1715 179a 0006 a700 ae15
    0x0000190: 0f99 0012 b201 8804 bd00 0459 0319 1653
    0x00001a0: b801 e72a 1912 1916 b701 ea3a 1619 16b6
    0x00001b0: 01eb 3617 1913 b601 efb9 01f3 0100 b201
    0x00001c0: f9a5 0079 1904 b601 2515 17b6 01fd 3a18
    0x00001d0: 1918 1916 b602 0119 1819 1219 11b6 0205
    0x00001e0: 3a19 1919 1904 b601 25b6 020b 1905 1916
    0x00001f0: b602 0e9a 0012 1905 1916 b602 112a 1918
    0x0000200: 1907 b701 2f19 0c15 175c 3319 0d19 1219
    0x0000210: 1119 0b19 18b6 0215 1910 b802 1b80 5419
    0x0000220: 19b6 021e 9900 162a 1904 b601 2519 0519
    0x0000230: 0cb7 0222 1919 03b6 0226 8415 01a7 ff1e
    0x0000240: 150f 9900 14b2 0188 04bd 0004 5903 01c0
    0x0000250: 0004 53b8 01e7 a7fe 65b2 0174 3a11 1911
    0x0000260: be36 1203 3613 1513 1512 a200 7d19 1115
    0x0000270: 1332 3a14 190c 1914 b601 eb33 9900 0a19
    0x0000280: 0519 14b6 0229 1905 1914 b602 0e99 004c
    0x0000290: b802 2c99 0010 1904 b601 2519 14b6 012b
    0x00002a0: b802 3219 04b6 0125 1914 b601 2b3a 152a
    0x00002b0: 1914 2324 2519 1519 05b7 0137 1915 b402
    0x00002c0: 36c6 0015 1905 1914 1915 b402 36b6 023b
    0x00002d0: c002 38b6 023f a700 0b19 0519 1401 b602
    0x00002e0: 3f84 1301 a7ff 8219 0bb6 0242 1905 1909
    0x00002f0: b602 46b6 024a 2ab4 005d b601 4f19 0ab8
    0x0000300: 024d 3a0b 2ab4 0067 b802 4d3a 0c19 0b2a
    0x0000310: b400 67b9 0253 0200 5719 0c19 0ab9 0253
    0x0000320: 0200 572a b400 67b9 0256 0100 2ab4 0067
    0x0000330: 190a b902 5902 0057 2ab4 00b8 190c 190b
    0x0000340: b602 5d2a b400 5db6 015a a700 0f3a 1a2a
    0x0000350: b400 5db6 015a 191a bfb1               
  Exception Handler Table:
    bci [46, 57] => handler: 84
    bci [66, 73] => handler: 84
    bci [84, 86] => handler: 84
    bci [765, 835] => handler: 845
    bci [845, 847] => handler: 845
  Stackmap Table:
    full_frame(@66,{Object[#2],Float,Float,Float,Object[#22],Object[#83],Integer,Object[#9],Object[#9]},{})
    same_locals_1_stack_item_frame(@84,Object[#352])
    same_frame(@97)
    full_frame(@187,{Object[#2],Float,Float,Float,Object[#22],Object[#83],Integer,Object[#9],Object[#9],Object[#354],Object[#406],Object[#367],Object[#408],Object[#410],Integer,Integer,Object[#412]},{})
    append_frame(@244,Object[#394],Object[#425],Object[#438])
    append_frame(@309,Object[#470],Object[#460])
    chop_frame(@316,2)
    same_frame(@329)
    append_frame(@344,Object[#479])
    append_frame(@347,Integer)
    append_frame(@399,Object[#113])
    same_frame(@419)
    append_frame(@517,Integer,Object[#18],Object[#519])
    full_frame(@570,{Object[#2],Float,Float,Float,Object[#22],Object[#83],Integer,Object[#9],Object[#9],Object[#354],Object[#406],Object[#367],Object[#408],Object[#410],Integer,Integer,Object[#412],Object[#394],Object[#425],Object[#438],Object[#479],Integer},{})
    chop_frame(@576,1)
    full_frame(@598,{Object[#2],Float,Float,Float,Object[#22],Object[#83],Integer,Object[#9],Object[#9],Object[#354],Object[#406],Object[#367],Object[#408],Object[#410],Integer,Integer,Object[#412]},{})
    same_frame(@601)
    append_frame(@614,Object[#479],Integer,Integer)
    append_frame(@646,Object[#113])
    same_frame(@675)
    same_frame(@726)
    same_frame(@729)
    chop_frame(@737,1)
    chop_frame(@743,3)
    full_frame(@748,{Object[#2],Float,Float,Float,Object[#22],Object[#83],Integer,Object[#9],Object[#9],Object[#354],Object[#406]},{})
    same_locals_1_stack_item_extended(@845,Object[#352])
    same_frame(@857)

    at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1121)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:371)
    at net.minecraft.client.main.Main.main(SourceFile:124)
    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.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


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

-- System Details --
Details:
    Minecraft Version: 1.10.2
    Operating System: Windows 8.1 (amd64) version 6.3
    Java Version: 1.8.0_51, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 524623760 bytes (500 MB) / 1073741824 bytes (1024 MB) up to 2147483648 bytes (2048 MB)
    JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.32 Powered by Forge 12.18.3.2185 Optifine OptiFine_1.10.2_HD_U_I5 15 mods loaded, 15 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    U    mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
    U    FML{8.0.99.99} [Forge Mod Loader] (forge-1.10.2-12.18.3.2185.jar) 
    U    Forge{12.18.3.2185} [Minecraft Forge] (forge-1.10.2-12.18.3.2185.jar) 
    U    Micdoodlecore{} [Micdoodle8 Core] (minecraft.jar) 
    U    mercurius_updater{1.0} [mercurius_updater] (MercuriusUpdater-1.10.2.jar) 
    U    compatlayer{0.3.1} [compatlayer] (compatlayer-1.10-0.3.1.jar) 
    U    endercore{1.10.2-0.4.1.66-beta} [EnderCore] (EnderCore-1.10.2-0.4.1.66-beta.jar) 
    U    EnderIO{1.10.2-3.1.193} [Ender IO] (EnderIO-1.10.2-3.1.193.jar) 
    U    galacticraftplanets{4.0.2.190} [Galacticraft Planets] (Galacticraft-Planets-1.10.2-4.0.2.190.jar) 
    U    galacticraftcore{4.0.2.190} [Galacticraft Core] (GalacticraftCore-1.10.2-4.0.2.190.jar) 
    U    JEI{3.14.8.422} [Just Enough Items] (jei_1.10.2-3.14.8.422.jar) 
    U    Mekanism{9.2.4} [Mekanism] (Mekanism-1.10.2-9.2.4.103.jar) 
    U    MekanismGenerators{9.2.4} [MekanismGenerators] (MekanismGenerators-1.10.2-9.2.4.103.jar) 
    U    tconstruct{1.10.2-2.6.5.10} [Tinkers' Construct] (TConstruct-1.10.2-2.6.5.jar) 
    U    theoneprobe{1.4.19} [The One Probe] (theoneprobe-1.1x-1.4.19.jar) 
    Loaded coremods (and transformers): 
EnderCorePlugin (EnderCore-1.10.2-0.4.1.66-beta.jar)
  com.enderio.core.common.transform.EnderCoreTransformer
MicdoodlePlugin (MicdoodleCore-1.10.2-4.0.2.190.jar)
  micdoodle8.mods.miccore.MicdoodleTransformer
    GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 10.18.10.4276' Renderer: 'Intel(R) HD Graphics 4000'
    Launched Version: 1.10.2-forge1.10.2-12.18.3.2185
    LWJGL: 2.9.4
    OpenGL: Intel(R) HD Graphics 4000 GL version 4.0.0 - Build 10.18.10.4276, Intel
    GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: 
    Current Language: English (US)
    Profiler Position: N/A (disabled)
 

Link to comment
Share on other sites

1.10 is no longer supported on this forum.

Please update to a modern version of Minecraft to receive support.

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

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello, I'm Richard, a doctor based in Texas, navigating the complexities of life as a single parent to my 7-year-old daughter. Recently, I decided to invest my pension funds with Coinberry, hoping to supplement my income from my medical practice. Little did I anticipate the tumultuous journey that awaited me. Initially, Coinberry seemed like a promising platform, offering opportunities to invest in cryptocurrencies such as Ethereum (ETH). Entrusting them with $38,000 worth of ETH, I envisioned a future where financial stability and security would complement my responsibilities as a healthcare provider and father. However, my optimism quickly turned to despair when Coinberry's actions took a sinister turn. I found myself on the brink of losing my entire investment—$38,000 worth of ETH—due to what appeared to be a series of manipulative maneuvers. The situation seemed dire, and I was at a loss for how to reclaim what was rightfully mine. Amidst the chaos and desperation, a ray of hope emerged in the form of RESILIENT SHIELD RECOVERY.. Recommended to me by others who had faced similar ordeals, I reached out to them with a flicker of optimism. Their response was nothing short of remarkable. RESILIENT SHIELD RECOVERY. swiftly embarked on a mission to trace the intricate path of my lost funds. Their expertise in blockchain analytics and forensic investigation proved invaluable as they meticulously tracked the movement of ETH across various soft wallets. Within a remarkably short span of three days, they achieved the seemingly impossible—they recovered a substantial portion of my funds. The relief and gratitude I felt cannot be overstated. RESILIENT SHIELD RECOVERY. not only restored my financial stability but also provided me with a renewed sense of security. Their professionalism and efficiency in handling my case were exemplary, guiding me through the intricate process of fund recovery with empathy and clarity. Beyond their role as financial saviors, RESILIENT SHIELD RECOVERY. imparted invaluable lessons on cybersecurity and risk management. They emphasized the importance of vigilance in the digital realm, advocating for measures such as two-factor authentication and secure password practices to safeguard against future threats. Their insights were not only practical but also empowering, equipping me with the knowledge to make informed decisions in my future financial endeavors. As I reflect on this challenging chapter in my life, I am reminded of the resilience inherent in the human spirit. My experience with Coinberry and subsequent salvation by RESILIENT SHIELD RECOVERY. has reinforced the importance of due diligence and caution in investment decisions. It has also underscored the critical role that trusted allies like RESILIENT SHIELD RECOVERY. play in navigating the complexities of financial fraud and cybercrime. To anyone facing similar challenges or contemplating investments in the digital realm, I offer a word of caution and encouragement. Trust your instincts, conduct thorough research, and seek guidance from reputable professionals like RESILIENT SHIELD RECOVERY. when needed. Their expertise and dedication are invaluable assets in safeguarding your financial future. While the scars of this experience may linger, I am grateful for the silver lining provided by RESILIENT SHIELD RECOVERY.. They have not only restored my faith in financial security but also empowered me to protect my daughter's future with renewed vigor and determination. Together, we forge ahead, fortified by hard-earned lessons.  
    • Fast Leaf Decay (by olafskiii) Rubidium (by Asek3) Artifacts (by ochotonida) Framework (by MrCrayfish) Max Health Fix (by DarkhaxDev) Embeddium/Rubidium Extras (by Txni) Essential Mod (by SparkUniverse_) Immersive Aircraft [Fabric/Forge] (by Conczin) Cherished Worlds (Fabric/Forge/NeoForge/Quilt) (by TheIllusiveC4) ExpandAbility (by florensie) Sophisticated Core (by P3pp3rF1y) Tinkers' Levelling Addon (by Pyre540) Better Advancements (by way2muchnoise) Immersive Melodies [Fabric/Forge] (by Conczin) Citadel (by sbom_xela) Vampirism - Become a vampire! (by maxanier) FerriteCore ((Neo)Forge) (by malte0811) CoroUtil (by Corosus) Create Big Cannons (by rbasamoyai) Controlling (by Jaredlll08) Cloth Config API (Fabric/Forge/NeoForge) (by shedaniel) Mekanism (by bradyaidanc) BetterF3 (by cominixo) Supplementaries (by MehVahdJukaar) Chest Cavity - Forge Port (by booneldanforever) ConnectedTexturesMod (by tterrag1098) NetherPortalFix (by BlayTheNinth) Spartan Weaponry (by ObliviousSpartan) Charm of Undying (Fabric/Forge/Quilt) (by TheIllusiveC4) Plushie Mod (by Link4real) JourneyMap (by techbrew) Farmer's Delight (by vectorwing) Connectivity[Forge/Fabric] (by someaddon) Create : Misc & Things (by To0pa) Create: Steam 'n' Rails (by IThundxr) Shutup Experimental Settings! (by Corgi_Taco) Alex's Mobs (by sbom_xela) Quark (by Vazkii) Tool Belt (by gigaherz) Just Enough Items (JEI) (by mezz) Bookshelf (by DarkhaxDev) FastWorkbench (by Shadows_of_Fire) Tinkers Construct (by mDiyo) Collective (by Serilum) Inventory HUD+ (by dmitrylovin) Explorer's Compass (by Chaosyr) playerAnimator (by KosmX) Size Devices (by DaFlame_rl) Jade 🔍 (by Snownee) Create Slice & Dice (by possible_triangle) Create Jetpack (by possible_triangle) Carry On (by Tschipp) Moonlight Lib (by MehVahdJukaar) Kotlin for Forge (by thedarkcolour) CraftTweaker (by Jaredlll08) Just Enough Resources (JER) (by way2muchnoise) AI Improvements (by QueenOfMissiles) Patchouli (by Vazkii) Catalogue (by MrCrayfish) Tool Stats (by DarkhaxDev) It Takes a Pillage (by izofar) JEITweaker (by Jaredlll08) Waystones (by BlayTheNinth) Vampires Need Umbrellas (by focamacho) Oculus (by Asek3) Mantle (by mDiyo) Mob Grinding Utils (by vadis365) Chiseled (by freepeopleworking) AutoRegLib (by Vazkii) Mystical Agriculture (by BlakeBr0) Embeddium/Rubidium Dynamic Lights (by Txni) Flywheel (Legacy) (by jozufozu) Builder's Delight (Forge) (by Tynoxs) Apotheosis (by Shadows_of_Fire) What Are They Up To (Watut) (by Corosus) Create: Interiors (by sudolev) FastFurnace (by Shadows_of_Fire) Balm (Forge Edition) (by BlayTheNinth) Clumps (by Jaredlll08) Iris & Oculus Flywheel Compat (by leon_mout) Configured (by MrCrayfish) Tinkers' Expansion (by Insane96) Crafting on a stick (by OfekN_) MrCrayfish's Gun Mod (by MrCrayfish) Create: Crystal Clear (by singularity_cyvack) FTB Library (Forge) (by FTB) AppleSkin (by squeek502) Curios API (Forge/NeoForge) (by TheIllusiveC4) Better Third Person (by Socolio) Caelus API (Forge/NeoForge) (by TheIllusiveC4) Sons Of Sins (by Furti_Two) SwingThroughGrass (by exidex) AttributeFix (by DarkhaxDev) Quests Additions (Forge) (by NaturaSpell) Building Gadgets (by Direwolf20) Enchantment Descriptions (by DarkhaxDev) Skin Layers 3D (Fabric/Forge) (by tr7zw) Bad Wither No Cookie - Reloaded (by Kreezxil) Placebo (by Shadows_of_Fire) FTB Teams (Forge) (by FTB) Mod Name Tooltip (by mezz) Enigmatic Graves (by Quarris) Sophisticated Backpacks (by P3pp3rF1y) GeckoLib (by Gecko) Builders Crafts & Additions (by MRHminer) Immersive Portals (for Forge) (by qouteall) Architectury API (Fabric/Forge/NeoForge) (by shedaniel) Lazy DataFixerUpper(LazyDFU) [FORGE] (by Corgi_Taco) Create Ore Excavation (by tom54541) Tinkers' Rapier (by sz0999312) Mowzie's Mobs (by bobmowzie) Better Combat [Fabric & Forge] (by daedelus_dev) Create Stuff & Additions (by Furti_Two) Cucumber Library (by BlakeBr0) FPS Reducer (by bre2el) Item Filters (by LatvianModder) FTB Quests (Forge) (by FTB) L_Ender 's Cataclysm (by mcl_ender) Starter Kit (by Serilum) Feature NBT Deadlock Be Gone (by telepathicgrunt) Materialis (by RCXcrafter) KleeSlabs (by BlayTheNinth) Pehkui (by Virtuoel) Grappling Hook Mod (by yyonne) Security Craft (by Geforce132) Ars Nouveau (by baileyholl2) Mouse Tweaks (by YaLTeR) Werewolves - Become a Beast! (by Cheaterpaul) Elytra Slot (Fabric/Forge/Quilt) (by TheIllusiveC4) Create (by simibubi) Budschie's Morph Mod (by budschie_) Ore Excavation (by Funwayguy) Create Confectionery (by Furti_Two)
    • Hello, im kind of a newbie on creating mods, and i been trying to make simples mods so far, Right now, i'm creating a mod which detect an specific type of mob and kill it if reach a certain number, by far the mod is detecting the mob and counting them but at the time it reach the limit number, it don't do anything. The Game don't tweak, don't crash, just i't don't run the method i call, which is kill().   public InteractionResultHolder<ItemStack> use(Level pLevel, Player pPlayer, InteractionHand pUsedHand) { final var TotalCows = pLevel.getNearbyEntities(Cow.class, TargetingConditions.forNonCombat(), pPlayer, pPlayer.getBoundingBox().inflate(5)); if(pLevel.isClientSide){ if(pPlayer.getItemInHand(InteractionHand.MAIN_HAND).getItem() == this.asItem()){ if(!TotalCows.isEmpty()){ if(TotalCows.get(0).isAlive()){ TotalCows.get(0).kill(); } }else{ pPlayer.sendSystemMessage(Component.literal("No hay vacas")); } } } The sendSystemMessage is get triggered, and when i change the method .kill() by any other like send a message it got called, can i get some tips, and a clue of what i'm missing
    • UPD: I DID IT   @Override public void applyEffectTick(LivingEntity livingEntity, int pAmplifier) { Level level = livingEntity.level(); if (!level.isClientSide()) { Holder<DamageType> entropyHolder = level .registryAccess() .registryOrThrow(Registries.DAMAGE_TYPE) .getHolderOrThrow(GTDamageTypes.ENTROPY_KEY); livingEntity.hurt(new DamageSource(entropyHolder), 1); } super.applyEffectTick(livingEntity, pAmplifier); }  
    • So I came to this public class ModDamageTypes{ public static void bootstrap(BootstapContext<DamageType> context) { context.register(GTDamageTypes.ENTROPY_KEY, new DamageType(GrimTales.MOD_ID + "_entropy", 0.1f)); } } public class GTDamageTypes implements DamageTypes { public static final ResourceKey<DamageType> ENTROPY_KEY = register("entropy"); private static ResourceKey<DamageType> register(String name) { return ResourceKey.create(Registries.DAMAGE_TYPE, new ResourceLocation(GrimTales.MOD_ID, name)); } } public class ModWorldGenProvider extends DatapackBuiltinEntriesProvider { public static final RegistrySetBuilder BUILDER = new RegistrySetBuilder() .add(Registries.DAMAGE_TYPE, ModDamageTypes::bootstrap); public ModWorldGenProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> registries) { super(output, registries, BUILDER, Set.of(GrimTales.MOD_ID)); } But! I still have an issue that, I cannot just use Holder.direct, due to it will create error that "Required type:  Holder<DamageType>  Provided : Holder<ResourceKey<DamageType>>" And I still have no clue how to fix it
  • Topics

×
×
  • Create New...

Important Information

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