Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Cadiboo

Members
  • Posts

    3624
  • Joined

  • Last visited

  • Days Won

    58

Everything posted by Cadiboo

  1. In this post I show how to make sure that Java 8 is being used
  2. Make sure that the server is the only app running and post your computer specs.
  3. He meant the entire log. Please post it.
  4. Yes it is necessary, you might be able to add them back in later, once you've found what mod(s) are causing the crash
  5. first get your registration working, then try to make your block do something. Off the top of my head onBlockActivated is called when you right-click the block and is used to usually open GUIs. If you do anything inside onBlockActivated, return true. otherwise return false For example: Crafting Tables open the crafting table GUI and return true. Heres the code from the base Block.class and from BlockWorkbench.class
  6. Post the log, make sure you've got the port right (you can't leave it blank unless you also port-forwarded port 80 or 8080 to port 25565), try connecting to localhost:25565 (if your hosting the server on the same machine as your playing on). If you can access it from here that means you messed up port forwarding or somewhere something is getting blocked (ISP blocking, Router Firewall blocking etc)
  7. Thats the error thats might not be what caused it but it looks like a good place to start looking for the cause I seem to remember Brandon's Mods causing a crash for someone before, you might want to try disabling it.
  8. pretty much, you should be able to just surround your code with an world.isRemote check
  9. In 1.13 I believe that custom ItemBlocks & Metadata are going to be phased out, and your STYLES property should be moved to multiple blocks rather than just the one. Multiple Blocks does not mean Multiple Classes - you can Reinstanitate your original class (with a few modifications) and take your type as a parameter in the constructor
  10. Changing ModelLoader.setCustomModelResourceLocation(item1, 0, new ModelResourceLocation(new ResourceLocation("examplemod:fav"),"inventory")); to ModelLoader.setCustomModelResourceLocation(item1, 0 ,new ModelResourceLocation( item1.getRegistryName(), "inventory")); might help but we need more info. Please 1) create your own mod, rather than editing the ExampleMod provided with forge 2) use SubscribeEvents 3) post the full log 4) use GitHub 5) use GitHub you can also try changing fav.json from { "parent": "minecraft/generated", "textures": { "layer0": "examplemod:items/fav" } } to { "parent": "item/generated", "textures": { "layer0": "examplemod:items/fav" } }
  11. If your looking at how to render a 2d model look at the vanilla Render Snowball class. A couple modifications to it (making the image load from a file rather than the TextureMap etc.) and it should work perfectly
  12. @diesieben07 Would I be wrong to tell him to downgrade java to java 8?
  13. you are unable to rename files in your file system? forge-universal.jar was the file I was (trying to be) talking about
  14. this will attempt to launch a file called minecraft_server.jar, you are able to rename files and honestly you should not have both vanilla server & forge server in the same folder because they will attempt to access the same files, resulting in broken worlds etc.
  15. are you sure that your .jar file is called "minecraft_server.jar"? What Java are you using?
  16. I believe you have to create a start.command file with "java -Xmx1024M -Xms1024M -jar minecraft_server.jar" in it Or you can also paste this into terminal. java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui minecraft_server.jar refers to the location of your server.jar file - you'll probably have to change this if your using terminal you can type in java -Xmx1024M -Xms1024M -jar and then drag your server file into the terminal window https://minecraft.gamepedia.com/Tutorials/Setting_up_a_Minecraft_Forge_server You could also have incorrect java (minecraft & minecraft server require java)
  17. try deleting your config for the moment and post your FML log also the version of your mods is important so please post that too
  18. Add this to your class that has @Mod.EventBusSubscriber @SubscribeEvent public static void onHarvest(BlockEvent.HarvestDropsEvent event) { if (event.getHarvester() != null) { List<ItemStack> drops = event.getDrops(); if(drops!=null && drops.size()>0) { BlockPos pos = event.getPos(); IBlockState blockstate = event.getWorld().getBlockState(pos); Block block = blockstate.getBlock(); if(block instanceof BlockGrass) { drops.add(new ItemStack(Item.REGISTRY.getObject(new ResourceLocation("minecraft", "wheat_seeds")))); } } } }
  19. Z level sets what the texture is rendered above, for example items are rendered at zLevel 250 and Tooltips are rendered at zLevel 300
  20. I think that you can only scale an entire texture (set with this.mc.getTextureManager().bindTexture()), not a part of a texture
  21. I think that both drawScaledCustomSizeModalRect and drawModalRectWithCustomSizedTexture take an entire texture and scale it
  22. did this inside my drawGuiContainerBackgroundLayer() drawModalRectWithCustomSizedTexture(20, 20, 0, 0, width, height, 10, 10);
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.