Jump to content

Crash when trying to use a custom recipe


Eria8

Recommended Posts

I deleted most Vanilla recipes and replaced them with different ones and they all work fine.

Except for a Bed. When I put the last item in the crafting grid it crashes.

 

Recipe line:

GameRegistry.addShapedRecipe(new ItemStack(Blocks.bed, 1), new Object[] {"  ", "AAA", "BCB", 'A', Main.cloth, 'B', Blocks.fence, 'C', Blocks.wooden_slab});

 

This is the console error log:

 

[19:55:19] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[19:55:19] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[19:55:19] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[19:55:19] [main/INFO] [FML]: Forge Mod Loader version 7.10.25.1194 for Minecraft 1.7.10 loading

[19:55:19] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.7.0_51, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7

[19:55:19] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[19:55:19] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[19:55:19] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[19:55:19] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[19:55:19] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[19:55:19] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[19:55:19] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[19:55:21] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Erika/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-10.13.0.1194/forgeSrc-1.7.10-10.13.0.1194.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!

[19:55:21] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!

[19:55:21] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Erika/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-10.13.0.1194/forgeSrc-1.7.10-10.13.0.1194.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it

[19:55:21] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[19:55:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[19:55:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[19:55:22] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker

[19:55:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker

[19:55:22] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[19:55:24] [main/INFO]: Setting user: Player922

[19:55:26] [Client thread/INFO]: LWJGL Version: 2.9.1

[19:55:27] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[19:55:27] [Client thread/INFO] [FML]: MinecraftForge v10.13.0.1194 Initialized

[19:55:27] [Client thread/INFO] [FML]: Replaced 182 ore recipies

[19:55:27] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[19:55:27] [Client thread/INFO] [FML]: Searching C:\Users\Erika\Desktop\Forge 1194\eclipse\mods for mods

[19:55:28] [Client thread/INFO] [realism]: Mod realism is missing the required element 'name'. Substituting realism

[19:55:29] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error.  There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!

[19:55:32] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[19:55:33] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:realism

[19:55:33] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[19:55:33] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations

[19:55:33] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[19:55:34] [Client thread/INFO] [FML]: Applying holder lookups

[19:55:34] [Client thread/INFO] [FML]: Holder lookups applied

 

Starting up SoundSystem...

Initializing LWJGL OpenAL

    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

OpenAL initialized.

 

[19:55:35] [sound Library Loader/INFO]: Sound engine started

[19:55:35] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[19:55:36] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[19:55:36] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods

[19:55:36] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:realism

[19:55:36] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[19:55:36] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

 

SoundSystem shutting down...

    Author: Paul Lamb, www.paulscode.com

 

 

Starting up SoundSystem...

Initializing LWJGL OpenAL

    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

OpenAL initialized.

 

[19:55:37] [sound Library Loader/INFO]: Sound engine started

[19:55:38] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press

[19:55:40] [server thread/INFO]: Starting integrated minecraft server version 1.7.10

[19:55:40] [server thread/INFO]: Generating keypair

[19:55:40] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[19:55:41] [server thread/INFO] [FML]: Applying holder lookups

[19:55:41] [server thread/INFO] [FML]: Holder lookups applied

[19:55:41] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@9e7cbde)

[19:55:41] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@9e7cbde)

[19:55:41] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@9e7cbde)

[19:55:41] [server thread/INFO]: Preparing start region for level 0

[19:55:42] [server thread/INFO]: Preparing spawn area: 41%

[19:55:43] [server thread/INFO]: Changing view distance to 2, from 10

