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.

Animefan8888

Forge Modder
  • Joined

  • Last visited

Everything posted by Animefan8888

  1. You will need to send a packet to sync the Capability.
  2. Animefan8888 replied to a post in a topic in Modder Support
    I'm going to say that Minecraft#effectRenderer is not initialized when you are calling the registerParticle method. Try some other ones like init or postInit.
  3. I would say so, that is where it would make the most sense to me, make sure it is after ItemRegistry and during preInit, or in the ModelRegistryEvent.
  4. Says it is crashing, but doesn't provide a crash report.
  5. Hopefully I understand it correctly for you (never used it). ModelBakery.registerItemVariants(Items.APPLE, Items.APPLE.getRegistryName(), new ResourceLocation("modid", "fileName")); ModelLoader.setCustomMeshDefinition(Items.APPLE, new ItemMeshDefinition() { @Override public ModelResourceLocation getModelLocation(ItemStack stack) { if (stack.hasTagCompound()) { if (stack.getTagCompound().getBoolean("charged")) { // return new ModelResourceLocation to charged sub type } else { // return new ModelResourceLocation to not charged sub type } } return new ModelResourceLocation(stack.getItem().getRegistryName(), "inventory"); } });
  6. You actually need to determine which State from which metadata. Currently you only return the default state in getStateFromMeta. And you always return 0 in getMetaFromState. These are how it saves the blockstate to disk.
  7. Create a new instance of ItemMeshDefinition, and in the one method return the proper ModelResourceLocation for that variant. You have a ItemStack parameter to use to get the NBT from.
  8. "name": "name" // Initializing and declaring a variable "secondName: ""#name" // Declaring a second variable and giving in the same value as the first using the first.
  9. Animefan8888 replied to a post in a topic in Modder Support
    Never worked with Particles, but I have seen the ParticleManager and it has a registry function.
  10. In this case Deprecated means do not call, but you can override it.
  11. Could you post the console log, and your code for the Item and where you register your model for it.
  12. You need to Override Block#getStateFromMeta and Block#getMetaFromState
  13. Override Item#shouldCauseReequipAnimation And how do i use it, i'm not sure what to do with the method Only return true when the item, the size, and the metadata changes.
  14. Look at the vanilla furnace container and TE for how it does it. TileEntityFurnace#getField, TileEntityFurnace#setField, TileEntityFurnace#getFieldCount and ContainerFurnace#detectAndSendChanges and ContainerFurnace#updateProgressBar.
  15. I would say WiFi, but couldn't be precise without a log.
  16. Override Item#shouldCauseReequipAnimation
  17. Look at RenderEntityItem(RenderEntityItem#doRender, line 89), and then use the RenderPlayerEvent.Pre to render the Item.
  18. If 7 is greater than the metadata then it will be 6 and below for one, and if you return super.getContainerItem you are just going to get null. Then override Item#hasContainerItem and make it return true when there is a container item.
  19. I do too. Looking at the HTML it's a "warn_watch" field, so I take it to mean that the moderators are watching his posts closely. Yeah I thought that as well, but wasn't quite sure and didn't think to look at the HTML.
  20. Does anyone else see the "Watched" in green under gurujive's name or is that just me?
  21. Yeah... as im coming from a PHP/JS/HTML/CSS background.. Yeah that is not quite the best for this....Once you have those OOP concepts down you should be able to tackle this problem with barely any effort. I hope so Any recommendations of a tutorial i should look into, and by that i mean a creators name? I do not have any recommendations because I just jumped in and learned as I went, but you can just go on to youtube and search for "java concepts tutorial for beginners" or "java for beginners" and that should work.
  22. Yeah... as im coming from a PHP/JS/HTML/CSS background.. Yeah that is not quite the best for this....Once you have those OOP concepts down you should be able to tackle this problem with barely any effort.
  23. Use a USB flash drive to store all of your code and eclipse/IDEA. And what you do is you take the files stored in some path under your User that contains all of the referenced libraries and put them into your flash drive and then edit the projects dependencies so that it uses the same ones, this works in theory have not tried it myself.
  24. I would suggest watching some tutorials on some Object Oriented Programming so you can learn the concepts, I would recommend it being Java over other obviously.

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.