Résolu Crash à cause d'un mob
-
Bonjour j’ai crée un nouveau mob mais je ne sais pas pourquoi dés que je le fait spawn cela crée un crash
:::[21:17:08] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Eric/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[21:17:08] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[21:17:08] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[21:17:08] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[21:17:08] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[21:17:08] [main/INFO] [FML]: Forge Mod Loader version 7.99.40.1614 for Minecraft 1.7.10 loading
[21:17:08] [main/INFO] [FML]: Java is Java HotSpot Client VM, version 1.8.0_71, running on Windows 8.1:x86:6.3, installed at C:\Program Files (x86)\Java\jre1.8.0_71
[21:17:08] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[21:17:08] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[21:17:08] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[21:17:08] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[21:17:08] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[21:17:08] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[21:17:08] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[21:17:08] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[21:17:08] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[21:17:08] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[21:17:08] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[21:17:09] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[21:17:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[21:17:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[21:17:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[21:17:10] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[21:17:10] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[21:17:10] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[21:17:10] [main/INFO]: Setting user: Player384
[21:17:11] [Client thread/INFO]: LWJGL Version: 2.9.1
[21:17:12] [Client thread/INFO] [STDOUT]: [tv.twitch.StandardCoreAPI:<init>:16]: If on Windows, make sure to provide all of the necessary dll’s as specified in the twitchsdk README. Also, make sure to set the PATH environment variable to point to the directory containing the dll’s.
[21:17:12] [Client thread/ERROR]: Couldn’t initialize twitch stream
[21:17:12] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ----
// There are four lights!Time: 03/04/16 21:17
Description: Loading screen debug infoThis is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
A detailed walkthrough of the error, its code path and all known details is as follows:
– System Details –
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (x86) version 6.3
Java Version: 1.8.0_71, Oracle Corporation
Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation
Memory: 968244672 bytes (923 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 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: 0, tallocated: 0
FML:
GL info: ’ Vendor: ‘NVIDIA Corporation’ Version: ‘4.5.0 NVIDIA 350.12’ Renderer: ‘GeForce GTX 745/PCIe/SSE2’
[21:17:12] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[21:17:12] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1614 Initialized
[21:17:12] [Client thread/INFO] [FML]: Replaced 183 ore recipies
[21:17:12] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[21:17:12] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[21:17:12] [Client thread/INFO] [FML]: Searching C:\Users\Eric\Desktop\EnderMod\eclipse\mods for mods
[21:17:20] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[21:17:20] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, enderdeath] at CLIENT
[21:17:20] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, enderdeath] at SERVER
[21:17:21] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:leo01418
[21:17:21] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[21:17:21] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
[21:17:21] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[21:17:21] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[21:17:21] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[21:17:21] [Client thread/INFO] [STDOUT]: [ed.enderdeath.mod.common.enderdeath:preInit:464]: preInit
[21:17:21] [Client thread/INFO] [FML]: Applying holder lookups
[21:17:21] [Client thread/INFO] [FML]: Holder lookups applied
[21:17:21] [Client thread/INFO] [FML]: Injecting itemstacks
[21:17:21] [Client thread/INFO] [FML]: Itemstack injection complete
[21:17:21] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[21:17:21] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
[21:17:21] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[21:17:21] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[21:17:21] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[21:17:22] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[21:17:22] [Sound Library Loader/INFO]: Sound engine started
[21:17:23] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
[21:17:23] [Client thread/INFO]: Created: 16x16 textures/items-atlas
[21:17:23] [Client thread/INFO] [STDOUT]: [ed.enderdeath.mod.proxy.ClientProxy:registerRender:57]: client
[21:17:23] [Client thread/INFO] [STDOUT]: [ed.enderdeath.mod.common.enderdeath:init:2059]: init
[21:17:23] [Client thread/INFO] [FML]: Injecting itemstacks
[21:17:23] [Client thread/INFO] [FML]: Itemstack injection complete
[21:17:23] [Client thread/INFO] [STDOUT]: [ed.enderdeath.mod.common.enderdeath:postInit:2081]: Postinit
[21:17:23] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[21:17:23] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:leo01418
[21:17:24] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[21:17:24] [Client thread/INFO]: Created: 512x256 textures/items-atlas
[21:17:24] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[21:17:24] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
[21:17:24] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com
[21:17:24] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[21:17:24] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[21:17:24] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
[21:17:25] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[21:17:25] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[21:17:25] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[21:17:25] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[21:17:25] [Sound Library Loader/INFO]: Sound engine started
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: DOMAIN minecraft
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: –------------------------------------------------
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: domain minecraft is missing 1 texture
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: domain minecraft has 3 locations:
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: mod FML resources at C:\Users\Eric.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1614-1.7.10\forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: mod Forge resources at C:\Users\Eric.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1614-1.7.10\forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: The missing resources for domain minecraft are:
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: textures/items/MISSING_ICON_ITEM_4183_InvisibleBlock.png
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: No other errors exist for domain minecraft
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: DOMAIN enderdeath
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: –------------------------------------------------
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: domain enderdeath is missing 4 textures
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: domain enderdeath has 1 location:
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: mod enderdeath resources at C:\Users\Eric\Desktop\EnderMod\bin
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: The missing resources for domain enderdeath are:
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: textures/items/FeatherChestplate.png
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: textures/items/FeatherHelmet.png
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: textures/items/MultiTool.png
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: textures/items/Wand.png
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: No other errors exist for domain enderdeath
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: DOMAIN enderdeathfeatherleggings
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: –------------------------------------------------
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: domain enderdeathfeatherleggings is missing 1 texture
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: domain enderdeathfeatherleggings is missing a resource manager - it is probably a side-effect of automatic texture processing
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: The missing resources for domain enderdeathfeatherleggings are:
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: textures/items/.png
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: No other errors exist for domain enderdeathfeatherleggings
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[21:17:26] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[21:18:35] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
[21:18:35] [Server thread/INFO]: Generating keypair
[21:18:35] [Server thread/INFO]: Converting map!
[21:18:35] [Server thread/INFO]: Scanning folders…
[21:18:35] [Server thread/INFO]: Total conversion count is 0
[21:18:35] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[21:18:35] [Server thread/INFO] [FML]: Applying holder lookups
[21:18:35] [Server thread/INFO] [FML]: Holder lookups applied
[21:18:36] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@1a6b447)
[21:18:36] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@1a6b447)
[21:18:36] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@1a6b447)
[21:18:36] [Server thread/INFO]: Preparing start region for level 0
[21:18:37] [Server thread/INFO]: Changing view distance to 8, from 10
[21:18:37] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
[21:18:37] [Netty IO #1/INFO] [FML]: Client protocol version 2
[21:18:37] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@7.10.99.99,Forge@10.13.4.1614,enderdeath@1.0,mcp@9.05
[21:18:37] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[21:18:37] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[21:18:37] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[21:18:37] [Server thread/INFO]: Player384[local:E:a7f6edbb] logged in with entity id 9 at (-1187.5, 4.0, -474.5)
[21:18:37] [Server thread/INFO]: Player384 joined the game
[21:18:37] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[21:18:39] [Server thread/INFO]: Player384 has just earned the achievement [Taking Inventory]
[21:18:39] [Client thread/INFO]: [CHAT] Player384 has just earned the achievement [Taking Inventory]
[21:18:45] [Server thread/INFO]: Stopping server
[21:18:45] [Server thread/INFO]: Saving players
[21:18:45] [Server thread/INFO]: Saving worlds
[21:18:45] [Server thread/INFO]: Saving chunks for level ‘New World’/Overworld
[21:18:45] [Server thread/INFO]: Saving chunks for level ‘New World’/Nether
[21:18:45] [Server thread/INFO]: Saving chunks for level ‘New World’/The End
[21:18:46] [Server thread/INFO] [FML]: Unloading dimension 0
[21:18:46] [Server thread/INFO] [FML]: Unloading dimension -1
[21:18:46] [Server thread/INFO] [FML]: Unloading dimension 1
[21:18:47] [Server thread/INFO] [FML]: Applying holder lookups
[21:18:47] [Server thread/INFO] [FML]: Holder lookups applied
[21:18:47] [Client thread/FATAL]: Unreported exception thrown!
java.lang.IllegalStateException: Server tried to update attributes of a non-living entity (actually: EntityTntMeeb[‘entity.enderdeath.EntityTntMeeb.name’/47812, l=‘MpServer’, x=-1188,50, y=4,49, z=-475,50])
at net.minecraft.client.network.NetHandlerPlayClient.handleEntityProperties(NetHandlerPlayClient.java:1831) ~[NetHandlerPlayClient.class:?]
at net.minecraft.network.play.server.S20PacketEntityProperties.processPacket(S20PacketEntityProperties.java:96) ~[S20PacketEntityProperties.class:?]
at net.minecraft.network.play.server.S20PacketEntityProperties.processPacket(S20PacketEntityProperties.java:104) ~[S20PacketEntityProperties.class:?]
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) ~[NetworkManager.class:?]
at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:317) ~[PlayerControllerMP.class:?]
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1693) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_71]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_71]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_71]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_71]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[21:18:47] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
// Oh - I know what I did wrong!Time: 03/04/16 21:18
Description: Unexpected errorjava.lang.IllegalStateException: Server tried to update attributes of a non-living entity (actually: EntityTntMeeb[‘entity.enderdeath.EntityTntMeeb.name’/47812, l=‘MpServer’, x=-1188,50, y=4,49, z=-475,50])
at net.minecraft.client.network.NetHandlerPlayClient.handleEntityProperties(NetHandlerPlayClient.java:1831)
at net.minecraft.network.play.server.S20PacketEntityProperties.processPacket(S20PacketEntityProperties.java:96)
at net.minecraft.network.play.server.S20PacketEntityProperties.processPacket(S20PacketEntityProperties.java:104)
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:317)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1693)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039)
at net.minecraft.client.Minecraft.run(Minecraft.java:962)
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:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)A detailed walkthrough of the error, its code path and all known details is as follows:
–-------------------------------------------------------------------------------------– Head –
Stacktrace:
at net.minecraft.client.network.NetHandlerPlayClient.handleEntityProperties(NetHandlerPlayClient.java:1831)
at net.minecraft.network.play.server.S20PacketEntityProperties.processPacket(S20PacketEntityProperties.java:96)
at net.minecraft.network.play.server.S20PacketEntityProperties.processPacket(S20PacketEntityProperties.java:104)
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:317)– Affected level –
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP[‘Player384’/9, l=‘MpServer’, x=-1187,45, y=5,62, z=-474,42]]
Chunk stats: MultiplayerChunkCache: 289, 289
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options:
Level spawn location: World: (-1197,4,-465), Chunk: (at 3,0,15 in -75,-30; contains blocks -1200,0,-480 to -1185,255,-465), Region: (-3,-1; contains chunks -96,-32 to -65,-1, blocks -1536,0,-512 to -1025,255,-1)
Level time: 148 game time, 148 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: 7 total; [EntitySlime[‘Slime’/21248, l=‘MpServer’, x=-1257,48, y=4,00, z=-477,14], EntitySlime[‘Slime’/340, l=‘MpServer’, x=-1255,77, y=4,47, z=-408,90], EntityTntMeeb[‘entity.enderdeath.EntityTntMeeb.name’/47812, l=‘MpServer’, x=-1188,50, y=4,49, z=-475,50], EntitySlime[‘Slime’/27845, l=‘MpServer’, x=-1252,19, y=4,85, z=-411,25], EntitySlime[‘Slime’/38070, l=‘MpServer’, x=-1203,63, y=5,01, z=-509,01], EntitySlime[‘Slime’/17433, l=‘MpServer’, x=-1202,94, y=4,69, z=-543,53], EntityClientPlayerMP[‘Player384’/9, l=‘MpServer’, x=-1187,45, y=5,62, z=-474,42]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2566)
at net.minecraft.client.Minecraft.run(Minecraft.java:991)
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:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)– System Details –
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (x86) version 6.3
Java Version: 1.8.0_71, Oracle Corporation
Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation
Memory: 916155896 bytes (873 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 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: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 4 mods loaded, 4 mods active
States: ‘U’ = Unloaded ‘L’ = Loaded ‘C’ = Constructed ‘H’ = Pre-initialized ‘I’ = Initialized ‘J’ = Post-initialized ‘A’ = Available ‘D’ = Disabled ‘E’ = Errored
UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCHIJAAAA Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCHIJAAAA enderdeath{1.0} [leo01418] (bin)
GL info: ’ Vendor: ‘NVIDIA Corporation’ Version: ‘4.5.0 NVIDIA 350.12’ Renderer: ‘GeForce GTX 745/PCIe/SSE2’
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: GeForce GTX 745/PCIe/SSE2 GL version 4.5.0 NVIDIA 350.12, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 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: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
[21:18:47] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Eric\Desktop\EnderMod\eclipse.\crash-reports\crash-2016-04-03_21.18.47-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release]
:::La classe du mob
[spoiler```java
import ed.enderdeath.mod.common.enderdeath;
import net.minecraft.entity.Entity;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.boss.IBossDisplayData;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.DamageSource;
import net.minecraft.world.World;public class KingHeal extends EntityMob implements IBossDisplayData
{public KingHeal(World world) {
super(world);
}
public void applyEntityAttributes()
{
super.applyEntityAttributes();
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(1000D);
this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(9D);
this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(4.5D);
}
protected String getLivingSound()
{
return “mob.enderman.bark”;
}/**
* Returns the sound this mob makes when it is hurt.
*/
protected String getHurtSound()
{
return “mob.enderman.hurt”;
}/**
* Returns the sound this mob makes on death.
*/
protected String getDeathSound()
{
return “mob.enderman.death”;
}public void dropFewItems(boolean b, int looting)
{
this.dropItem(enderdeath.StickSpeed, 1);
this.dropItem(enderdeath.DemonSoul, 1);
this.dropItem(Items.nether_star, 3);
this.dropItem(enderdeath.Rubis, 32);
this.dropItem(enderdeath.Saphir, 16);
this.dropItem(enderdeath.Royalite, 9);
this.dropItem(enderdeath.Darkanite, 2);
this.dropItem(enderdeath.NuggetEnderite, 2);
}
public boolean attackEntityAsMob(Entity p_70652_1_)
{if (super.attackEntityAsMob(p_70652_1_))
{
if (this.attackEntityAsMob(p_70652_1_))
{
((EntityPlayer)p_70652_1_).addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 1000));
((EntityPlayer)p_70652_1_).addPotionEffect(new PotionEffect(Potion.poison.id, 1000));
this.worldObj.setEntityState(this, (byte)4);
boolean flag = p_70652_1_.attackEntityFrom(DamageSource.causeMobDamage(this), (float)(7 + this.rand.nextInt(15)));
if (flag)
{
p_70652_1_.motionX += 1.0000000059604645D;
p_70652_1_.motionZ += 1.0000000059604645D;
p_70652_1_.motionY += 1.0000000059604645D;
}
}
return true;
}
return true;
}
} -
Salut,
C’est EntityTntMeeb qui cause problème et non KingHeal -
Ok merci c’est Résolu
-
J’ai une autre entity qui ne marche pas
Elle napparaît[size=small ] pas quand je la fait spawn
Classe de l’entity:
:::package ed.enderdeath.mod.Entity; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.world.World; import cpw.mods.fml.common.registry.VillagerRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ed.enderdeath.mod.common.enderdeath; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Random; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnchantmentData; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityAgeable; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.IEntityLivingData; import net.minecraft.entity.IMerchant; import net.minecraft.entity.INpc; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIAvoidEntity; import net.minecraft.entity.ai.EntityAIFollowGolem; import net.minecraft.entity.ai.EntityAILookAtTradePlayer; import net.minecraft.entity.ai.EntityAIMoveIndoors; import net.minecraft.entity.ai.EntityAIMoveTowardsRestriction; import net.minecraft.entity.ai.EntityAIOpenDoor; import net.minecraft.entity.ai.EntityAIPlay; import net.minecraft.entity.ai.EntityAIRestrictOpenDoor; import net.minecraft.entity.ai.EntityAISwimming; import net.minecraft.entity.ai.EntityAITradePlayer; import net.minecraft.entity.ai.EntityAIVillagerMate; import net.minecraft.entity.ai.EntityAIWander; import net.minecraft.entity.ai.EntityAIWatchClosest; import net.minecraft.entity.ai.EntityAIWatchClosest2; import net.minecraft.entity.monster.EntityZombie; import net.minecraft.entity.monster.IMob; import net.minecraft.entity.passive.EntityVillager; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.util.ChunkCoordinates; import net.minecraft.util.DamageSource; import net.minecraft.util.MathHelper; import net.minecraft.util.Tuple; import net.minecraft.village.MerchantRecipe; import net.minecraft.village.MerchantRecipeList; import net.minecraft.village.Village; import net.minecraft.world.World; public class VillagerShop extends EntityAgeable implements IMerchant, INpc { private int randomTickDivider; private boolean isMating; private boolean isPlaying; Village villageObj; /** This villager's current customer. */ private EntityPlayer buyingPlayer; /** Initialises the MerchantRecipeList.java */ private MerchantRecipeList buyingList; private int timeUntilReset; /** addDefaultEquipmentAndRecipies is called if this is true */ private boolean needsInitilization; private int wealth; /** Last player to trade with this villager, used for aggressivity. */ private String lastBuyingPlayer; private boolean isLookingForHome; private float field_82191_bN; /** Selling list of Villagers items. */ public static final Map villagersSellingList = new HashMap(); /** Selling list of Blacksmith items. */ public static final Map blacksmithSellingList = new HashMap(); private static final String __OBFID = "CL_00001707"; public VillagerShop(World p_i1748_1_, int p_i1748_2_) { super(p_i1748_1_); this.setProfession(p_i1748_2_); this.setSize(0.6F, 1.8F); this.getNavigator().setBreakDoors(true); this.getNavigator().setAvoidsWater(true); this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D)); this.tasks.addTask(1, new EntityAITradePlayerEd(this)); this.tasks.addTask(1, new EntityAILookAtTradePlayerEd(this)); this.tasks.addTask(2, new EntityAIMoveIndoors(this)); this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this)); this.tasks.addTask(4, new EntityAIOpenDoor(this, true)); this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D)); this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F)); this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityVillager.class, 5.0F, 0.02F)); this.tasks.addTask(9, new EntityAIWander(this, 0.6D)); this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F)); } /** * Returns true if the newer Entity AI code should be run */ public boolean isAIEnabled() { return true; } /** * main AI tick function, replaces updateEntityActionState */ protected void updateAITick() { if (–this.randomTickDivider <= 0) { this.worldObj.villageCollectionObj.addVillagerPosition(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.posY), MathHelper.floor_double(this.posZ)); this.randomTickDivider = 70 + this.rand.nextInt(50); this.villageObj = this.worldObj.villageCollectionObj.findNearestVillage(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.posY), MathHelper.floor_double(this.posZ), 32); if (this.villageObj == null) { this.detachHome(); } else { ChunkCoordinates chunkcoordinates = this.villageObj.getCenter(); this.setHomeArea(chunkcoordinates.posX, chunkcoordinates.posY, chunkcoordinates.posZ, (int)((float)this.villageObj.getVillageRadius() * 0.6F)); if (this.isLookingForHome) { this.isLookingForHome = false; this.villageObj.setDefaultPlayerReputation(5); } } } if (!this.isTrading() && this.timeUntilReset > 0) { --this.timeUntilReset; if (this.timeUntilReset <= 0) { if (this.needsInitilization) { if (this.buyingList.size() > 1) { Iterator iterator = this.buyingList.iterator(); while (iterator.hasNext()) { MerchantRecipe merchantrecipe = (MerchantRecipe)iterator.next(); if (merchantrecipe.isRecipeDisabled()) { merchantrecipe.func_82783_a(this.rand.nextInt(6) + this.rand.nextInt(6) + 2); } } } this.addDefaultEquipmentAndRecipies(1); this.needsInitilization = false; if (this.villageObj != null && this.lastBuyingPlayer != null) { this.worldObj.setEntityState(this, (byte)14); this.villageObj.setReputationForPlayer(this.lastBuyingPlayer, 1); } } this.addPotionEffect(new PotionEffect(Potion.regeneration.id, 200, 0)); } } super.updateAITick(); } /** * Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig. */ public boolean interact(EntityPlayer p_70085_1_) { ItemStack itemstack = p_70085_1_.inventory.getCurrentItem(); boolean flag = itemstack != null && itemstack.getItem() == Items.spawn_egg; if (!flag && this.isEntityAlive() && !this.isTrading() && !this.isChild() && !p_70085_1_.isSneaking()) { if (!this.worldObj.isRemote) { this.setCustomer(p_70085_1_); p_70085_1_.displayGUIMerchant(this, this.getCustomNameTag()); } return true; } else { return super.interact(p_70085_1_); } } protected void entityInit() { super.entityInit(); this.dataWatcher.addObject(16, Integer.valueOf(0)); } /** * (abstract) Protected helper method to write subclass entity data to NBT. */ public void writeEntityToNBT(NBTTagCompound p_70014_1_) { super.writeEntityToNBT(p_70014_1_); p_70014_1_.setInteger("Profession", this.getProfession()); p_70014_1_.setInteger("Riches", this.wealth); if (this.buyingList != null) { p_70014_1_.setTag("Offers", this.buyingList.getRecipiesAsTags()); } } /** * (abstract) Protected helper method to read subclass entity data from NBT. */ public void readEntityFromNBT(NBTTagCompound p_70037_1_) { super.readEntityFromNBT(p_70037_1_); this.setProfession(p_70037_1_.getInteger("Profession")); this.wealth = p_70037_1_.getInteger("Riches"); if (p_70037_1_.hasKey("Offers", 10)) { NBTTagCompound nbttagcompound1 = p_70037_1_.getCompoundTag("Offers"); this.buyingList = new MerchantRecipeList(nbttagcompound1); } } /** * Determines if an entity can be despawned, used on idle far away entities */ protected boolean canDespawn() { return false; } /** * Returns the sound this mob makes while it's alive. */ protected String getLivingSound() { return this.isTrading() ? "mob.villager.haggle" : "mob.villager.idle"; } /** * Returns the sound this mob makes when it is hurt. */ protected String getHurtSound() { return "mob.villager.hit"; } /** * Returns the sound this mob makes on death. */ protected String getDeathSound() { return "mob.villager.death"; } public void setProfession(int p_70938_1_) { this.dataWatcher.updateObject(16, Integer.valueOf(p_70938_1_)); } public int getProfession() { return this.dataWatcher.getWatchableObjectInt(16); } public boolean isMating() { return this.isMating; } public void setMating(boolean p_70947_1_) { this.isMating = p_70947_1_; } public void setPlaying(boolean p_70939_1_) { this.isPlaying = p_70939_1_; } public boolean isPlaying() { return this.isPlaying; } public void setRevengeTarget(EntityLivingBase p_70604_1_) { super.setRevengeTarget(p_70604_1_); if (this.villageObj != null && p_70604_1_ != null) { this.villageObj.addOrRenewAgressor(p_70604_1_); if (p_70604_1_ instanceof EntityPlayer) { byte b0 = -1; if (this.isChild()) { b0 = -3; } this.villageObj.setReputationForPlayer(p_70604_1_.getCommandSenderName(), b0); if (this.isEntityAlive()) { this.worldObj.setEntityState(this, (byte)13); } } } } /** * Called when the mob's health reaches 0. */ public void onDeath(DamageSource p_70645_1_) { if (this.villageObj != null) { Entity entity = p_70645_1_.getEntity(); if (entity != null) { if (entity instanceof EntityPlayer) { this.villageObj.setReputationForPlayer(entity.getCommandSenderName(), -2); } else if (entity instanceof IMob) { this.villageObj.endMatingSeason(); } } else if (entity == null) { EntityPlayer entityplayer = this.worldObj.getClosestPlayerToEntity(this, 16.0D); if (entityplayer != null) { this.villageObj.endMatingSeason(); } } } super.onDeath(p_70645_1_); } public void setCustomer(EntityPlayer p_70932_1_) { this.buyingPlayer = p_70932_1_; } public EntityPlayer getCustomer() { return this.buyingPlayer; } public boolean isTrading() { return this.buyingPlayer != null; } public void useRecipe(MerchantRecipe p_70933_1_) { p_70933_1_.incrementToolUses(); this.livingSoundTime = -this.getTalkInterval(); this.playSound("mob.villager.yes", this.getSoundVolume(), this.getSoundPitch()); if (p_70933_1_.hasSameIDsAs((MerchantRecipe)this.buyingList.get(this.buyingList.size() - 1))) { this.timeUntilReset = 40; this.needsInitilization = true; if (this.buyingPlayer != null) { this.lastBuyingPlayer = this.buyingPlayer.getCommandSenderName(); } else { this.lastBuyingPlayer = null; } } if (p_70933_1_.getItemToBuy().getItem() == Items.emerald) { this.wealth += p_70933_1_.getItemToBuy().stackSize; } } public void func_110297_a_(ItemStack p_110297_1_) { if (!this.worldObj.isRemote && this.livingSoundTime > -this.getTalkInterval() + 20) { this.livingSoundTime = -this.getTalkInterval(); if (p_110297_1_ != null) { this.playSound("mob.villager.yes", this.getSoundVolume(), this.getSoundPitch()); } else { this.playSound("mob.villager.no", this.getSoundVolume(), this.getSoundPitch()); } } } public MerchantRecipeList getRecipes(EntityPlayer p_70934_1_) { if (this.buyingList == null) { this.addDefaultEquipmentAndRecipies(1); } return this.buyingList; } /** * Adjusts the probability of obtaining a given recipe being offered by a villager */ private float adjustProbability(float p_82188_1_) { float f1 = p_82188_1_ + this.field_82191_bN; return f1 > 0.9F ? 0.9F - (f1 - 0.9F) : f1; } /** * based on the villagers profession add items, equipment, and recipies adds par1 random items to the list of things * that the villager wants to buy. (at most 1 of each wanted type is added) */ private void addDefaultEquipmentAndRecipies(int p_70950_1_) { if (this.buyingList != null) { this.field_82191_bN = MathHelper.sqrt_float((float)this.buyingList.size()) * 0.2F; } else { this.field_82191_bN = 0.0F; } MerchantRecipeList merchantrecipelist; merchantrecipelist = new MerchantRecipeList(); VillagerRegistryEd.manageVillagerTrades(merchantrecipelist, this, this.getProfession(), this.rand); int k; label50: switch (this.getProfession()) { case 0: func_146091_a(merchantrecipelist, Items.wheat, this.rand, this.adjustProbability(0.9F)); func_146091_a(merchantrecipelist, Item.getItemFromBlock(Blocks.wool), this.rand, this.adjustProbability(0.5F)); func_146091_a(merchantrecipelist, Items.chicken, this.rand, this.adjustProbability(0.5F)); func_146091_a(merchantrecipelist, Items.cooked_fished, this.rand, this.adjustProbability(0.4F)); func_146089_b(merchantrecipelist, Items.bread, this.rand, this.adjustProbability(0.9F)); func_146089_b(merchantrecipelist, Items.melon, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Items.apple, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Items.cookie, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Items.shears, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Items.flint_and_steel, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Items.cooked_chicken, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Items.arrow, this.rand, this.adjustProbability(0.5F)); if (this.rand.nextFloat() < this.adjustProbability(0.5F)) { merchantrecipelist.add(new MerchantRecipe(new ItemStack(Blocks.gravel, 10), new ItemStack(Items.emerald), new ItemStack(Items.flint, 4 + this.rand.nextInt(2), 0))); } break; case 1: func_146091_a(merchantrecipelist, Items.paper, this.rand, this.adjustProbability(0.8F)); func_146091_a(merchantrecipelist, Items.book, this.rand, this.adjustProbability(0.8F)); func_146091_a(merchantrecipelist, Items.written_book, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Item.getItemFromBlock(Blocks.bookshelf), this.rand, this.adjustProbability(0.8F)); func_146089_b(merchantrecipelist, Item.getItemFromBlock(Blocks.glass), this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.compass, this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.clock, this.rand, this.adjustProbability(0.2F)); if (this.rand.nextFloat() < this.adjustProbability(0.07F)) { Enchantment enchantment = Enchantment.enchantmentsBookList[this.rand.nextInt(Enchantment.enchantmentsBookList.length)]; int i1 = MathHelper.getRandomIntegerInRange(this.rand, enchantment.getMinLevel(), enchantment.getMaxLevel()); ItemStack itemstack = Items.enchanted_book.getEnchantedItemStack(new EnchantmentData(enchantment, i1)); k = 2 + this.rand.nextInt(5 + i1 * 10) + 3 * i1; merchantrecipelist.add(new MerchantRecipe(new ItemStack(Items.book), new ItemStack(Items.emerald, k), itemstack)); } break; case 2: func_146089_b(merchantrecipelist, Items.ender_eye, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Items.experience_bottle, this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.redstone, this.rand, this.adjustProbability(0.4F)); func_146089_b(merchantrecipelist, Item.getItemFromBlock(Blocks.glowstone), this.rand, this.adjustProbability(0.3F)); Item[] aitem = new Item[] {Items.iron_sword, Items.diamond_sword, Items.iron_chestplate, Items.diamond_chestplate, Items.iron_axe, Items.diamond_axe, Items.iron_pickaxe, Items.diamond_pickaxe}; Item[] aitem1 = aitem; int j = aitem.length; k = 0; while (true) { if (k >= j) { break label50; } Item item = aitem1[k]; if (this.rand.nextFloat() < this.adjustProbability(0.05F)) { merchantrecipelist.add(new MerchantRecipe(new ItemStack(item, 1, 0), new ItemStack(Items.emerald, 2 + this.rand.nextInt(3), 0), EnchantmentHelper.addRandomEnchantment(this.rand, new ItemStack(item, 1, 0), 5 + this.rand.nextInt(15)))); } ++k; } case 3: func_146091_a(merchantrecipelist, Items.coal, this.rand, this.adjustProbability(0.7F)); func_146091_a(merchantrecipelist, Items.iron_ingot, this.rand, this.adjustProbability(0.5F)); func_146091_a(merchantrecipelist, Items.gold_ingot, this.rand, this.adjustProbability(0.5F)); func_146091_a(merchantrecipelist, Items.diamond, this.rand, this.adjustProbability(0.5F)); func_146089_b(merchantrecipelist, Items.iron_sword, this.rand, this.adjustProbability(0.5F)); func_146089_b(merchantrecipelist, Items.diamond_sword, this.rand, this.adjustProbability(0.5F)); func_146089_b(merchantrecipelist, Items.iron_axe, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Items.diamond_axe, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Items.iron_pickaxe, this.rand, this.adjustProbability(0.5F)); func_146089_b(merchantrecipelist, Items.diamond_pickaxe, this.rand, this.adjustProbability(0.5F)); func_146089_b(merchantrecipelist, Items.iron_shovel, this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.diamond_shovel, this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.iron_hoe, this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.diamond_hoe, this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.iron_boots, this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.diamond_boots, this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.iron_helmet, this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.diamond_helmet, this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.iron_chestplate, this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.diamond_chestplate, this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.iron_leggings, this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.diamond_leggings, this.rand, this.adjustProbability(0.2F)); func_146089_b(merchantrecipelist, Items.chainmail_boots, this.rand, this.adjustProbability(0.1F)); func_146089_b(merchantrecipelist, Items.chainmail_helmet, this.rand, this.adjustProbability(0.1F)); func_146089_b(merchantrecipelist, Items.chainmail_chestplate, this.rand, this.adjustProbability(0.1F)); func_146089_b(merchantrecipelist, Items.chainmail_leggings, this.rand, this.adjustProbability(0.1F)); break; case 4: func_146091_a(merchantrecipelist, Items.coal, this.rand, this.adjustProbability(0.7F)); func_146091_a(merchantrecipelist, Items.porkchop, this.rand, this.adjustProbability(0.5F)); func_146091_a(merchantrecipelist, Items.beef, this.rand, this.adjustProbability(0.5F)); func_146089_b(merchantrecipelist, Items.saddle, this.rand, this.adjustProbability(0.1F)); func_146089_b(merchantrecipelist, Items.leather_chestplate, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Items.leather_boots, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Items.leather_helmet, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Items.leather_leggings, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Items.cooked_porkchop, this.rand, this.adjustProbability(0.3F)); func_146089_b(merchantrecipelist, Items.cooked_beef, this.rand, this.adjustProbability(0.3F)); } if (merchantrecipelist.isEmpty()) { func_146091_a(merchantrecipelist, Items.gold_ingot, this.rand, 1.0F); } Collections.shuffle(merchantrecipelist); if (this.buyingList == null) { this.buyingList = new MerchantRecipeList(); } for (int l = 0; l < p_70950_1_ && l < merchantrecipelist.size(); ++l) { this.buyingList.addToListWithCheck((MerchantRecipe)merchantrecipelist.get(l)); } } @SideOnly(Side.CLIENT) public void setRecipes(MerchantRecipeList p_70930_1_) {} public static void func_146091_a(MerchantRecipeList p_146091_0_, Item p_146091_1_, Random p_146091_2_, float p_146091_3_) { if (p_146091_2_.nextFloat() < p_146091_3_) { p_146091_0_.add(new MerchantRecipe(func_146088_a(p_146091_1_, p_146091_2_), Items.emerald)); } } private static ItemStack func_146088_a(Item p_146088_0_, Random p_146088_1_) { return new ItemStack(p_146088_0_, func_146092_b(p_146088_0_, p_146088_1_), 0); } private static int func_146092_b(Item p_146092_0_, Random p_146092_1_) { Tuple tuple = (Tuple)villagersSellingList.get(p_146092_0_); return tuple == null ? 1 : (((Integer)tuple.getFirst()).intValue() >= ((Integer)tuple.getSecond()).intValue() ? ((Integer)tuple.getFirst()).intValue() : ((Integer)tuple.getFirst()).intValue() + p_146092_1_.nextInt(((Integer)tuple.getSecond()).intValue() - ((Integer)tuple.getFirst()).intValue())); } public static void func_146089_b(MerchantRecipeList p_146089_0_, Item p_146089_1_, Random p_146089_2_, float p_146089_3_) { if (p_146089_2_.nextFloat() < p_146089_3_) { int i = func_146090_c(p_146089_1_, p_146089_2_); ItemStack itemstack; ItemStack itemstack1; if (i < 0) { itemstack = new ItemStack(Items.emerald, 1, 0); itemstack1 = new ItemStack(p_146089_1_, -i, 0); } else { itemstack = new ItemStack(Items.emerald, i, 0); itemstack1 = new ItemStack(p_146089_1_, 1, 0); } p_146089_0_.add(new MerchantRecipe(itemstack, itemstack1)); } } private static int func_146090_c(Item p_146090_0_, Random p_146090_1_) { Tuple tuple = (Tuple)blacksmithSellingList.get(p_146090_0_); return tuple == null ? 1 : (((Integer)tuple.getFirst()).intValue() >= ((Integer)tuple.getSecond()).intValue() ? ((Integer)tuple.getFirst()).intValue() : ((Integer)tuple.getFirst()).intValue() + p_146090_1_.nextInt(((Integer)tuple.getSecond()).intValue() - ((Integer)tuple.getFirst()).intValue())); } @SideOnly(Side.CLIENT) public void handleHealthUpdate(byte p_70103_1_) { if (p_70103_1_ == 12) { this.generateRandomParticles("heart"); } else if (p_70103_1_ == 13) { this.generateRandomParticles("angryVillager"); } else if (p_70103_1_ == 14) { this.generateRandomParticles("happyVillager"); } else { super.handleHealthUpdate(p_70103_1_); } } public IEntityLivingData onSpawnWithEgg(IEntityLivingData p_110161_1_) { p_110161_1_ = super.onSpawnWithEgg(p_110161_1_); VillagerRegistryEd.applyRandomTrade(this, worldObj.rand); return p_110161_1_; } /** * par1 is the particleName */ @SideOnly(Side.CLIENT) private void generateRandomParticles(String p_70942_1_) { for (int i = 0; i < 5; ++i) { double d0 = this.rand.nextGaussian() * 0.02D; double d1 = this.rand.nextGaussian() * 0.02D; double d2 = this.rand.nextGaussian() * 0.02D; this.worldObj.spawnParticle(p_70942_1_, this.posX + (double)(this.rand.nextFloat() * this.width * 2.0F) - (double)this.width, this.posY + 1.0D + (double)(this.rand.nextFloat() * this.height), this.posZ + (double)(this.rand.nextFloat() * this.width * 2.0F) - (double)this.width, d0, d1, d2); } } public void setLookingForHome() { this.isLookingForHome = true; } public EntityVillager createChild(EntityAgeable p_90011_1_) { EntityVillager entityvillager = new EntityVillager(this.worldObj); entityvillager.onSpawnWithEgg((IEntityLivingData)null); return entityvillager; } public boolean allowLeashing() { return false; } static { villagersSellingList.put(Items.coal, new Tuple(Integer.valueOf(16), Integer.valueOf(24))); villagersSellingList.put(Items.iron_ingot, new Tuple(Integer.valueOf(8), Integer.valueOf(10))); villagersSellingList.put(Items.gold_ingot, new Tuple(Integer.valueOf(8), Integer.valueOf(10))); villagersSellingList.put(Items.diamond, new Tuple(Integer.valueOf(4), Integer.valueOf(6))); villagersSellingList.put(Items.paper, new Tuple(Integer.valueOf(24), Integer.valueOf(36))); villagersSellingList.put(Items.book, new Tuple(Integer.valueOf(11), Integer.valueOf(13))); villagersSellingList.put(Items.written_book, new Tuple(Integer.valueOf(1), Integer.valueOf(1))); villagersSellingList.put(Items.ender_pearl, new Tuple(Integer.valueOf(3), Integer.valueOf(4))); villagersSellingList.put(Items.ender_eye, new Tuple(Integer.valueOf(2), Integer.valueOf(3))); villagersSellingList.put(Items.porkchop, new Tuple(Integer.valueOf(14), Integer.valueOf(18))); villagersSellingList.put(Items.beef, new Tuple(Integer.valueOf(14), Integer.valueOf(18))); villagersSellingList.put(Items.chicken, new Tuple(Integer.valueOf(14), Integer.valueOf(18))); villagersSellingList.put(Items.cooked_fished, new Tuple(Integer.valueOf(9), Integer.valueOf(13))); villagersSellingList.put(Items.wheat_seeds, new Tuple(Integer.valueOf(34), Integer.valueOf(48))); villagersSellingList.put(Items.melon_seeds, new Tuple(Integer.valueOf(30), Integer.valueOf(38))); villagersSellingList.put(Items.pumpkin_seeds, new Tuple(Integer.valueOf(30), Integer.valueOf(38))); villagersSellingList.put(Items.wheat, new Tuple(Integer.valueOf(18), Integer.valueOf(22))); villagersSellingList.put(Item.getItemFromBlock(Blocks.wool), new Tuple(Integer.valueOf(14), Integer.valueOf(22))); villagersSellingList.put(Items.rotten_flesh, new Tuple(Integer.valueOf(36), Integer.valueOf(64))); blacksmithSellingList.put(Items.flint_and_steel, new Tuple(Integer.valueOf(3), Integer.valueOf(4))); blacksmithSellingList.put(Items.shears, new Tuple(Integer.valueOf(3), Integer.valueOf(4))); blacksmithSellingList.put(Items.iron_sword, new Tuple(Integer.valueOf(7), Integer.valueOf(11))); blacksmithSellingList.put(Items.diamond_sword, new Tuple(Integer.valueOf(12), Integer.valueOf(14))); blacksmithSellingList.put(Items.iron_axe, new Tuple(Integer.valueOf(6), Integer.valueOf(8))); blacksmithSellingList.put(Items.diamond_axe, new Tuple(Integer.valueOf(9), Integer.valueOf(12))); blacksmithSellingList.put(Items.iron_pickaxe, new Tuple(Integer.valueOf(7), Integer.valueOf(9))); blacksmithSellingList.put(Items.diamond_pickaxe, new Tuple(Integer.valueOf(10), Integer.valueOf(12))); blacksmithSellingList.put(Items.iron_shovel, new Tuple(Integer.valueOf(4), Integer.valueOf(6))); blacksmithSellingList.put(Items.diamond_shovel, new Tuple(Integer.valueOf(7), Integer.valueOf(8))); blacksmithSellingList.put(Items.iron_hoe, new Tuple(Integer.valueOf(4), Integer.valueOf(6))); blacksmithSellingList.put(Items.diamond_hoe, new Tuple(Integer.valueOf(7), Integer.valueOf(8))); blacksmithSellingList.put(Items.iron_boots, new Tuple(Integer.valueOf(4), Integer.valueOf(6))); blacksmithSellingList.put(Items.diamond_boots, new Tuple(Integer.valueOf(7), Integer.valueOf(8))); blacksmithSellingList.put(Items.iron_helmet, new Tuple(Integer.valueOf(4), Integer.valueOf(6))); blacksmithSellingList.put(Items.diamond_helmet, new Tuple(Integer.valueOf(7), Integer.valueOf(8))); blacksmithSellingList.put(Items.iron_chestplate, new Tuple(Integer.valueOf(10), Integer.valueOf(14))); blacksmithSellingList.put(Items.diamond_chestplate, new Tuple(Integer.valueOf(16), Integer.valueOf(19))); blacksmithSellingList.put(Items.iron_leggings, new Tuple(Integer.valueOf(8), Integer.valueOf(10))); blacksmithSellingList.put(Items.diamond_leggings, new Tuple(Integer.valueOf(11), Integer.valueOf(14))); blacksmithSellingList.put(Items.chainmail_boots, new Tuple(Integer.valueOf(5), Integer.valueOf(7))); blacksmithSellingList.put(Items.chainmail_helmet, new Tuple(Integer.valueOf(5), Integer.valueOf(7))); blacksmithSellingList.put(Items.chainmail_chestplate, new Tuple(Integer.valueOf(11), Integer.valueOf(15))); blacksmithSellingList.put(Items.chainmail_leggings, new Tuple(Integer.valueOf(9), Integer.valueOf(11))); blacksmithSellingList.put(Items.bread, new Tuple(Integer.valueOf(-4), Integer.valueOf(-2))); blacksmithSellingList.put(Items.melon, new Tuple(Integer.valueOf(-8), Integer.valueOf(-4))); blacksmithSellingList.put(Items.apple, new Tuple(Integer.valueOf(-8), Integer.valueOf(-4))); blacksmithSellingList.put(Items.cookie, new Tuple(Integer.valueOf(-10), Integer.valueOf(-7))); blacksmithSellingList.put(Item.getItemFromBlock(Blocks.glass), new Tuple(Integer.valueOf(-5), Integer.valueOf(-3))); blacksmithSellingList.put(Item.getItemFromBlock(Blocks.bookshelf), new Tuple(Integer.valueOf(3), Integer.valueOf(4))); blacksmithSellingList.put(Items.leather_chestplate, new Tuple(Integer.valueOf(4), Integer.valueOf(5))); blacksmithSellingList.put(Items.leather_boots, new Tuple(Integer.valueOf(2), Integer.valueOf(4))); blacksmithSellingList.put(Items.leather_helmet, new Tuple(Integer.valueOf(2), Integer.valueOf(4))); blacksmithSellingList.put(Items.leather_leggings, new Tuple(Integer.valueOf(2), Integer.valueOf(4))); blacksmithSellingList.put(Items.saddle, new Tuple(Integer.valueOf(6), Integer.valueOf(8))); blacksmithSellingList.put(Items.experience_bottle, new Tuple(Integer.valueOf(-4), Integer.valueOf(-1))); blacksmithSellingList.put(Items.redstone, new Tuple(Integer.valueOf(-4), Integer.valueOf(-1))); blacksmithSellingList.put(Items.compass, new Tuple(Integer.valueOf(10), Integer.valueOf(12))); blacksmithSellingList.put(Items.clock, new Tuple(Integer.valueOf(10), Integer.valueOf(12))); blacksmithSellingList.put(Item.getItemFromBlock(Blocks.glowstone), new Tuple(Integer.valueOf(-3), Integer.valueOf(-1))); blacksmithSellingList.put(Items.cooked_porkchop, new Tuple(Integer.valueOf(-7), Integer.valueOf(-5))); blacksmithSellingList.put(Items.cooked_beef, new Tuple(Integer.valueOf(-7), Integer.valueOf(-5))); blacksmithSellingList.put(Items.cooked_chicken, new Tuple(Integer.valueOf(-8), Integer.valueOf(-6))); blacksmithSellingList.put(Items.ender_eye, new Tuple(Integer.valueOf(7), Integer.valueOf(11))); blacksmithSellingList.put(Items.arrow, new Tuple(Integer.valueOf(-12), Integer.valueOf(-8))); } }
:::
La classe principale
:::@EventHandler public void postInit(FMLPostInitializationEvent event) { System.out.println("Postinit"); EntityRegistry.registerGlobalEntityID(Robber.class, "Robber", EntityRegistry.findGlobalUniqueEntityId(), new Color(100, 100, 100).getRGB(), new Color(100, 100, 100).getRGB()); EntityRegistry.registerModEntity(Robber.class, "Robber", 420, this.instance, 40, 2, true); EntityRegistry.registerGlobalEntityID(KingRobber.class, "KingRobber", EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 0, 0).getRGB(), new Color(50, 50, 50).getRGB()); EntityRegistry.registerModEntity(KingRobber.class, "KingRobber", 423, this.instance, 43, 2, true); EntityRegistry.registerModEntity(BomberEntity.class, "BomberEntity", 428, this.instance, 48, 2, true); EntityRegistry.registerGlobalEntityID(Endermire.class, "Endermire", EntityRegistry.findGlobalUniqueEntityId(), new Color(45, 19, 175).getRGB(), new Color(50, 50, 50).getRGB()); EntityRegistry.registerModEntity(Endermire.class, "Endermire", 421, this.instance, 41, 2, true); EntityRegistry.registerModEntity(EntityTntMeeb.class, "EntityTntMeeb", 430, this.instance, 41, 2, true); EntityRegistry.registerGlobalEntityID(Goblin.class, "Goblin", EntityRegistry.findGlobalUniqueEntityId(), new Color(99, 153, 99).getRGB(), new Color(50, 50, 50).getRGB()); EntityRegistry.registerModEntity(Goblin.class, "Goblin", 424, this.instance, 40, 2, true); EntityRegistry.registerGlobalEntityID(GoblinKing.class, "GoblinKing", EntityRegistry.findGlobalUniqueEntityId(), new Color(99, 153, 99).getRGB(), new Color(104, 75, 12).getRGB()); EntityRegistry.registerModEntity(GoblinKing.class, "GoblinKing", 425, this.instance, 44, 2, true); EntityRegistry.registerGlobalEntityID(WolfNether.class, "WolfNether", EntityRegistry.findGlobalUniqueEntityId(), new Color(46,102,1).getRGB(), new Color(46, 19, 28).getRGB()); EntityRegistry.registerModEntity(WolfNether.class, "WolfNether", 426, this.instance, 46, 2, true); EntityRegistry.registerGlobalEntityID(GolemStone.class, "GolemStone", EntityRegistry.findGlobalUniqueEntityId(), new Color(100,100,100).getRGB(), new Color(100, 100, 100).getRGB()); EntityRegistry.registerModEntity(GolemStone.class, "GolemStone", 427, this.instance, 47, 2, true); EntityRegistry.registerGlobalEntityID(KingB.class, "KingB", EntityRegistry.findGlobalUniqueEntityId(), new Color(100,100,100).getRGB(), new Color(100, 100, 100).getRGB()); EntityRegistry.registerModEntity(KingB.class, "KingB", 432, this.instance, 49, 2, true); EntityRegistry.registerGlobalEntityID(KingC.class, "KingC", EntityRegistry.findGlobalUniqueEntityId(), new Color(100,100,100).getRGB(), new Color(100, 100, 100).getRGB()); EntityRegistry.registerModEntity(KingC.class, "KingC", 433, this.instance, 10, 2, true); EntityRegistry.registerGlobalEntityID(KingD.class, "KingD", EntityRegistry.findGlobalUniqueEntityId(), new Color(100,100,100).getRGB(), new Color(100, 100, 100).getRGB()); EntityRegistry.registerModEntity(KingD.class, "KingD", 435, this.instance, 51, 2, true); EntityRegistry.registerGlobalEntityID(KingA.class, "KingA", EntityRegistry.findGlobalUniqueEntityId(), new Color(100,100,100).getRGB(), new Color(100, 100, 100).getRGB()); EntityRegistry.registerModEntity(KingA.class, "KingA", 429, this.instance, 50, 2, true); EntityRegistry.registerGlobalEntityID(KingHeal.class, "KingHeal", EntityRegistry.findGlobalUniqueEntityId(), new Color(100,100,100).getRGB(), new Color(100, 100, 100).getRGB()); EntityRegistry.registerModEntity(KingHeal.class, "KingHeal", 422, this.instance, 45, 2, true); EntityRegistry.registerGlobalEntityID(VillagerShop.class, "VillagerShop", EntityRegistry.findGlobalUniqueEntityId(), new Color(100,100,100).getRGB(), new Color(100, 100, 100).getRGB()); EntityRegistry.registerModEntity(VillagerShop.class, "VillagerShop", 434, this.instance, 52, 2, true); EntityRegistry.addSpawn(Robber.class, 80, 2, 10, EnumCreatureType.monster, biomes); EntityRegistry.addSpawn(Goblin.class, 80, 2, 10, EnumCreatureType.monster, biomes); MinecraftForge.addGrassSeed(new ItemStack(enderdeath.BaiePlantItem), 10); MinecraftForge.addGrassSeed(new ItemStack(enderdeath.BaiePlantFireItem), 10); MinecraftForge.addGrassSeed(new ItemStack(enderdeath.BaiePlantGreenItem), 10); MinecraftForge.addGrassSeed(new ItemStack(enderdeath.BaiePlantItemWater), 10); MinecraftForge.addGrassSeed(new ItemStack(enderdeath.BaiePlantYellowItem), 10); }
:::
Edit:L’erreur
:::14:26:56] [Server thread/INFO]: Saving chunks for level 'New World'/The End [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.lang.NoSuchMethodException: ed.enderdeath.mod.Entity.VillagerShop.<init>(net.minecraft.world.World) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.Class.getConstructor0(Unknown Source) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.Class.getConstructor(Unknown Source) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.entity.EntityList.createEntityByID(EntityList.java:222) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.item.ItemMonsterPlacer.spawnCreature(ItemMonsterPlacer.java:173) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.item.ItemMonsterPlacer.onItemUse(ItemMonsterPlacer.java:79) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:507) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:142) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:422) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [14:35:54] [Server thread/WARN]: Skipping Entity with id 30 [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.lang.NoSuchMethodException: ed.enderdeath.mod.Entity.VillagerShop.<init>(net.minecraft.world.World) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.Class.getConstructor0(Unknown Source) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.Class.getConstructor(Unknown Source) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.entity.EntityList.createEntityByID(EntityList.java:222) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.item.ItemMonsterPlacer.spawnCreature(ItemMonsterPlacer.java:173) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.item.ItemMonsterPlacer.onItemUse(ItemMonsterPlacer.java:79) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:507) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:142) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:422) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [14:35:54] [Server thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [14:35:54] [Server thread/WARN]: Skipping Entity with id 30
:::</init></init>
-
Il manque un constructeur ayant juste world à ton entité.
-
Merci sa marche la prochaine fois je serais plus attentif à la classe principal
Mais existe-il une méthode pour que le joueur ne peut pas tapé le joueur? -
Désactiver le pvp ?
-
Juste pour le mob
en gros les joueur ne pourront pas tapé l’entity en question?Ou il à moyen de lui donné des effet de potion?
-
Si tu souhaites que les joueurs ne puissent pas tapper l’entity, alors tu check dans la method attackEntityFrom si l’entity du damagesource est EntityPlayer et si c’est le cas alors tu return false.
Si tu souhaites donner des effets de potion, pas compliqué addPotionEffect à l’endroit qui t’intéresse.
-
Sa marche mrc
-
Résolu ?
-
Oui je met