Glass pane
-
a oui bien vue
-
CHANGER TOUJOUR DES CRASH
-
Donnes-nous les logs, sinon on peut pas deviner.
Et un -2 pour les majuscules!
-
desoler pour les maj je vous donne les log des dernier crash
–-- Minecraft Crash Report ---- // I bet Cylons wouldn't have this problem. Time: 01/03/14 16:46 Description: Unexpected error java.lang.ClassCastException: SYLS.verre2 cannot be cast to net.minecraft.block.BlockPane at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:475) at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:224) at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1574) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1129) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1006) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:946) at net.minecraft.client.Minecraft.run(Minecraft.java:838) at net.minecraft.client.main.Main.main(Main.java:93) 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:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:475) at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:224) at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1574) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1129) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player890'/440, l='MpServer', x=-56,36, y=56,82, z=44,76]] Chunk stats: MultiplayerChunkCache: 441 Level seed: 0 Level generator: ID 00 - default, ver 1\. Features enabled: false Level generator options: Level spawn location: World: (291,64,182), Chunk: (at 3,4,6 in 18,11; contains blocks 288,0,176 to 303,255,191), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 254 game time, 254 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: 78 total; [EntityCow['Cow'/550, l='MpServer', x=-48,72, y=65,00, z=-33,75], EntitySkeleton['Skeleton'/551, l='MpServer', x=-62,69, y=12,23, z=-16,31], EntityChicken['Chicken'/544, l='MpServer', x=-61,59, y=64,00, z=119,44], EntityCreeper['Creeper'/554, l='MpServer', x=-63,41, y=13,00, z=31,44], EntityCreeper['Creeper'/555, l='MpServer', x=-57,50, y=18,00, z=18,91], EntitySkeleton['Skeleton'/552, l='MpServer', x=-56,50, y=18,00, z=10,50], EntityCreeper['Creeper'/553, l='MpServer', x=-66,26, y=13,00, z=33,57], EntitySkeleton['Skeleton'/567, l='MpServer', x=-45,28, y=12,00, z=10,78], EntitySkeleton['Skeleton'/566, l='MpServer', x=-44,06, y=13,00, z=13,59], EntityOcelot['Ocelot'/565, l='MpServer', x=-46,13, y=66,00, z=-25,44], EntityCow['Cow'/562, l='MpServer', x=-47,47, y=64,00, z=-32,47], EntityEnderman['Enderman'/573, l='MpServer', x=-47,38, y=22,00, z=47,59], EntitySkeleton['Skeleton'/572, l='MpServer', x=-42,59, y=25,00, z=19,13], EntityZombie['Zombie'/571, l='MpServer', x=-45,70, y=15,22, z=29,69], EntityBat['Bat'/570, l='MpServer', x=-42,31, y=15,10, z=23,50], EntityBat['Bat'/569, l='MpServer', x=-43,61, y=15,74, z=16,55], EntityBat['Bat'/568, l='MpServer', x=-44,91, y=19,10, z=4,69], EntityClientPlayerMP['Player890'/440, l='MpServer', x=-56,36, y=56,82, z=44,76], EntityCow['Cow'/526, l='MpServer', x=-80,50, y=92,00, z=-0,50], EntityOcelot['Ocelot'/527, l='MpServer', x=-86,50, y=74,00, z=13,50], EntityCow['Cow'/521, l='MpServer', x=-97,47, y=71,00, z=5,22], EntityChicken['Chicken'/522, l='MpServer', x=-99,63, y=63,00, z=72,56], EntityChicken['Chicken'/523, l='MpServer', x=-96,53, y=63,00, z=87,47], EntityItem['item.item.leather'/535, l='MpServer', x=-75,75, y=59,13, z=-4,94], EntityChicken['Chicken'/529, l='MpServer', x=-93,47, y=63,00, z=68,53], EntityChicken['Chicken'/528, l='MpServer', x=-85,47, y=64,00, z=59,59], EntityChicken['Chicken'/530, l='MpServer', x=-91,41, y=63,00, z=95,59], EntityCreeper['Creeper'/541, l='MpServer', x=-76,50, y=18,00, z=40,50], EntityCreeper['Creeper'/540, l='MpServer', x=-67,50, y=12,00, z=36,50], EntityCreeper['Creeper'/543, l='MpServer', x=-73,50, y=18,00, z=39,50], EntityCreeper['Creeper'/542, l='MpServer', x=-72,50, y=18,00, z=43,50], EntityItem['item.item.beefRaw'/537, l='MpServer', x=-73,72, y=60,13, z=-3,56], EntityItem['item.item.beefRaw'/536, l='MpServer', x=-75,38, y=59,13, z=-4,53], EntitySkeleton['Skeleton'/539, l='MpServer', x=-68,63, y=12,00, z=38,50], EntityCow['Cow'/538, l='MpServer', x=-77,50, y=63,00, z=-0,31], EntityBat['Bat'/610, l='MpServer', x=9,15, y=27,30, z=104,51], EntitySkeleton['Skeleton'/611, l='MpServer', x=14,13, y=37,00, z=99,50], EntityCreeper['Creeper'/608, l='MpServer', x=8,60, y=28,00, z=99,99], EntitySkeleton['Skeleton'/609, l='MpServer', x=18,28, y=25,81, z=114,37], EntitySpider['Spider'/612, l='MpServer', x=11,28, y=24,00, z=113,50], EntitySkeleton['Skeleton'/613, l='MpServer', x=12,59, y=23,00, z=117,88], EntityBat['Bat'/622, l='MpServer', x=16,34, y=27,10, z=90,53], EntityBat['Bat'/623, l='MpServer', x=22,59, y=29,10, z=87,47], EntitySkeleton['Skeleton'/626, l='MpServer', x=18,94, y=23,00, z=94,56], EntityCreeper['Creeper'/624, l='MpServer', x=21,31, y=25,00, z=93,28], EntityBat['Bat'/628, l='MpServer', x=25,09, y=16,49, z=80,94], EntityCreeper['Creeper'/632, l='MpServer', x=22,56, y=22,00, z=121,99], EntityZombie['Zombie'/576, l='MpServer', x=-26,69, y=28,13, z=-18,41], EntityChicken['Chicken'/508, l='MpServer', x=-117,53, y=63,00, z=85,53], EntitySkeleton['Skeleton'/577, l='MpServer', x=-29,72, y=28,20, z=-19,53], EntitySheep['Sheep'/509, l='MpServer', x=-122,88, y=64,00, z=90,09], EntityChicken['Chicken'/510, l='MpServer', x=-115,56, y=63,00, z=118,59], EntityOcelot['Ocelot'/578, l='MpServer', x=-24,94, y=67,00, z=-23,50], EntityZombie['Zombie'/579, l='MpServer', x=-22,03, y=16,00, z=117,50], EntityCreeper['Creeper'/580, l='MpServer', x=-17,41, y=12,00, z=118,44], EntityChicken['Chicken'/504, l='MpServer', x=-114,59, y=71,00, z=-21,47], EntityCreeper['Creeper'/505, l='MpServer', x=-118,50, y=57,00, z=30,50], EntityZombie['Zombie'/506, l='MpServer', x=-116,50, y=42,00, z=66,50], EntityZombie['Zombie'/507, l='MpServer', x=-115,50, y=42,00, z=65,50], EntityChicken['Chicken'/502, l='MpServer', x=-114,53, y=70,00, z=-29,44], EntityChicken['Chicken'/503, l='MpServer', x=-118,44, y=70,00, z=-25,63], EntitySpider['Spider'/587, l='MpServer', x=-11,03, y=63,00, z=-5,63], EntitySpider['Spider'/588, l='MpServer', x=-8,34, y=28,00, z=75,44], EntitySkeleton['Skeleton'/589, l='MpServer', x=4,09, y=26,00, z=114,50], EntityCreeper['Creeper'/590, l='MpServer', x=-3,75, y=24,00, z=110,50], EntitySpider['Spider'/591, l='MpServer', x=-13,88, y=26,00, z=118,00], EntitySpider['Spider'/592, l='MpServer', x=-12,66, y=35,18, z=124,56], EntityChicken['Chicken'/488, l='MpServer', x=-132,56, y=64,00, z=83,47], EntityZombie['Zombie'/601, l='MpServer', x=8,28, y=15,00, z=59,69], EntitySkeleton['Skeleton'/484, l='MpServer', x=-136,66, y=62,29, z=76,50], EntitySquid['Squid'/600, l='MpServer', x=-3,09, y=46,00, z=50,13], EntitySheep['Sheep'/487, l='MpServer', x=-120,13, y=63,00, z=88,38], EntityZombie['Zombie'/603, l='MpServer', x=7,44, y=14,00, z=57,72], EntityZombie['Zombie'/602, l='MpServer', x=8,09, y=14,00, z=58,69], EntitySkeleton['Skeleton'/481, l='MpServer', x=-136,50, y=42,00, z=14,50], EntityCreeper['Creeper'/605, l='MpServer', x=4,00, y=13,00, z=92,53], EntityZombie['Zombie'/480, l='MpServer', x=-133,53, y=23,00, z=1,94], EntityBat['Bat'/607, l='MpServer', x=12,34, y=26,10, z=108,25]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2312) at net.minecraft.client.Minecraft.run(Minecraft.java:863) at net.minecraft.client.main.Main.main(Main.java:93) 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:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) – System Details -- Details: Minecraft Version: 1.6.4 Operating System: Windows 8 (amd64) version 6.2 Java Version: 1.7.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 676295112 bytes (644 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 18931 (1060136 bytes; 1 MB) allocated, 2 (112 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 1, tallocated: 63 FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 4 mods loaded, 4 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{6.4.49.965} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{9.11.1.965} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available MS{1.0.0} [sylmod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.6 LWJGL: 2.9.0 OpenGL: Intel(R) HD Graphics 4000 GL version 4.0.0 - Build 10.18.10.3379, Intel Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Pack: Default Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 2514 (140784 bytes; 0 MB) allocated, 23 (1288 bytes; 0 MB) used
-
Ton bloc doit être extends BlockPane
-
ok je test sa
en le meten en extend jai deux erreur
une ici a (21002, maretial.glass)
verre2 = new verre2(1002, material.glass).setStepSound(Block.soundGlassFootstep).setTextureName("syls:verre1").setCreativeTab(sylsitem); LanguageRegistry.addName(verre2, "vitre bleu"); GameRegistry.registerBlock(verre2, "vitre bleu");
et une ici a super(par1, Material.glass);
package SYLS; import net.minecraft.block.BlockPane; import net.minecraft.block.material.Material; public class verre2 extends BlockPane { public verre2(int par1, int par2) { super(par1, Material.glass); this.setCreativeTab(sylmain.sylsitem); } public boolean isOpaqueCube() { return false; } public boolean renderAsNormalBlock() { return false; } public int getRenderType() { return 18; } public int getRenderBlockPass() { return 0; } protected boolean canSilkHarvest() { return true; } }
-
verre2 = new verre2(1002).setStepSound(Block.soundGlassFootstep).setTextureName("syls:verre1").setCreativeTab(sylsitem); LanguageRegistry.addName(verre2, "vitre bleu");//Obsolete GameRegistry.registerBlock(verre2, "vitre bleu");
public verre2(int id) { super(id); this.setCreativeTab(sylmain.sylsitem); }
En principe, tu ne devrais plus avoir de problème.
-
super(id);
ceci et souligner en rouge
-
c’est quoi l’erreur?
-
Tu mets ```java
super(id, Material.glass) -
si mais sa remonte a la 1.4.5 faut que je me remette dans le bain quoi
-
oue mais pour oublier les rudiment faut le faire
-
je suis chef d’entreprise donc je n’ai plus trop de temp a consacrer au modding excuser moi si cela vous choque ^^
justement les rudiment je les ai reprit le pb c que quoi que je mette j’ai une erreur et il me dit ceci
int, string, string, material, boolean -
Dans ce cas il faut un constructeur avec :
super(id, “”, “”, Material.glass, true);
Je ne sais pas ce qu’il faut mettre dans les deux Strings, ni si la boolean doit être true ou false, il faut que tu regardes l’effet de chaque variable. -
c id “” texture material false mais il men manque un XD toujour un pour faire ch** ^^
-
Regarde le constructeur de BlockPane
-
bah oui c se que je fait du coup ^^
-
bon dans la section tutoriel il y a un tuto pour faire des vitre fine mais je ne comprend pas tout le tutoriel