[19:55:43] [Netty Client IO #0/INFO] [FML]: Server protocol version 1

[19:55:43] [Netty IO #1/INFO] [FML]: Client protocol version 1

[19:55:43] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]

[19:55:43] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT

[19:55:43] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER

[19:55:43] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established

[19:55:43] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[19:55:44] [server thread/INFO]: Player922[local:E:62efe679] logged in with entity id 379 at (103.6886789961718, 68.0, 223.14496888049342)

[19:55:44] [server thread/INFO]: Player922 joined the game

[19:55:47] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.game.creative

[19:56:02] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.bat.takeoff

[19:56:22] [server thread/INFO]: Player922 has just earned the achievement [Taking Inventory]

[19:56:22] [Client thread/INFO]: [CHAT] Player922 has just earned the achievement [Taking Inventory]

[19:56:26] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.bat.takeoff

[19:56:42] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.step

[19:56:43] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.step

[19:56:45] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.say

[19:56:51] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.say

[19:56:56] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.say

[19:57:01] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.game.creative

[19:57:01] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.say

[19:57:07] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.say

[19:57:13] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.say

[19:57:19] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.say

[19:57:25] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.say

[19:57:26] [server thread/INFO]: Stopping server

[19:57:26] [server thread/INFO]: Saving players

[19:57:26] [server thread/INFO]: Saving worlds

[19:57:26] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[19:57:26] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[19:57:26] [server thread/INFO]: Saving chunks for level 'New World'/The End

[19:57:27] [server thread/INFO] [FML]: Unloading dimension 0

[19:57:27] [server thread/INFO] [FML]: Unloading dimension -1

[19:57:27] [server thread/INFO] [FML]: Unloading dimension 1

[19:57:27] [server thread/INFO] [FML]: Applying holder lookups

[19:57:27] [server thread/INFO] [FML]: Holder lookups applied

[19:57:27] [Client thread/FATAL]: Reported exception thrown!

net.minecraft.util.ReportedException: Rendering item

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1176) ~[EntityRenderer.class:?]

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1066) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:961) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

Caused by: java.lang.NullPointerException

at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:267) ~[itemStack.class:?]

at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419) ~[RenderItem.class:?]

at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585) ~[RenderItem.class:?]

at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:291) ~[GuiContainer.class:?]

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:118) ~[GuiContainer.class:?]

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1145) ~[EntityRenderer.class:?]

... 9 more

---- Minecraft Crash Report ----

// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]

 

Time: 04/08/14 19:57

Description: Rendering item

 

java.lang.NullPointerException: Rendering item

at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:267)

at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419)

at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585)

at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:291)

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:118)

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1145)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1066)

at net.minecraft.client.Minecraft.run(Minecraft.java:961)

at net.minecraft.client.main.Main.main(Main.java:164)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

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:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:267)

at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419)

 

-- Item being rendered --

Details:

Item Type: null

Item Aux: ~~ERROR~~ NullPointerException: null

Item NBT: null

Item Foil: ~~ERROR~~ NullPointerException: null

Stacktrace:

at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585)

at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:291)

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:118)

 

-- Screen render details --

Details:

Screen name: net.minecraft.client.gui.inventory.GuiCrafting

Mouse location: Scaled: (180, 100). Absolute: (361, 278)

Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player922'/379, l='MpServer', x=103.69, y=69.62, z=223.14]]

Chunk stats: MultiplayerChunkCache: 25, 25

Level seed: 0

Level generator: ID 00 - default, ver 1. Features enabled: false

Level generator options:

Level spawn location: World: (144,64,256), Chunk: (at 0,4,0 in 9,16; contains blocks 144,0,256 to 159,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 30189 game time, 17158 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false

Forced entities: 15 total; [EntityCreeper['Creeper'/1132, l='MpServer', x=91.50, y=69.00, z=195.50], EntityZombie['Zombie'/207, l='MpServer', x=113.50, y=70.00, z=232.22], EntityCreeper['Creeper'/206, l='MpServer', x=134.50, y=71.00, z=232.50], EntityBat['Bat'/512, l='MpServer', x=83.47, y=53.10, z=236.00], EntityClientPlayerMP['Player922'/379, l='MpServer', x=103.69, y=69.62, z=223.14], EntityBat['Bat'/162, l='MpServer', x=88.16, y=49.67, z=225.31], EntityBat['Bat'/161, l='MpServer', x=76.94, y=48.23, z=213.22], EntitySkeleton['Skeleton'/178, l='MpServer', x=128.50, y=65.00, z=233.97], EntityZombie['Zombie'/179, l='MpServer', x=127.44, y=65.00, z=233.59], EntityBat['Bat'/146, l='MpServer', x=77.50, y=48.76, z=213.34], EntityBat['Bat'/147, l='MpServer', x=86.34, y=53.32, z=241.38], EntityHorse['Horse'/148, l='MpServer', x=71.22, y=71.00, z=225.25], EntitySkeleton['Skeleton'/208, l='MpServer', x=126.91, y=65.00, z=235.47], EntityHorse['Horse'/149, l='MpServer', x=72.16, y=71.00, z=244.97], EntityHorse['Horse'/150, l='MpServer', x=68.16, y=71.00, z=245.63]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:417)

at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2567)

