Jump to content

DavidM

Members
  • Posts

    1830
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by DavidM

  1. NBT tags can also be useful if you want to store additional informations in an ItemStack.
  2. I was mainly referring to this: . This is your IDE telling you that the method does not exists; you should be able to interpret error messages like this.
  3. As of 1.13.2, recipes are no longer stored in assets/<mod_id>/recipes, but rather data/<mod_id>/recipes. For reference (the resources folder of my mod in 1.13.2) : https://github.com/davidmaamoaix/TinyMobFarm/tree/1.13.2/src/main/resources
  4. It could be done, but would be a bad idea. You might as well create your own chest that has your custom functionalities. You can take a look at the code of the alchemical chest in ProjectE, which does exactly what you described (allow custom items update inside chest).
  5. In this case you need to use different method fr each. I don't think this is possible with the chest inventory though (in which case you have to create your own chest). As for on the floor, override Item#onEntityItemUpdate.
  6. 1. You might want to try looking at the vanilla bed and see how it handles it (manually sets and breaks adjacent bed block). 2. These indicate that you are not familiar with basic java. Please learn java before making a mod.
  7. When? When in the player's inventory? Please clarify. To call a function every tick when the item stack is in the player's inventory, override Item#onUpdate.
  8. Forge is free. Download: https://files.minecraftforge.net
  9. 1.7.10 is very old and is no longer supported on this forum. Update to a newer version of minecraft to receive support. http://www.howoldisminecraft1710.today
  10. 1. Try a lower resolution texture pack. 2. Allocate more RAM.
  11. No two problems are the same, thus hijacking other's thread will not fix your issue. Please create a new thread and post your own crash log.
  12. That's not how any of it works. You have little idea on what you are talking about. I would suggest you to look up and learn what multiprocessing is and how it works.
  13. It seems that the game crashes when trying to move a tile entity with piston (tested with vanilla chest and piston). ---- Minecraft Crash Report ---- // Surprise! Haha. Well, this is awkward. Time: 3/4/19 3:12 AM Description: Rendering Block Entity java.lang.NullPointerException: Rendering Block Entity at net.minecraft.client.renderer.tileentity.TileEntityPistonRenderer.func_188186_a(SourceFile:80) at net.minecraft.client.renderer.tileentity.TileEntityPistonRenderer.func_199341_a(SourceFile:56) at net.minecraft.client.renderer.tileentity.TileEntityPistonRenderer.func_199341_a(SourceFile:23) at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.func_203602_a(TileEntityRendererDispatcher.java:146) at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.func_180546_a(TileEntityRendererDispatcher.java:122) at net.minecraft.client.renderer.WorldRenderer.func_180446_a(WorldRenderer.java:626) at net.minecraft.client.renderer.GameRenderer.func_181560_a(GameRenderer.java:816) at net.minecraft.client.renderer.GameRenderer.func_78471_a(GameRenderer.java:743) at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:607) at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:793) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:358) at net.minecraft.client.main.Main.main(SourceFile:144) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$267/2113604623.call(Unknown Source) at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:19) at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:32) at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50) at cpw.mods.modlauncher.Launcher.run(Launcher.java:56) at cpw.mods.modlauncher.Launcher.main(Launcher.java:42) A detailed walkthrough of the error, its code path and all known details is as follows: -- Head -- Thread: Client thread Stacktrace: at net.minecraft.client.renderer.tileentity.TileEntityPistonRenderer.func_188186_a(SourceFile:80) at net.minecraft.client.renderer.tileentity.TileEntityPistonRenderer.func_199341_a(SourceFile:56) at net.minecraft.client.renderer.tileentity.TileEntityPistonRenderer.func_199341_a(SourceFile:23) -- Block Entity Details -- Details: Name: minecraft:piston // net.minecraft.tileentity.TileEntityPiston Block: Block{minecraft:moving_piston}[facing=north,type=sticky] Block location: World: (148,72,225), Chunk: (at 4,4,1 in 9,14; contains blocks 144,0,224 to 159,255,239), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Block: Block{minecraft:moving_piston}[facing=north,type=sticky] Block location: World: (148,72,225), Chunk: (at 4,4,1 in 9,14; contains blocks 144,0,224 to 159,255,239), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Stacktrace: at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.func_203602_a(TileEntityRendererDispatcher.java:146) at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.func_180546_a(TileEntityRendererDispatcher.java:122) at net.minecraft.client.renderer.WorldRenderer.func_180446_a(WorldRenderer.java:626) at net.minecraft.client.renderer.GameRenderer.func_181560_a(GameRenderer.java:816) at net.minecraft.client.renderer.GameRenderer.func_78471_a(GameRenderer.java:743) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityPlayerSP['ElginKhaos'/204, l='MpServer', x=147.16, y=72.00, z=224.66]] Chunk stats: MultiplayerChunkCache: 683, 683 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: {} Level spawn location: World: (144,73,224), Chunk: (at 0,4,0 in 9,14; contains blocks 144,0,224 to 159,255,239), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 404 game time, 404 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: 96 total; [EntityZombie['Zombie'/128, l='MpServer', x=185.50, y=41.00, z=291.50], EntityBat['Bat'/129, l='MpServer', x=187.66, y=31.13, z=296.02], EntitySkeleton['Skeleton'/130, l='MpServer', x=177.50, y=60.00, z=294.89], EntitySkeleton['Skeleton'/131, l='MpServer', x=180.23, y=60.00, z=294.49], EntitySkeleton['Skeleton'/132, l='MpServer', x=187.30, y=60.00, z=294.50], EntityCreeper['Creeper'/522, l='MpServer', x=140.50, y=62.00, z=160.50], EntityZombie['Zombie'/139, l='MpServer', x=206.44, y=39.00, z=171.10], EntityBat['Bat'/140, l='MpServer', x=196.46, y=35.92, z=181.47], EntitySalmon['Salmon'/141, l='MpServer', x=206.50, y=60.64, z=190.50], EntitySalmon['Salmon'/142, l='MpServer', x=203.32, y=61.01, z=185.81], EntitySkeleton['Skeleton'/143, l='MpServer', x=188.58, y=32.00, z=196.73], EntitySkeleton['Skeleton'/144, l='MpServer', x=193.50, y=34.00, z=189.68], EntityCreeper['Creeper'/145, l='MpServer', x=195.50, y=32.00, z=222.50], EntityBat['Bat'/149, l='MpServer', x=198.30, y=32.29, z=301.51], EntitySheep['Sheep'/154, l='MpServer', x=211.96, y=75.00, z=156.66], EntitySheep['Sheep'/155, l='MpServer', x=210.90, y=75.00, z=157.03], EntitySkeleton['Skeleton'/411, l='MpServer', x=84.50, y=16.00, z=144.50], EntitySheep['Sheep'/156, l='MpServer', x=214.23, y=75.00, z=156.78], EntitySheep['Sheep'/157, l='MpServer', x=212.00, y=75.00, z=159.00], EntityZombie['Zombie'/158, l='MpServer', x=211.50, y=18.00, z=200.50], EntitySalmon['Salmon'/159, l='MpServer', x=215.50, y=60.66, z=196.50], EntitySalmon['Salmon'/160, l='MpServer', x=217.56, y=62.48, z=196.59], EntitySalmon['Salmon'/161, l='MpServer', x=218.31, y=60.33, z=197.67], EntityCreeper['Creeper'/162, l='MpServer', x=222.50, y=20.00, z=216.50], EntityBat['Bat'/163, l='MpServer', x=219.37, y=42.11, z=241.70], EntityBat['Bat'/164, l='MpServer', x=225.60, y=41.01, z=235.41], EntityCreeper['Creeper'/165, l='MpServer', x=223.50, y=13.00, z=249.50], EntitySalmon['Salmon'/38, l='MpServer', x=68.96, y=58.59, z=145.32], EntitySkeleton['Skeleton'/166, l='MpServer', x=222.50, y=22.00, z=241.50], EntitySalmon['Salmon'/39, l='MpServer', x=67.66, y=61.21, z=147.22], EntityParrot['Parrot'/167, l='MpServer', x=222.00, y=97.00, z=262.91], EntityZombie['Zombie'/168, l='MpServer', x=205.23, y=29.00, z=280.69], EntityPig['Pig'/169, l='MpServer', x=218.16, y=69.17, z=302.39], EntityChicken['Chicken'/170, l='MpServer', x=226.00, y=68.00, z=239.00], EntityParrot['Parrot'/44, l='MpServer', x=69.00, y=94.00, z=207.00], EntitySheep['Sheep'/172, l='MpServer', x=224.90, y=67.00, z=225.00], EntityParrot['Parrot'/45, l='MpServer', x=72.62, y=94.00, z=205.40], EntityParrot['Parrot'/173, l='MpServer', x=226.28, y=75.41, z=238.27], EntitySkeleton['Skeleton'/174, l='MpServer', x=224.50, y=13.00, z=247.50], EntityZombie['Zombie'/431, l='MpServer', x=124.50, y=20.00, z=146.50], EntitySkeleton['Skeleton'/177, l='MpServer', x=226.50, y=30.00, z=253.50], EntityZombie['Zombie'/178, l='MpServer', x=226.50, y=30.00, z=254.50], EntityZombieVillager['Zombie Villager'/51, l='MpServer', x=90.50, y=19.00, z=171.50], EntityZombie['Zombie'/179, l='MpServer', x=225.53, y=30.00, z=253.50], EntitySkeleton['Skeleton'/52, l='MpServer', x=95.50, y=22.00, z=192.50], EntityZombie['Zombie'/53, l='MpServer', x=85.50, y=65.00, z=287.50], EntityZombie['Zombie'/54, l='MpServer', x=89.08, y=66.00, z=298.63], EntityBat['Bat'/65, l='MpServer', x=108.13, y=44.11, z=151.30], EntityBat['Bat'/66, l='MpServer', x=103.31, y=43.06, z=155.95], EntityZombie['Zombie'/67, l='MpServer', x=100.50, y=18.00, z=168.50], EntityBat['Bat'/68, l='MpServer', x=104.25, y=45.10, z=164.35], EntitySkeleton['Skeleton'/70, l='MpServer', x=96.50, y=22.00, z=192.50], EntityPig['Pig'/71, l='MpServer', x=100.00, y=65.00, z=197.00], EntityParrot['Parrot'/72, l='MpServer', x=103.98, y=65.00, z=298.94], EntityParrot['Parrot'/73, l='MpServer', x=105.85, y=66.00, z=297.21], EntityItem['Red Mushroom'/203, l='MpServer', x=114.36, y=50.96, z=288.03], EntitySkeleton['Skeleton'/77, l='MpServer', x=114.50, y=12.00, z=158.50], EntitySkeleton['Skeleton'/78, l='MpServer', x=127.50, y=19.00, z=150.50], EntitySkeleton['Skeleton'/79, l='MpServer', x=123.50, y=19.00, z=149.50], EntitySkeleton['Skeleton'/80, l='MpServer', x=125.50, y=19.00, z=147.50], EntityParrot['Parrot'/81, l='MpServer', x=114.00, y=95.00, z=244.00], EntityParrot['Parrot'/82, l='MpServer', x=111.57, y=93.00, z=240.54], EntityBat['Bat'/93, l='MpServer', x=151.68, y=25.03, z=152.65], EntitySpider['Spider'/349, l='MpServer', x=214.04, y=40.00, z=171.29], EntityCreeper['Creeper'/94, l='MpServer', x=150.50, y=25.00, z=198.50], EntityCreeper['Creeper'/95, l='MpServer', x=155.15, y=25.00, z=200.48], EntitySpider['Spider'/96, l='MpServer', x=153.59, y=25.00, z=201.80], EntitySpider['Spider'/480, l='MpServer', x=216.50, y=37.00, z=255.50], EntityParrot['Parrot'/97, l='MpServer', x=158.00, y=73.00, z=219.00], EntityParrot['Parrot'/98, l='MpServer', x=150.24, y=78.97, z=255.89], EntitySpider['Spider'/482, l='MpServer', x=214.50, y=37.00, z=254.50], EntityBat['Bat'/104, l='MpServer', x=158.25, y=36.64, z=155.75], EntitySquid['Squid'/105, l='MpServer', x=170.93, y=60.74, z=183.06], EntitySalmon['Salmon'/106, l='MpServer', x=167.51, y=59.74, z=185.10], EntitySalmon['Salmon'/107, l='MpServer', x=167.50, y=59.00, z=183.88], EntitySquid['Squid'/108, l='MpServer', x=173.60, y=59.88, z=184.13], EntitySquid['Squid'/109, l='MpServer', x=173.10, y=56.44, z=182.04], EntitySquid['Squid'/110, l='MpServer', x=167.24, y=58.63, z=185.92], EntitySquid['Squid'/111, l='MpServer', x=169.26, y=58.67, z=183.43], EntitySalmon['Salmon'/112, l='MpServer', x=169.64, y=59.89, z=182.51], EntitySalmon['Salmon'/113, l='MpServer', x=166.09, y=59.53, z=182.58], EntitySkeleton['Skeleton'/114, l='MpServer', x=175.50, y=21.00, z=246.50], EntitySkeleton['Skeleton'/115, l='MpServer', x=163.50, y=65.00, z=284.50], EntityZombie['Zombie'/116, l='MpServer', x=171.82, y=61.00, z=291.97], EntitySheep['Sheep'/117, l='MpServer', x=162.00, y=71.00, z=298.00], EntitySheep['Sheep'/118, l='MpServer', x=165.00, y=72.00, z=298.00], EntitySheep['Sheep'/119, l='MpServer', x=166.00, y=72.00, z=295.00], EntityCreeper['Creeper'/375, l='MpServer', x=100.50, y=24.00, z=194.50], EntitySkeleton['Skeleton'/376, l='MpServer', x=100.50, y=24.00, z=193.50], EntityParrot['Parrot'/122, l='MpServer', x=183.00, y=79.00, z=268.00], EntityParrot['Parrot'/123, l='MpServer', x=185.00, y=81.00, z=268.00], EntityParrot['Parrot'/124, l='MpServer', x=190.00, y=80.00, z=281.00], EntityPlayerSP['ElginKhaos'/204, l='MpServer', x=147.16, y=72.00, z=224.66], EntityZombie['Zombie'/125, l='MpServer', x=186.50, y=41.00, z=295.50], EntityZombie['Zombie'/126, l='MpServer', x=186.50, y=41.00, z=296.50], EntityZombie['Zombie'/127, l='MpServer', x=184.50, y=41.00, z=294.50]] Retry entities: 0 total; [] Server brand: forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:387) at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:1647) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:370) at net.minecraft.client.main.Main.main(SourceFile:144) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$267/2113604623.call(Unknown Source) at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:19) at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:32) at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50) at cpw.mods.modlauncher.Launcher.run(Launcher.java:56) at cpw.mods.modlauncher.Launcher.main(Launcher.java:42) -- System Details -- Details: Minecraft Version: 1.13.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 1168691632 bytes (1114 MB) / 2415919104 bytes (2304 MB) up to 4294967296 bytes (4096 MB) JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M FML: New FML! Loaded coremods (and transformers): Nothing Launched Version: 1.13.2-forge-25.0.69 LWJGL: 3.1.6 build 14 OpenGL: GeForce GTX 1070/PCIe/SSE2 GL version 4.6.0 NVIDIA 419.17, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported.
  14. Please... use the spoiler tag when posting logs. Taken care of. ~Daemon You should try reading the log yourself first as it is telling you exactly what is wrong. What can you get from this extract of your log? (Spoiler alert: update forge; you are using an unsupported version)
  15. I assume that you are trying to draw an overlay, in which case I would suggest you to check out this tutorial: https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe40_hud_overlay. Replace the drawing overlay code with your own drawing code (or in this case, Gui#drawRect). Your IDE should help you to figure out the rest.
  16. Yes, it is, as long as you don't click on the ads (which the owner of the file has no control over). LexManos already informed adfoc about this situation, but has no direct control over it. Welcome to the internet.
  17. Create a class that implements IRecipe and override a few methods. The methods' names are pretty self-explanatory. Just in case though:
  18. I don't know. Do you want something to happen every tick when the item is worn? If yes, then yes, you do need it.
  19. 1. Remove BetterDungeons and try again. 2. 1.6.4 is no longer supported on this forum.
  20. Yes. In that case the item will function like a normal non-Bauble item. Yes, check out: https://github.com/Lothrazar/Cyclic/blob/develop/build.gradle
  21. Check out the BaseCharm class of the Cyclic mod: https://github.com/Lothrazar/Cyclic/blob/develop/src/main/java/com/lothrazar/cyclicmagic/item/core/BaseCharm.java Basically your item has to implement baubles.api.IBauble , and the library takes care (almost) everything else for you (you have to include Baubles in your build.gradle though).
  22. In that case, there is probably something wrong with your mods (given that I interpreted your problem correctly; your description is rather hard to understand). Upload your code for both of the mods to a repo or something so that we can look at it and figure out what is wrong.
×
×
  • Create New...

Important Information

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