Skip to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cadiboo

Members
  • Joined

  • Last visited

Everything posted by Cadiboo

  1. pretty much, you should be able to just surround your code with an world.isRemote check
  2. 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
  3. 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" } }
  4. 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
  5. @diesieben07 Would I be wrong to tell him to downgrade java to java 8?
  6. Didn't know that, sorry for the salt
  7. you are unable to rename files in your file system? forge-universal.jar was the file I was (trying to be) talking about
  8. 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.
  9. are you sure that your .jar file is called "minecraft_server.jar"? What Java are you using?
  10. 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)
  11. 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
  12. 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")))); } } } }
  13. Z level sets what the texture is rendered above, for example items are rendered at zLevel 250 and Tooltips are rendered at zLevel 300
  14. I think that you can only scale an entire texture (set with this.mc.getTextureManager().bindTexture()), not a part of a texture
  15. I think that both drawScaledCustomSizeModalRect and drawModalRectWithCustomSizedTexture take an entire texture and scale it
  16. so just modify it to fit your needs
  17. did this inside my drawGuiContainerBackgroundLayer() drawModalRectWithCustomSizedTexture(20, 20, 0, 0, width, height, 10, 10);
  18. I think that its used to draw text
  19. mc.thePlayer.getPos() returns the position of the bottom of your feet. translate it up on the Y axis by something like 1.6 to make it start around your eye/camera's height
  20. in that render class just do your OpenGL commands that draw a line between the entity and it's thrower
  21. set up a renderer for it and in that renderer connect it to it's thrower Ill have to check this but I think that throwers aren't properly synced between server & client for some reason
  22. do you have an entity set up for your EntityLassoWhip that can be thrown/shot? if so, have you set up a renderer for it?
  23. Do you want this code to run if you have the armor on OR run if you have the armor on AND have thrown a lassoWhip
  24. new EntityLassoWhip(mc.thePlayer.getEntityWorld(), mc.thePlayer); Are you intentionally making a new entity every render tick?
  25. You 100% sure that only that version of Java is available? Have you got good Wifi speeds & the your connection is not blocked in any way java.net.SocketTimeoutException: connect timed out

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.