-
Posts
878 -
Joined
-
Last visited
Everything posted by Elix_x
-
[1.8] Get cursor position in world coordinates while rendering
Elix_x replied to Bedrock_Miner's topic in Modder Support
So you need to get position of camera entity? Right? Than Minecraft.getMinecraft().renderViewEntity gives you this camera entity... -
How: uuid.toString returns string form uuid. UUID.fromString returns uuid from string. I hope you know how to save string, right? Where: EntityTameable.getOwner returns owner from watchable string (representing uuid) with id 17, that is saved and loaded like all data watchers....
-
[1.8] Get cursor position in world coordinates while rendering
Elix_x replied to Bedrock_Miner's topic in Modder Support
Do you need to get block's position where player is looking at? Than ray tracing is your choice. If not, describe a bit more what do you want to do? -
[1.8] Get cursor position in world coordinates while rendering
Elix_x replied to Bedrock_Miner's topic in Modder Support
Ray tracing? -
Because of: In total: i extended RenderBlocks and modified code that i wanted to. I'm using this extended version for my block in gui rendering, because it has adapted code. In order to render modded blocks with another render type, RenderBlocks uses FMLRenderAccessLibrary, so i do. If you have other ideas how these blocks can be rendered, tell me!
-
Hello there, i met very strange problem: In dev environment my mod works fine, but when exported - it doesn't. It crashes with following report: ---- Minecraft Crash Report ---- // Ouch. That hurt Time: 20.05.15 8:32 Description: Rendering screen java.lang.NoClassDefFoundError: net/minecraft/src/FMLRenderAccessLibrary at code.elix_x.coremods.colourfullblocks.gui.CustomRenderBlocks.func_147800_a(CustomRenderBlocks.java:8366) at code.elix_x.coremods.colourfullblocks.gui.CustomItemRenderer.renderItemIntoGUI(CustomItemRenderer.java:83) at code.elix_x.coremods.colourfullblocks.gui.CustomItemRenderer.renderItemIntoGUI(CustomItemRenderer.java:30) at code.elix_x.coremods.colourfullblocks.gui.GuiBrush.func_73863_a(GuiBrush.java:122) at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1061) at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1001) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:898) at net.minecraft.client.main.Main.main(SourceFile:148) 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) Caused by: java.lang.ClassNotFoundException: net.minecraft.src.FMLRenderAccessLibrary at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 14 more Caused by: java.lang.NullPointerException A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at code.elix_x.coremods.colourfullblocks.gui.CustomRenderBlocks.func_147800_a(CustomRenderBlocks.java:8366) at code.elix_x.coremods.colourfullblocks.gui.CustomItemRenderer.renderItemIntoGUI(CustomItemRenderer.java:83) at code.elix_x.coremods.colourfullblocks.gui.CustomItemRenderer.renderItemIntoGUI(CustomItemRenderer.java:30) at code.elix_x.coremods.colourfullblocks.gui.GuiBrush.func_73863_a(GuiBrush.java:122) -- Screen render details -- Details: Screen name: code.elix_x.coremods.colourfullblocks.gui.GuiBrush Mouse location: Scaled: (213, 119). Absolute: (427, 240) Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2 -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['elix_x'/425, l='MpServer', x=-44,69, y=68,62, z=260,22]] Chunk stats: MultiplayerChunkCache: 773, 773 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: World: (-48,64,252), Chunk: (at 0,4,12 in -3,15; contains blocks -48,0,240 to -33,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Level time: 21958 game time, 9420 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: 113 total; [EntityCreeper['Creeper'/259, l='MpServer', x=-5,50, y=11,00, z=187,50], EntityCreeper['Creeper'/260, l='MpServer', x=-7,00, y=11,00, z=189,44], EntitySkeleton['Skeleton'/261, l='MpServer', x=-2,50, y=11,00, z=186,50], EntityBat['Bat'/262, l='MpServer', x=-3,50, y=12,31, z=188,36], EntityBat['Bat'/263, l='MpServer', x=-4,85, y=14,76, z=183,25], EntityCreeper['Creeper'/264, l='MpServer', x=-11,38, y=16,00, z=213,34], EntityBat['Bat'/265, l='MpServer', x=-5,10, y=11,21, z=188,85], EntityChicken['Chicken'/266, l='MpServer', x=-11,44, y=67,00, z=264,56], EntityChicken['Chicken'/267, l='MpServer', x=-0,59, y=69,00, z=263,59], EntityChicken['Chicken'/268, l='MpServer', x=-5,19, y=67,00, z=269,41], EntityItem['item.item.egg'/269, l='MpServer', x=-1,38, y=69,13, z=264,88], EntityItem['item.item.egg'/270, l='MpServer', x=-5,13, y=67,13, z=268,13], EntityChicken['Chicken'/271, l='MpServer', x=-7,34, y=67,00, z=271,56], EntityChicken['Chicken'/272, l='MpServer', x=-8,53, y=73,00, z=286,44], EntityCreeper['Creeper'/273, l='MpServer', x=-3,91, y=49,00, z=291,69], EntityChicken['Chicken'/274, l='MpServer', x=-0,50, y=69,00, z=299,50], EntitySkeleton['Skeleton'/786, l='MpServer', x=18,50, y=53,00, z=291,50], EntityChicken['Chicken'/275, l='MpServer', x=-6,44, y=72,00, z=289,44], EntitySkeleton['Skeleton'/787, l='MpServer', x=17,50, y=53,00, z=290,50], EntityItem['item.item.egg'/276, l='MpServer', x=-2,88, y=68,13, z=300,44], EntitySkeleton['Skeleton'/788, l='MpServer', x=16,50, y=53,00, z=291,50], EntityChicken['Chicken'/277, l='MpServer', x=-14,50, y=70,00, z=319,50], EntityItem['item.item.egg'/278, l='MpServer', x=-5,63, y=68,13, z=313,41], EntityChicken['Chicken'/279, l='MpServer', x=-5,48, y=72,00, z=329,32], EntityChicken['Chicken'/281, l='MpServer', x=-13,41, y=71,00, z=327,63], EntitySkeleton['Skeleton'/295, l='MpServer', x=3,63, y=18,00, z=203,59], EntitySkeleton['Skeleton'/296, l='MpServer', x=3,03, y=18,00, z=204,53], EntitySkeleton['Skeleton'/297, l='MpServer', x=4,44, y=17,00, z=204,94], EntityChicken['Chicken'/298, l='MpServer', x=13,13, y=75,00, z=195,72], EntityChicken['Chicken'/299, l='MpServer', x=0,53, y=74,00, z=198,47], EntityZombie['Zombie'/301, l='MpServer', x=4,50, y=17,00, z=209,09], EntityPig['Pig'/302, l='MpServer', x=15,88, y=97,00, z=236,50], EntityCreeper['Creeper'/303, l='MpServer', x=15,50, y=52,00, z=286,50], EntitySkeleton['Skeleton'/304, l='MpServer', x=4,50, y=54,00, z=280,50], EntityBat['Bat'/305, l='MpServer', x=15,13, y=53,38, z=287,44], EntityChicken['Chicken'/306, l='MpServer', x=4,41, y=68,00, z=294,59], EntityClientPlayerMP['elix_x'/425, l='MpServer', x=-44,69, y=68,62, z=260,22], EntityItem['item.item.egg'/308, l='MpServer', x=3,31, y=68,13, z=295,09], EntityCreeper['Creeper'/309, l='MpServer', x=5,50, y=45,00, z=318,50], EntityChicken['Chicken'/310, l='MpServer', x=-3,47, y=68,00, z=314,56], EntityChicken['Chicken'/318, l='MpServer', x=20,44, y=70,00, z=189,56], EntityPig['Pig'/321, l='MpServer', x=26,03, y=85,00, z=226,50], EntityPig['Pig'/322, l='MpServer', x=16,50, y=103,00, z=228,50], EntityPig['Pig'/323, l='MpServer', x=17,47, y=97,00, z=226,53], EntityCreeper['Creeper'/324, l='MpServer', x=28,50, y=53,00, z=286,50], EntityCreeper['Creeper'/325, l='MpServer', x=25,50, y=53,00, z=275,50], EntityBat['Bat'/326, l='MpServer', x=22,44, y=52,10, z=279,25], EntityBat['Bat'/327, l='MpServer', x=31,25, y=53,10, z=282,75], EntityZombie['Zombie'/328, l='MpServer', x=26,94, y=66,00, z=305,53], EntityZombie['Zombie'/87, l='MpServer', x=-124,38, y=29,00, z=206,94], EntityCreeper['Creeper'/348, l='MpServer', x=35,50, y=51,00, z=285,50], EntityChicken['Chicken'/123, l='MpServer', x=-112,59, y=79,00, z=188,59], EntityBat['Bat'/126, l='MpServer', x=-124,75, y=18,10, z=199,75], EntitySlime['Slime'/128, l='MpServer', x=-122,31, y=20,00, z=215,93], EntitySkeleton['Skeleton'/131, l='MpServer', x=-108,91, y=39,00, z=213,50], EntityCow['Cow'/132, l='MpServer', x=-115,50, y=76,00, z=210,34], EntityCow['Cow'/133, l='MpServer', x=-119,63, y=78,00, z=212,44], EntityCow['Cow'/134, l='MpServer', x=-114,69, y=76,00, z=211,53], EntityCow['Cow'/135, l='MpServer', x=-118,50, y=76,00, z=209,50], EntityChicken['Chicken'/136, l='MpServer', x=-122,41, y=85,00, z=219,53], EntitySlime['Slime'/137, l='MpServer', x=-121,63, y=21,00, z=234,38], EntitySkeleton['Skeleton'/138, l='MpServer', x=-116,09, y=52,00, z=248,56], EntitySkeleton['Skeleton'/139, l='MpServer', x=-115,50, y=52,00, z=251,50], EntityChicken['Chicken'/142, l='MpServer', x=-123,38, y=68,00, z=246,84], EntityPig['Pig'/143, l='MpServer', x=-123,50, y=90,00, z=314,16], EntitySkeleton['Skeleton'/153, l='MpServer', x=-102,50, y=38,00, z=207,50], EntityBat['Bat'/154, l='MpServer', x=-110,48, y=40,22, z=204,95], EntityChicken['Chicken'/155, l='MpServer', x=-99,44, y=73,00, z=192,53], EntityChicken['Chicken'/156, l='MpServer', x=-102,56, y=73,00, z=197,56], EntityChicken['Chicken'/157, l='MpServer', x=-95,53, y=75,00, z=193,53], EntityItem['item.item.egg'/158, l='MpServer', x=-104,19, y=74,13, z=199,13], EntityBat['Bat'/159, l='MpServer', x=-100,44, y=42,10, z=210,50], EntitySquid['Squid'/160, l='MpServer', x=-102,50, y=54,72, z=301,50], EntityPig['Pig'/161, l='MpServer', x=-111,50, y=88,00, z=327,50], EntityPig['Pig'/162, l='MpServer', x=-110,81, y=89,00, z=323,94], EntityPig['Pig'/163, l='MpServer', x=-110,16, y=88,00, z=327,94], EntityPig['Pig'/164, l='MpServer', x=-96,50, y=91,00, z=329,31], EntityZombie['Zombie'/171, l='MpServer', x=-95,75, y=21,00, z=205,78], EntityZombie['Zombie'/172, l='MpServer', x=-94,50, y=49,00, z=229,50], EntityChicken['Chicken'/173, l='MpServer', x=-81,56, y=73,00, z=227,63], EntityChicken['Chicken'/174, l='MpServer', x=-86,31, y=76,00, z=242,53], EntityItem['item.item.egg'/175, l='MpServer', x=-81,66, y=72,13, z=243,78], EntityChicken['Chicken'/176, l='MpServer', x=-82,47, y=72,00, z=248,41], EntityBat['Bat'/177, l='MpServer', x=-91,93, y=52,10, z=263,07], EntityChicken['Chicken'/178, l='MpServer', x=-91,53, y=74,00, z=265,91], EntityChicken['Chicken'/179, l='MpServer', x=-97,38, y=76,00, z=261,47], EntityChicken['Chicken'/180, l='MpServer', x=-91,53, y=74,00, z=265,28], EntityItem['item.item.egg'/182, l='MpServer', x=-88,66, y=72,13, z=259,13], EntityPig['Pig'/183, l='MpServer', x=-92,50, y=76,00, z=299,50], EntityPig['Pig'/184, l='MpServer', x=-80,66, y=71,00, z=300,47], EntityPig['Pig'/185, l='MpServer', x=-92,19, y=71,00, z=304,56], EntityPig['Pig'/186, l='MpServer', x=-89,81, y=71,00, z=304,13], EntityPig['Pig'/187, l='MpServer', x=-88,63, y=94,00, z=314,97], EntityPig['Pig'/188, l='MpServer', x=-91,59, y=89,00, z=335,19], EntityPig['Pig'/189, l='MpServer', x=-88,50, y=72,00, z=336,50], EntityBat['Bat'/199, l='MpServer', x=-75,23, y=37,13, z=197,48], EntityBat['Bat'/200, l='MpServer', x=-66,42, y=40,29, z=208,89], EntityChicken['Chicken'/201, l='MpServer', x=-74,44, y=72,00, z=241,44], EntityItem['item.item.egg'/202, l='MpServer', x=-76,28, y=68,13, z=255,78], EntityItem['item.item.egg'/203, l='MpServer', x=-74,88, y=72,13, z=240,53], EntityChicken['Chicken'/204, l='MpServer', x=-65,47, y=77,00, z=332,53], EntityChicken['Chicken'/205, l='MpServer', x=-73,47, y=86,00, z=328,53], EntityChicken['Chicken'/226, l='MpServer', x=-59,50, y=72,00, z=238,50], EntityItem['item.item.seeds'/227, l='MpServer', x=-48,88, y=67,13, z=264,88], EntityChicken['Chicken'/229, l='MpServer', x=-56,72, y=72,00, z=336,47], EntityZombie['Zombie'/233, l='MpServer', x=-42,50, y=24,00, z=215,50], EntityItem['item.item.seeds'/234, l='MpServer', x=-46,78, y=67,13, z=255,91], EntityItem['item.item.seeds'/235, l='MpServer', x=-47,88, y=67,13, z=266,22], EntityChicken['Chicken'/236, l='MpServer', x=-45,59, y=81,00, z=327,22], EntityChicken['Chicken'/244, l='MpServer', x=-23,91, y=72,00, z=202,88], EntityChicken['Chicken'/245, l='MpServer', x=-26,41, y=71,00, z=198,66], EntityChicken['Chicken'/246, l='MpServer', x=-17,63, y=72,00, z=200,53], EntityChicken['Chicken'/247, l='MpServer', x=-22,56, y=72,00, z=196,38]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:373) at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2444) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:919) at net.minecraft.client.main.Main.main(SourceFile:148) 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) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 917476224 bytes (874 MB) / 1547870208 bytes (1476 MB) up to 2040135680 bytes (1945 MB) JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn1G AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 96 FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.3.1408 25 mods loaded, 25 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.3.1408-1.7.10.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.13.3.1408} [Minecraft Forge] (forge-1.7.10-10.13.3.1408-1.7.10.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available appliedenergistics2-core{rv2-beta-31} [AppliedEnergistics2 Core] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available OpenComputers|Core{1.0.0} [OpenComputers (Core)] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available antiidconflict{1.1} [Anti Id Conflict] (AntiIdConflict-LATEST-1.7.10.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available appliedenergistics2{rv2-beta-31} [Applied Energistics 2] (appliedenergistics2-rv2-beta-31.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available BiblioCraft{1.10.4} [biblioCraft] (BiblioCraft[v1.10.4][MC1.7.10].jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available BuildCraft|Core{6.4.14} [buildCraft] (buildcraft-6.4.14.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available BuildCraft|Transport{6.4.14} [bC Transport] (buildcraft-6.4.14.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available BuildCraft|Silicon{6.4.14} [bC Silicon] (buildcraft-6.4.14.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available BuildCraft|Builders{6.4.14} [bC Builders] (buildcraft-6.4.14.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available BuildCraft|Energy{6.4.14} [bC Energy] (buildcraft-6.4.14.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available BuildCraft|Factory{6.4.14} [bC Factory] (buildcraft-6.4.14.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available CarpentersBlocks{3.3.6} [Carpenter's Blocks] (Carpenter's Blocks v3.3.6 - MC 1.7.10.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available ForgeMultipart{1.1.2.331} [Forge Multipart] (ForgeMultipart-1.7.10-1.1.2.331-universal.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available chisel{2.3.10.37} [Chisel 2] (Chisel2-2.3.10.37.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available colourfullblocks{1.0} [Colourfull Blocks] (ColorfullBlocks-LATEST-1.7.10.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available EnderIO{1.7.10-2.2.8.367} [Ender IO] (EnderIO-1.7.10-2.2.8.367.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available McMultipart{1.1.2.331} [Minecraft Multipart Plugin] (ForgeMultipart-1.7.10-1.1.2.331-universal.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available invisizones{1.0} [invisi Zones] (InvisiZones-LATEST-1.7.10.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available IronChest{6.0.62.742} [iron Chest] (ironchest-1.7.10-6.0.62.742-universal.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available cfm{3.4.7} [§9MrCrayfish's Furniture Mod] (MrCrayfishFurnitureModv3.4.7(1.7.10).jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available OpenComputers{1.5.8.17} [OpenComputers] (OpenComputers-MC1.7.10-1.5.8.17-universal.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available ForgeMicroblock{1.1.2.331} [Forge Microblocks] (ForgeMultipart-1.7.10-1.1.2.331-universal.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.4.13084 Compatibility Profile Context 14.301.1001.0' Renderer: 'AMD Radeon HD 8570D' AE2 Version: beta rv2-beta-31 for Forge 10.13.2.1291 AE2 Integration: IC2:OFF, RotaryCraft:OFF, RC:OFF, BC:ON, RF:ON, RFItem:ON, MFR:OFF, DSU:OFF, FZ:OFF, FMP:ON, RB:OFF, CLApi:OFF, Waila:OFF, InvTweaks:OFF, NEI:OFF, CraftGuide:OFF, Mekanism:OFF, ImmibisMicroblocks:OFF, BetterStorage:OFF Launched Version: 1.7.10-Forge10.13.3.1408-1.7.10 LWJGL: 2.9.1 OpenGL: AMD Radeon HD 8570D GL version 4.4.13084 Compatibility Profile Context 14.301.1001.0, ATI Technologies Inc. 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) CustomRendenderBlocks is my class extending RenderBlocks and overriding some (a lot, not all) methods for special fonctionality (another color, glint...). I modified only code that i had to, and left the rest unmodified (copied code from render blocks, adapted to class, modified parts that needed). I can see and read FMLRenderAccessLibrary in eclipse and as i said, it works completely fine in eclipse, copiles succesfully, but crashes in obf environment... (i don't think you need code? do you?) EDIT: did some testing, crashes with same thing whenever i reference FMLRenderAccessLibrary anywhere in any way... Thanks for help! If you have any questions - just ask!
-
1) it is called model, you can render anything on your entuty (see 2) 2) vehicle is entity, which you can program to be ridden like a horse (or not like) 3) see 1
-
[1.7.10] GL11.color4f does not change color of rendered block...
Elix_x replied to Elix_x's topic in Modder Support
GlStateManager? Where? I don't have one... That's because he hasn't looked at the title and doesn't know you are working with MC 1.7.10, so he gave code for MC 1.8. Ok, i guess i can replace first 2 with GL11.glDisable(GL11.GL_LIGHTING); GL11.glEnable(GL11.GL_BLEND); But what is third one? Anyways it didn't help... Any more ideas??? The third one you can replace with GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); . Well, it didn't hlp... Anything would not help... Because of another recoloring happenning after and overriding previous one... Only integrating code in another place helped... -
[1.7.10] Weird sync problems with players inventory
Elix_x replied to Elix_x's topic in Modder Support
Thanks, it helped! -
Hi there, i have a problem: I have a method, where i'm removing items form players inventory. Decreasing it's stack size works completely, but setting it to null because of size being 0, for some reasons desyncs client and server: On server they don't exists, on client they do... Running this code on both size (removing !isRemote), doesn't change anything... Making inventory as dirty does not produce effect neither... Here's full method, consuming is on buttom: public static boolean hasConsumeDyes(EntityPlayer player) { if(!player.worldObj.isRemote){ boolean red = false; boolean green = false; boolean blue = false; boolean water = false; int rs = 0; int gs = 0; int bs = 0; for(int i = 0; i < player.inventory.mainInventory.length; i++){ ItemStack itemstack = player.inventory.mainInventory[i]; if(itemstack != null){ for(int id : OreDictionary.getOreIDs(itemstack)){ if(!red && OreDictionary.getOreName(id).equals("dyeRed")){ red = true; rs = i; } if(!green && OreDictionary.getOreName(id).equals("dyeGreen")){ green = true; gs = i; } if(!blue && OreDictionary.getOreName(id).equals("dyeBlue")){ blue = true; bs = i; } } if(itemstack.getItem() == Items.water_bucket){ water = true; } } } if(red && green && blue && water){ { ItemStack itemstack = player.inventory.getStackInSlot(rs); itemstack.stackSize -= 1; if(itemstack.stackSize == 0){ itemstack = null; } player.inventory.setInventorySlotContents(rs, itemstack); } { ItemStack itemstack = player.inventory.getStackInSlot(gs); itemstack.stackSize -= 1; if(itemstack.stackSize == 0){ itemstack = null; } player.inventory.setInventorySlotContents(gs, itemstack); } { ItemStack itemstack = player.inventory.getStackInSlot(bs); itemstack.stackSize -= 1; if(itemstack.stackSize == 0){ itemstack = null; } player.inventory.setInventorySlotContents(bs, itemstack); } } return red && green && blue && water; } return false; } Any ideas? EDIT: oh, and also, this issue disspears after relogging in (logical... )... Thanks for help! If you have any questions - just ask!
-
Ok, i solved it: only the problem was file.getName().split("/.")[0]; returning name with .lang in the end... Replacing it with file.getName().substring(0, 5); solved the problem...
-
1) Do your thing after player logged in: if you can, do this when player joins the world... 2) Save dimension id where player was, and then get world via World world = MinecraftServer.getServer().worldServerForDimension(dimId);
-
1) Check that player is already logged in 2) Check that you're doing it in correct world (each dimension has different worlds)
-
Hello, i have a question: How can i reade and localise data from lang files outside of jar? 1)I have a folder, where user creates lang files (named as usual (en_US for example)), and localizes some of names there using common pattern (a.name=A) 2) I think this is the best way for my case: User can create new types of items via json, and in order for name not to be m.d.name, i would like to make him able to localize names in this folder in these files... 3) I googled and searched on this forum with no results 4) I tryed to use this code, but it is not working: File lang = new File(configFolder, "lang"); lang.mkdirs(); for(File file : lang.listFiles(new FileFilter() { @Override public boolean accept(File file) { return !file.isDirectory() && file.getName().endsWith(".lang"); } })){ try{ String language = file.getName().split("/.")[0]; HashMap<String, String> map = new HashMap<String, String>(); BufferedReader br = new BufferedReader(new FileReader(file)) ; for(String line; (line = br.readLine()) != null; ) { try{ map.put(line.split("/=")[0], line.split("/=")[1]); } catch(IndexOutOfBoundsException e){ } } br.close(); LanguageRegistry.instance().injectLanguage(language, map); } catch(Exception e){ logger.error("Caught exception while parsing lang file: ", e); } } [code] 4.1) I know thatparsing is going well. (tested via console output). Thanks for help! If you have any questions - just ask!
-
[1.7.10] GL11.color4f does not change color of rendered block...
Elix_x replied to Elix_x's topic in Modder Support
GlStateManager? Where? I don't have one... That's because he hasn't looked at the title and doesn't know you are working with MC 1.7.10, so he gave code for MC 1.8. Ok, i guess i can replace first 2 with GL11.glDisable(GL11.GL_LIGHTING); GL11.glEnable(GL11.GL_BLEND); But what is third one? Anyways it didn't help... Any more ideas??? -
Plus, do you want to do time changing on server instead? (world.isRemote() = client...)
-
[1.7.10] GL11.color4f does not change color of rendered block...
Elix_x replied to Elix_x's topic in Modder Support
Any more ideas??? Please... -
[1.8] Entity Model and/or Texture Not Rendering Correctly
Elix_x replied to ryanshah's topic in Modder Support
Have you textured it correctly to base map? Why are you creating own model biped, isn't there already vanilla one? -
Plus, you don't read it, you just initialise it with 0... Do you think mc will magically read it from nbt?
-
He wanted to transform Image to ResourceLocation, which is not possible. ResourceLocation is just reference, "path", to resource with modid and internal path. What he needed to use, you said above... No. It is actually possible. Think about skin, it is also from URL! So, Look into the class 'DynamicTexture'. It will give you a hint. + This thread will also help you: http://www.minecraftforge.net/forum/index.php/topic,25161.msg127886.html#msg127886 ResourceLocation and Dynamic texture or New resource pack are different things. Resource location is just 2 strings showing mc resource path... But in order to display that texture, you need or DynaimcTexture or dynamic resource pack... Again, ResourceLocation is just a location, path and not texture it self...
-
He wanted to transform Image to ResourceLocation, which is not possible. ResourceLocation is just reference, "path", to resource with modid and internal path. What he needed to use, you said above...