Résolu Créations de plantations.
-
Bonjour donc voilà j’ai voulu créer une plantation pour ce faire je me suis aidé du tutoriel en 1.6 et j’ai un souci qui est que quand je veux planter ma graine j’ai un jolie crash, enfin deux qui sont à 2 secondes d’écart, les voici:
:::
–-- Minecraft Crash Report ----
// Don’t do that.Time: 26/03/15 19:37
Description: Ticking memory connectionjava.lang.NullPointerException: Ticking memory connection
at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653)
at net.minecraft.world.World.setBlock(World.java:519)
at net.minecraft.world.World.setBlock(World.java:681)
at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:41)
at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:507)
at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:142)
at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:422)
at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122)
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)A detailed walkthrough of the error, its code path and all known details is as follows:
– Head –
Stacktrace:
at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653)
at net.minecraft.world.World.setBlock(World.java:519)
at net.minecraft.world.World.setBlock(World.java:681)
at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:41)
at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:507)
at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:142)
at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:422)
at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122)
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)– Ticking connection –
Details:
Connection: net.minecraft.network.NetworkManager@54bace80
Stacktrace:
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)– System Details –
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_40, Oracle Corporation
Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 697217560 bytes (664 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.85.1291 Minecraft Forge 10.13.2.1291 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.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
exodiamod{1.0.0} [Mod Exodia] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP[‘Player45’/400, l=‘New World’, x=144,40, y=74,00, z=187,70]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to ‘fml,forge’
:::et:
:::
–-- Minecraft Crash Report ----
// Oh - I know what I did wrong!Time: 26/03/15 19:37
Description: Unexpected errorjava.lang.NullPointerException: Unexpected error
at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653)
at net.minecraft.world.World.setBlock(World.java:519)
at net.minecraft.world.World.setBlock(World.java:681)
at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:41)
at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:143)
at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:403)
at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1518)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:2033)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1028)
at net.minecraft.client.Minecraft.run(Minecraft.java:951)
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.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653)
at net.minecraft.world.World.setBlock(World.java:519)
at net.minecraft.world.World.setBlock(World.java:681)
at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:41)
at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:143)
at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:403)
at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1518)– Affected level –
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP[‘Player45’/400, l=‘MpServer’, x=144,40, y=75,62, z=187,70]]
Chunk stats: MultiplayerChunkCache: 577, 577
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options:
Level spawn location: World: (148,64,180), Chunk: (at 4,4,4 in 9,11; contains blocks 144,0,176 to 159,255,191), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 3348 game time, 3348 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: 106 total; [EntityCow[‘Vache’/256, l=‘MpServer’, x=199,88, y=68,00, z=173,06], EntityCow[‘Vache’/257, l=‘MpServer’, x=192,59, y=69,00, z=176,38], EntityZombie[‘Zombie’/258, l=‘MpServer’, x=201,44, y=20,00, z=247,56], EntitySkeleton[‘Squelette’/259, l=‘MpServer’, x=199,88, y=20,00, z=245,50], EntitySquid[‘Poulpe’/260, l=‘MpServer’, x=199,63, y=61,00, z=243,47], EntitySquid[‘Poulpe’/261, l=‘MpServer’, x=196,44, y=60,28, z=239,50], EntitySquid[‘Poulpe’/262, l=‘MpServer’, x=203,81, y=61,00, z=246,06], EntitySquid[‘Poulpe’/263, l=‘MpServer’, x=203,09, y=61,00, z=242,38], EntityZombie[‘Zombie’/267, l=‘MpServer’, x=213,47, y=35,00, z=108,06], EntityZombie[‘Zombie’/271, l=‘MpServer’, x=214,69, y=31,00, z=124,31], EntityZombie[‘Zombie’/272, l=‘MpServer’, x=214,50, y=22,00, z=124,66], EntityCreeper[‘Creeper’/273, l=‘MpServer’, x=216,50, y=19,00, z=115,50], EntityCreeper[‘Creeper’/274, l=‘MpServer’, x=218,13, y=18,00, z=109,84], EntityEnderman[‘Enderman’/275, l=‘MpServer’, x=210,50, y=19,00, z=118,50], EntityBat[‘Chauve-souris’/276, l=‘MpServer’, x=211,00, y=23,92, z=134,50], EntityBat[‘Chauve-souris’/277, l=‘MpServer’, x=220,88, y=37,10, z=112,25], EntityCreeper[‘Creeper’/278, l=‘MpServer’, x=223,94, y=44,00, z=133,50], EntitySkeleton[‘Squelette’/279, l=‘MpServer’, x=217,09, y=20,00, z=174,50], EntityBat[‘Chauve-souris’/288, l=‘MpServer’, x=224,56, y=17,10, z=161,25], EntityBat[‘Chauve-souris’/82, l=‘MpServer’, x=102,22, y=34,23, z=144,44], EntitySheep[‘Mouton’/83, l=‘MpServer’, x=77,47, y=75,00, z=189,66], EntitySheep[‘Mouton’/84, l=‘MpServer’, x=72,34, y=76,00, z=192,47], EntityCreeper[‘Creeper’/92, l=‘MpServer’, x=80,50, y=28,00, z=127,50], EntitySpider[‘Araignée’/93, l=‘MpServer’, x=89,41, y=33,00, z=137,50], EntitySkeleton[‘Squelette’/94, l=‘MpServer’, x=88,06, y=33,00, z=138,63], EntityCreeper[‘Creeper’/95, l=‘MpServer’, x=88,50, y=33,00, z=128,50], EntityZombie[‘Zombie’/96, l=‘MpServer’, x=93,56, y=29,00, z=159,00], EntityCreeper[‘Creeper’/97, l=‘MpServer’, x=83,53, y=43,00, z=148,06], EntityCreeper[‘Creeper’/98, l=‘MpServer’, x=81,75, y=43,00, z=158,06], EntitySpider[‘Araignée’/99, l=‘MpServer’, x=81,28, y=41,00, z=146,72], EntityBat[‘Chauve-souris’/100, l=‘MpServer’, x=76,47, y=46,20, z=144,03], EntitySheep[‘Mouton’/101, l=‘MpServer’, x=80,63, y=75,00, z=191,16], EntitySheep[‘Mouton’/102, l=‘MpServer’, x=86,03, y=75,00, z=193,94], EntityBat[‘Chauve-souris’/614, l=‘MpServer’, x=157,70, y=25,85, z=161,38], EntityZombie[‘Zombie’/103, l=‘MpServer’, x=93,50, y=25,00, z=220,50], EntityBat[‘Chauve-souris’/615, l=‘MpServer’, x=154,49, y=25,72, z=162,53], EntitySheep[‘Mouton’/104, l=‘MpServer’, x=80,81, y=79,00, z=236,84], EntityBat[‘Chauve-souris’/616, l=‘MpServer’, x=153,46, y=25,18, z=161,51], EntitySheep[‘Mouton’/105, l=‘MpServer’, x=89,47, y=80,00, z=227,78], EntitySheep[‘Mouton’/106, l=‘MpServer’, x=93,66, y=83,00, z=225,53], EntitySheep[‘Mouton’/107, l=‘MpServer’, x=94,81, y=80,00, z=236,28], EntitySkeleton[‘Squelette’/108, l=‘MpServer’, x=88,09, y=22,00, z=257,59], EntityZombie[‘Zombie’/122, l=‘MpServer’, x=99,59, y=27,77, z=136,31], EntityCreeper[‘Creeper’/123, l=‘MpServer’, x=101,50, y=27,00, z=146,63], EntityZombie[‘Zombie’/124, l=‘MpServer’, x=118,06, y=27,00, z=151,50], EntitySkeleton[‘Squelette’/125, l=‘MpServer’, x=104,44, y=33,00, z=151,16], EntityZombie[‘Zombie’/126, l=‘MpServer’, x=105,70, y=27,27, z=167,70], EntityCreeper[‘Creeper’/127, l=‘MpServer’, x=103,84, y=30,00, z=172,22], EntityChicken[‘Poule’/128, l=‘MpServer’, x=111,59, y=70,00, z=171,63], EntityCreeper[‘Creeper’/129, l=‘MpServer’, x=99,38, y=21,00, z=182,06], EntitySheep[‘Mouton’/130, l=‘MpServer’, x=103,06, y=106,00, z=210,94], EntitySheep[‘Mouton’/131, l=‘MpServer’, x=109,69, y=103,00, z=216,88], EntitySquid[‘Poulpe’/132, l=‘MpServer’, x=98,25, y=53,00, z=235,50], EntitySpider[‘Araignée’/133, l=‘MpServer’, x=109,53, y=42,00, z=242,19], EntityClientPlayerMP[‘Player45’/400, l=‘MpServer’, x=144,40, y=75,62, z=187,70], EntitySkeleton[‘Squelette’/150, l=‘MpServer’, x=127,50, y=13,00, z=151,72], EntityBat[‘Chauve-souris’/151, l=‘MpServer’, x=114,47, y=31,10, z=151,50], EntityChicken[‘Poule’/153, l=‘MpServer’, x=113,53, y=71,00, z=179,53], EntitySheep[‘Mouton’/154, l=‘MpServer’, x=113,16, y=104,00, z=212,56], EntitySheep[‘Mouton’/155, l=‘MpServer’, x=121,88, y=104,00, z=212,59], EntityCreeper[‘Creeper’/168, l=‘MpServer’, x=139,69, y=33,00, z=115,31], EntityCreeper[‘Creeper’/169, l=‘MpServer’, x=138,66, y=32,00, z=115,56], EntitySpider[‘Araignée’/170, l=‘MpServer’, x=137,00, y=32,00, z=120,94], EntitySpider[‘Araignée’/171, l=‘MpServer’, x=138,66, y=32,00, z=124,28], EntityCreeper[‘Creeper’/172, l=‘MpServer’, x=141,06, y=37,00, z=143,44], EntityZombie[‘Zombie’/173, l=‘MpServer’, x=137,30, y=33,11, z=133,70], EntitySkeleton[‘Squelette’/174, l=‘MpServer’, x=136,50, y=14,00, z=157,06], EntitySkeleton[‘Squelette’/175, l=‘MpServer’, x=137,50, y=15,00, z=158,13], EntitySkeleton[‘Squelette’/176, l=‘MpServer’, x=129,50, y=33,00, z=153,50], EntityCreeper[‘Creeper’/177, l=‘MpServer’, x=137,00, y=39,00, z=153,41], EntityChicken[‘Poule’/185, l=‘MpServer’, x=149,38, y=70,00, z=163,47], EntityChicken[‘Poule’/186, l=‘MpServer’, x=143,59, y=72,00, z=182,81], EntitySheep[‘Mouton’/187, l=‘MpServer’, x=158,09, y=68,00, z=186,09], EntityZombie[‘Zombie’/188, l=‘MpServer’, x=149,09, y=34,00, z=259,56], EntityBat[‘Chauve-souris’/189, l=‘MpServer’, x=149,50, y=36,89, z=260,66], EntityEnderman[‘Enderman’/202, l=‘MpServer’, x=146,66, y=24,00, z=162,22], EntitySheep[‘Mouton’/203, l=‘MpServer’, x=159,88, y=64,00, z=169,44], EntitySheep[‘Mouton’/204, l=‘MpServer’, x=165,22, y=64,00, z=180,56], EntitySheep[‘Mouton’/205, l=‘MpServer’, x=158,34, y=69,00, z=202,44], EntitySquid[‘Poulpe’/206, l=‘MpServer’, x=172,50, y=61,00, z=215,50], EntitySquid[‘Poulpe’/207, l=‘MpServer’, x=168,66, y=62,00, z=228,44], EntitySkeleton[‘Squelette’/208, l=‘MpServer’, x=168,50, y=36,00, z=253,50], EntitySheep[‘Mouton’/209, l=‘MpServer’, x=162,22, y=63,00, z=251,16], EntitySheep[‘Mouton’/210, l=‘MpServer’, x=168,50, y=71,00, z=262,09], EntitySheep[‘Mouton’/211, l=‘MpServer’, x=166,28, y=69,00, z=252,50], EntitySheep[‘Mouton’/212, l=‘MpServer’, x=160,22, y=64,00, z=253,50], EntityZombie[‘Zombie’/213, l=‘MpServer’, x=166,94, y=29,00, z=256,50], EntityZombie[‘Zombie’/235, l=‘MpServer’, x=178,50, y=14,00, z=108,50], EntityZombie[‘Zombie’/237, l=‘MpServer’, x=181,50, y=23,00, z=108,50], EntitySkeleton[‘Squelette’/238, l=‘MpServer’, x=191,00, y=46,00, z=140,53], EntitySheep[‘Mouton’/239, l=‘MpServer’, x=181,06, y=68,00, z=157,06], EntitySheep[‘Mouton’/240, l=‘MpServer’, x=191,50, y=72,00, z=146,34], EntitySpider[‘Araignée’/241, l=‘MpServer’, x=182,72, y=20,00, z=245,72], EntityZombie[‘Zombie’/242, l=‘MpServer’, x=184,41, y=24,00, z=256,13], EntityCreeper[‘Creeper’/243, l=‘MpServer’, x=187,50, y=17,00, z=249,50], EntitySkeleton[‘Squelette’/244, l=‘MpServer’, x=177,50, y=17,00, z=249,50], EntitySquid[‘Poulpe’/245, l=‘MpServer’, x=185,97, y=60,69, z=244,50], EntityCreeper[‘Creeper’/247, l=‘MpServer’, x=193,50, y=23,00, z=116,50], EntityBat[‘Chauve-souris’/248, l=‘MpServer’, x=197,53, y=47,10, z=122,25], EntityBat[‘Chauve-souris’/249, l=‘MpServer’, x=208,34, y=52,39, z=117,91], EntityZombie[‘Zombie’/250, l=‘MpServer’, x=194,31, y=46,00, z=143,16], EntitySheep[‘Mouton’/251, l=‘MpServer’, x=206,44, y=65,00, z=153,66], EntitySpider[‘Araignée’/252, l=‘MpServer’, x=204,72, y=18,00, z=171,50], EntitySheep[‘Mouton’/253, l=‘MpServer’, x=192,50, y=70,00, z=162,50], EntityCow[‘Vache’/254, l=‘MpServer’, x=200,47, y=65,00, z=178,69], EntityCow[‘Vache’/255, l=‘MpServer’, x=201,06, y=67,00, z=174,91]]
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:2555)
at net.minecraft.client.Minecraft.run(Minecraft.java:980)
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 (amd64) version 6.3
Java Version: 1.8.0_40, Oracle Corporation
Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 697217560 bytes (664 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.85.1291 Minecraft Forge 10.13.2.1291 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.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
exodiamod{1.0.0} [Mod Exodia] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: Intel HD Graphics 4000 GL version 4.0.0 - Build 10.18.10.3958, Intel
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: Français (France)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
:::Mes classes:
import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemSeeds; import com.google.degraduck.exodiamod.proxy.CommonProxy; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = "exodiamod", name = "Mod Exodia", version = "1.0.0") public class ExodiaMod { @Instance("exodiamod") public static ExodiaMod instance; public static final String MODID = "exodiamod"; @SidedProxy(clientSide = "com.google.degraduck.exodiamod.proxy.ClientProxy", serverSide = "com.google.degraduck.exodiamod.proxy.CommonProxy") public static CommonProxy proxy; public static Item exodium_ingot, exodium_seed, exodium_nugget; public static Block exodium_block, exodium_ore, exodium_culture; public static CreativeTabs exodiaCreativeTabs = new ExodiaCreativeTabs("exodiacreativetabs"); WorldGeneration worldgeneration = new WorldGeneration(); @EventHandler public void preInit(FMLPreInitializationEvent event) { //génération du minerai GameRegistry.registerWorldGenerator(worldgeneration, 0); //items exodium_ingot = new Exodium_ingot().setUnlocalizedName("exodium_ingot").setTextureName(ExodiaMod.MODID + ":exodium_ingot").setCreativeTab(this.exodiaCreativeTabs); exodium_nugget = new Exodium_nugget().setUnlocalizedName("exodium_nugget").setTextureName(ExodiaMod.MODID + ":exodium_nugget").setCreativeTab(this.exodiaCreativeTabs); exodium_seed = new ItemSeeds(exodium_culture, Blocks.farmland).setUnlocalizedName("exodium_seed").setTextureName(ExodiaMod.MODID + ":exodium_seed").setCreativeTab(this.exodiaCreativeTabs); GameRegistry.registerItem(exodium_ingot, "exodium_ingot"); GameRegistry.registerItem(exodium_seed, "exodium_seed"); GameRegistry.registerItem(exodium_nugget, "exodium_nugget"); //blocks exodium_block = new Exodium_block(Material.rock).setBlockName("exodium_block").setBlockTextureName("ExodiaMod:exodium_block").setCreativeTab(this.exodiaCreativeTabs); exodium_ore = new Exodium_ore(Material.rock).setBlockName("exodium_ore").setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypeStone).setBlockTextureName("ExodiaMod:exodium_ore").setCreativeTab(this.exodiaCreativeTabs); exodium_culture = new Exodium_culture(2300).setBlockName("exodium_culture").setCreativeTab(this.exodiaCreativeTabs); GameRegistry.registerBlock(exodium_block, "exodium_block"); GameRegistry.registerBlock(exodium_ore, "exodium_ore"); GameRegistry.registerBlock(exodium_culture, "exodium_culture"); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
et celle du block:
import net.minecraft.block.Block; import net.minecraft.block.BlockCarrot; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.Item; import net.minecraft.util.IIcon; public class Exodium_culture extends BlockCarrot { public static String[] type = new String[]{"exodium_stage_0", "exodium_stage_1", "exodium_stage_2", "exodium_stage_3"}; private IIcon[] IconArray; public Exodium_culture (int id) { super(); } public IIcon getIcon(int side, int metadata) { return (IIcon) (metadata < type.length && metadata >= 0 ? IconArray[metadata] : IconArray[0]); } public void registerBlockIcons(IIconRegister iconregister) { IconArray = new IIcon[type.length]; for(int i = 0; i < type.length; i++) { IconArray* = (IIcon) iconregister.registerIcon("xdoh:" + type*); } } protected Item getSeedItem() { return ExodiaMod.exodium_seed; } protected Item getCropItem() { return ExodiaMod.exodium_nugget; } public int damageDropped(int metadata) { return metadata; } }
-
Je ne comprends pas ça : ```java
new Exodium_culture(2300) -
Le bloc doit être initialisé avant l’item, sinon ça cause un NPE.
Et le 2300 ne sert à rien en 1.7 comme l’a dit SCAREX. -
Je viens de le supprimer je me suis basé d’un tuto 1.6 voilà pourquoi j’avais cela.
EDIT: Effectivement juste un problème d’initialisation. Mais maintenant il ne m’affiche pas la texture de mes différents stages. -
Effectivement juste un problème d’initialisation. Mais maintenant il ne m’affiche pas la texture de mes différents stages.
-
Personne?
-
C’est à dire ? Texture non trouvé ou texture de l’étape 1 tout le temps ?
-
Enfaite j’ai toujours la texture de l’étape 1 et ma poudre d’os ne semble pas fonctionner, de plus quand je casse en avant la pousse total au lieu de recevoir une graine de mon mod je reçois une carotte.
EDIT: j’ai toujours la texture de l’étape 1, je met une poudre d’os et elle fonctionne j’ai les particules et ensuite quand je la casse le reçois plusieurs carottes.
EDIT 2: Pour les drops j’ai réussi.
-
Quelqu’un?
-
Mets un @Override au dessus de la fonction
public IIcon getIcon(int side, int metadata)
Vérifie que la plante pousse bien, etc … -
Désolé de ma réponse tardive mais j’ai eu des soucis IRL. Donc avec ou sans le @Override cela ne change rien, ma plante pousse bien mais l’image du stage ne change pas, quand je la fait pousser avec de la poudre d’os de temps en temps elle prend la texture d’un des stage au hasard(exemple: je met une poudre elle passe a la texture du stage 4 j’en remet une elle repasse à la texture du stage 1). Je comprends pas d’où cela peut venir.
-
@‘Degraduck’:
Désolé de ma réponse tardive mais j’ai eu des soucis IRL. Donc avec ou sans le @Override cela ne change rien, ma plante pousse bien mais l’image du stage ne change pas, quand je la fait pousser avec de la poudre d’os de temps en temps elle prend la texture d’un des stage au hasard(exemple: je met une poudre elle passe a la texture du stage 4 j’en remet une elle repasse à la texture du stage 1). Je comprends pas d’où cela peut venir.
Repost tes classes entières après les mises à jour que tu as fait aux classes.
-
Voilà:
@Mod(modid = "exodiamod", name = "Mod Exodia", version = "1.0.0") public class ExodiaMod { @Instance("exodiamod") public static ExodiaMod instance; public static final String MODID = "exodiamod"; @SidedProxy(clientSide = "com.google.degraduck.exodiamod.proxy.ClientProxy", serverSide = "com.google.degraduck.exodiamod.proxy.CommonProxy") public static CommonProxy proxy; public static Item exodium_ingot, exodium_seed, exodium_nugget; public static Item exodia_helmet, exodia_chestplate, exodia_leggings, exodia_boots, exodia_sword; public static Block exodium_block, exodium_ore, exodium_culture; //creative tab public static CreativeTabs exodiaCreativeTabs = new ExodiaCreativeTabs("exodiacreativetabs"); //génération de minerai WorldGeneration worldgeneration = new WorldGeneration(); //materiel de l'armure public static ArmorMaterial armorExodia = EnumHelper.addArmorMaterial("armorExodia", 33, new int[] {3, 8, 6, 3}, 10); //material de l'arme public static ToolMaterial toolExodia = EnumHelper.addToolMaterial("toolExodia", 3, 1999, 12.0F, 3.5F, 10); @EventHandler public void preInit(FMLPreInitializationEvent event) { //génération du minerai GameRegistry.registerWorldGenerator(worldgeneration, 0); //blocks exodium_block = new Exodium_block(Material.rock).setBlockName("exodium_block").setBlockTextureName("ExodiaMod:exodium_block").setCreativeTab(this.exodiaCreativeTabs); exodium_ore = new Exodium_ore(Material.rock) .setHardness(4.0F).setBlockName("exodium_ore").setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypeStone).setBlockTextureName("ExodiaMod:exodium_ore").setCreativeTab(this.exodiaCreativeTabs); exodium_culture = new Exodium_culture().setBlockName("exodium_culture").setCreativeTab(this.exodiaCreativeTabs); GameRegistry.registerBlock(exodium_block, "exodium_block"); GameRegistry.registerBlock(exodium_ore, "exodium_ore"); GameRegistry.registerBlock(exodium_culture, "exodium_culture"); //items exodium_ingot = new Exodium_ingot().setUnlocalizedName("exodium_ingot").setTextureName(ExodiaMod.MODID + ":exodium_ingot").setCreativeTab(this.exodiaCreativeTabs); exodium_nugget = new Exodium_nugget().setUnlocalizedName("exodium_nugget").setTextureName(ExodiaMod.MODID + ":exodium_nugget").setCreativeTab(this.exodiaCreativeTabs); exodium_seed = new ItemSeeds(exodium_culture, Blocks.farmland).setUnlocalizedName("exodium_seed").setTextureName(ExodiaMod.MODID + ":exodium_seed").setCreativeTab(this.exodiaCreativeTabs); GameRegistry.registerItem(exodium_ingot, "exodium_ingot"); GameRegistry.registerItem(exodium_seed, "exodium_seed"); GameRegistry.registerItem(exodium_nugget, "exodium_nugget"); //armure exodia_helmet = new ItemExodiaArmor(armorExodia, 0).setUnlocalizedName("exodia_helmet").setTextureName(MODID + ":exodia_helmet").setCreativeTab(this.exodiaCreativeTabs); exodia_chestplate = new ItemExodiaArmor(armorExodia, 1).setUnlocalizedName("exodia_chestplate").setTextureName(MODID + ":exodia_chestplate").setCreativeTab(this.exodiaCreativeTabs); exodia_leggings = new ItemExodiaArmor(armorExodia, 2).setUnlocalizedName("exodia_leggings").setTextureName(MODID + ":exodia_leggings").setCreativeTab(this.exodiaCreativeTabs); exodia_boots = new ItemExodiaArmor(armorExodia, 3).setUnlocalizedName("exodia_boots").setTextureName(MODID + ":exodia_boots").setCreativeTab(this.exodiaCreativeTabs); GameRegistry.registerItem(exodia_helmet, "exodia_helmet"); GameRegistry.registerItem(exodia_chestplate, "exodia_chestplate"); GameRegistry.registerItem(exodia_leggings, "exodia_leggings"); GameRegistry.registerItem(exodia_boots, "exodia_boots"); //épée exodia_sword = new ItemExodiaSword(toolExodia).setUnlocalizedName("exodia_sword").setTextureName(MODID + "exodia_sword").setCreativeTab(this.exodiaCreativeTabs); GameRegistry.registerItem(exodia_sword, "exodia_sword"); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
public class Exodium_culture extends BlockCarrot { public static String[] type = new String[]{"exodium_stage_0", "exodium_stage_1", "exodium_stage_2", "exodium_stage_3"}; private IIcon[] IconArray; public Exodium_culture () { super(); } @Override public IIcon getIcon(int side, int metadata) { return (IIcon) (metadata < type.length && metadata >= 0 ? IconArray[metadata] : IconArray[0]); } public void registerBlockIcons(IIconRegister iconregister) { IconArray = new IIcon[type.length]; for(int i = 0; i < type.length; i++) { IconArray* = (IIcon) iconregister.registerIcon("ExodiaMod:" + type*); } } protected Item func_149866_i() { return ExodiaMod.exodium_seed; } protected Item func_149865_P() { return ExodiaMod.exodium_nugget; } public int damageDropped(int metadata) { return metadata; } }
-
Ce code marche :
package fr.scarex.st17.block; import net.minecraft.block.BlockCrops; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.util.ChatComponentText; import net.minecraft.util.IIcon; import net.minecraft.world.World; import cpw.mods.fml.common.registry.GameRegistry; import fr.scarex.st17.ST17; import fr.scarex.st17.item.ST17Items; public class BlackCarrot extends BlockCrops { public static final String name = "black_carrot"; private IIcon[] textures; public BlackCarrot() { setBlockName(name); setBlockTextureName(ST17.MODID + ":" + name); setCreativeTab(CreativeTabs.tabBlock); GameRegistry.registerBlock(this, name); } @Override public IIcon getIcon(int side, int meta) { if (meta < 7) { if (meta == 6) { meta = 5; } return this.textures[meta >> 1]; } else { return this.textures[3]; } } @Override protected Item func_149866_i() { //ici c'est l'item pour les graines (ex : wheat_seeds) return Items.diamond; } @Override protected Item func_149865_P() { //et ici l'Item droppé (ex : wheat) return Items.apple; } @Override public void registerBlockIcons(IIconRegister p_149651_1_) { this.textures = new IIcon[4]; for (int i = 0; i < this.textures.length; ++i) { this.textures* = p_149651_1_.registerIcon(ST17.MODID + ":" + this.getTextureName() + "_stage_" + i); } } @Override //Juste pour debuger public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int meta, float p_149727_7_, float p_149727_8_, float p_149727_9_) { if (!world.isRemote) { player.addChatMessage(new ChatComponentText("Metadata : " + world.getBlockMetadata(x, y, z))); player.addChatMessage(new ChatComponentText("Texture : " + this.getIcon(0, world.getBlockMetadata(x, y, z)))); } return true; } }
-
D’accord et bien je vais tout simplement extends ma classe en blockcrops au lieu de blockcarrot, m’aider de ton code et je repasse vous voir pour donner des nouvelles merci bien.
EDIT: je n’arrives toujours pas à avoir mes textures, voici mon nouveau code:
(mes textures ont le nom: Exodium_culture_stage_0/1/2… et sont dans assets/exodiamod/textures/block)package com.google.degraduck.exodiamod.common; import net.minecraft.block.BlockCrops; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.util.ChatComponentText; import net.minecraft.util.IIcon; import net.minecraft.world.World; import cpw.mods.fml.common.registry.GameRegistry; public class Exodium_culture extends BlockCrops { public static final String name = "Exodium_culture"; private IIcon[] textures; public Exodium_culture() { setBlockName(name); setBlockTextureName(ExodiaMod.MODID + ":" + name); GameRegistry.registerBlock(this, name); } @Override public IIcon getIcon(int side, int meta) { if (meta < 7) { if (meta == 6) { meta = 5; } return this.textures[meta >> 1]; } else { return this.textures[3]; } } @Override protected Item func_149866_i() { //ici c'est l'item pour les graines (ex : wheat_seeds) return ExodiaMod.exodium_seed; } @Override protected Item func_149865_P() { //et ici l'Item droppé (ex : wheat) return ExodiaMod.exodium_nugget; } @Override public void registerBlockIcons(IIconRegister p_149651_1_) { this.textures = new IIcon[4]; for (int i = 0; i < this.textures.length; ++i) { this.textures* = p_149651_1_.registerIcon(ExodiaMod.MODID + ":" + this.getTextureName() + "_stage_" + i); } } @Override //Juste pour debuger public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int meta, float p_149727_7_, float p_149727_8_, float p_149727_9_) { if (!world.isRemote) { player.addChatMessage(new ChatComponentText("Metadata : " + world.getBlockMetadata(x, y, z))); player.addChatMessage(new ChatComponentText("Texture : " + this.getIcon(0, world.getBlockMetadata(x, y, z)))); } return true; } }
-
@‘Degraduck’:
D’accord et bien je vais tout simplement extends ma classe en blockcrops au lieu de blockcarrot, m’aider de ton code et je repasse vous voir pour donner des nouvelles merci bien.
EDIT: je n’arrives toujours pas à avoir mes textures, voici mon nouveau code:
(mes textures ont le nom: Exodium_culture_stage_0/1/2… et sont dans assets/exodiamod/textures/block)package com.google.degraduck.exodiamod.common; import net.minecraft.block.BlockCrops; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.util.ChatComponentText; import net.minecraft.util.IIcon; import net.minecraft.world.World; import cpw.mods.fml.common.registry.GameRegistry; public class Exodium_culture extends BlockCrops { public static final String name = "Exodium_culture"; private IIcon[] textures; public Exodium_culture() { setBlockName(name); setBlockTextureName(ExodiaMod.MODID + ":" + name); GameRegistry.registerBlock(this, name); } @Override public IIcon getIcon(int side, int meta) { if (meta < 7) { if (meta == 6) { meta = 5; } return this.textures[meta >> 1]; } else { return this.textures[3]; } } @Override protected Item func_149866_i() { //ici c'est l'item pour les graines (ex : wheat_seeds) return ExodiaMod.exodium_seed; } @Override protected Item func_149865_P() { //et ici l'Item droppé (ex : wheat) return ExodiaMod.exodium_nugget; } @Override public void registerBlockIcons(IIconRegister p_149651_1_) { this.textures = new IIcon[4]; for (int i = 0; i < this.textures.length; ++i) { this.textures* = p_149651_1_.registerIcon(ExodiaMod.MODID + ":" + this.getTextureName() + "_stage_" + i); } } @Override //Juste pour debuger public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int meta, float p_149727_7_, float p_149727_8_, float p_149727_9_) { if (!world.isRemote) { player.addChatMessage(new ChatComponentText("Metadata : " + world.getBlockMetadata(x, y, z))); player.addChatMessage(new ChatComponentText("Texture : " + this.getIcon(0, world.getBlockMetadata(x, y, z)))); } return true; } }
Lorsque tu lance le jeu, il est censé t’indiquer quelles textures n’ont pas été trouvées, regarde dans les logs au lancement.
-
J’ai ceci, pour chaque stage que faire?:
:::
[19:52:43] [Client thread/ERROR]: Using missing texture, unable to load exodiamod:textures/blocks/exodiamod:Exodium_culture_stage_0.png
java.io.FileNotFoundException: exodiamod:textures/blocks/exodiamod:Exodium_culture_stage_0.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:582) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_40]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_40]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_40]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_40]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
::: -
@‘Degraduck’:
J’ai ceci, pour chaque stage que faire?:
:::
[19:52:43] [Client thread/ERROR]: Using missing texture, unable to load exodiamod:textures/blocks/exodiamod:Exodium_culture_stage_0.png
java.io.FileNotFoundException: exodiamod:textures/blocks/exodiamod:Exodium_culture_stage_0.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:582) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_40]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_40]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_40]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_40]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
:::Change cette ligne :
this.textures* = p_149651_1_.registerIcon(ExodiaMod.MODID + ":" + this.getTextureName() + "_stage_" + i);
et remplace là avec celle-ci :
this.textures* = p_149651_1_.registerIcon(this.getTextureName() + "_stage_" + i);
-
Cela fonctionne mais je ne peut faire que 4 stages je fais comment si j’en veux plus comme le blé?
-
@‘Degraduck’:
Cela fonctionne mais je ne peut faire que 4 stages je fais comment si j’en veux plus comme le blé?
Combien de stage veux-tu ?