at net.minecraft.client.Minecraft.run(Minecraft.java:983)

at net.minecraft.client.main.Main.main(Main.java:164)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 8 (amd64) version 6.2

Java Version: 1.7.0_51, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 864609688 bytes (824 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94

FML: MCP v9.05 FML v7.10.25.1194 Minecraft Forge 10.13.0.1194 4 mods loaded, 4 mods active

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML{7.10.25.1194} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.0.1194.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{10.13.0.1194} [Minecraft Forge] (forgeSrc-1.7.10-10.13.0.1194.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

realism{1.7.10} [realism] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Launched Version: 1.6

LWJGL: 2.9.1

OpenGL: Intel® HD Graphics GL version 2.1.0 - Build 8.15.10.2858, Intel

GL Caps: Using GL 1.3 multitexturing.

Using framebuffer objects because ARB_framebuffer_object is supported and separate blending is supported.

Anisotropic filtering is supported and maximum anisotropy is 16.

Shaders are available because OpenGL 2.1 is supported.

 

Is Modded: Definitely; Client brand changed to 'fml,forge'

Type: Client (map_client.txt)

Resource Packs: []

Current Language: ~~ERROR~~ NullPointerException: null

Profiler Position: N/A (disabled)

Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Anisotropic Filtering: Off (1)

#@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Erika\Desktop\Forge 1194\eclipse\.\crash-reports\crash-2014-08-04_19.57.27-client.txt

AL lib: (EE) alc_cleanup: 1 device not closed

 

 

 

Why is this happening?

Link to comment
Share on other sites

The bed block isn't like other items.  It has its own Item, ItemBed - use that instead.

 

For more background, check out the construction of CraftingManager

 

        this.addRecipe(new ItemStack(Items.bed, 1), new Object[] {"###", "XXX", '#', Blocks.wool, 'X', Blocks.planks});

 

-TGG

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

    • Hello I'm looking for help launching minecraft through curseforge. I've scoured the Internet and can't seem to find anyone with a solution to my specific situation/fix that I haven't tried. I'll post the Curseforge debug Logs below. But basically I'm on a Laptop (Lenovo Legion Slim 7 2021) And the people I've seen with the most similar scenario and found a fix they always had an AMD graphics card and were missing the correct drivers, Well i have the Nvidia geforce RTX 3060 Laptop version with all the most updated drivers, I've reinstalled the drivers so that doesn't seem to me the problem. Also, minecraft will launch in vanilla and through another modloader called modrinth. So it doesn't feel like a Java error either but I don't no how to read this debug page so I'm looking for advice. Please help?!  
    • Hello. Basically I made a custom standalone util library (https://github.com/lolhol/Pathfinder3D) and want to use it with my mod. Although I have done the normal jit pack stuff (basically the tutorial on their website) the Minecraft crashes the second it starts saying that it cannot find the name of a class inside of my library. (When I remove the implement(<my library link thingy>) mc launches normally and does not crash (if I comment out the code that uses the custom lib)). Now then, is there a quick fix for this because all of the other questions that I found on this topic were trying to load another mod (again, not what I’m trying to do). Am I doing something wrong? 
    • 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); }  
  • Topics

×
×
  • Create New...

Important Information

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