Jump 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.

GooberGunter

Members
  • Joined

  • Last visited

Everything posted by GooberGunter

  1. Haha, wow, I overthought that so much and blew it way out of proportion. It's always the simple stuff
  2. it returns it, but I don't know how to access that returned object
  3. OK so I'm only using pre, registering the sprite and then using the map.getAtlasSprite, but I don't have an icon name
  4. So then what do I put in for setParticleTexture. And what about the regular stitch event?
  5. The only TextureAtlasSprite object I have access to is the particle class one and I don't know what to do with it
  6. I'm not sure what I should set the particleTexture to
  7. So it can't find the resource location? Or do I need to set the particleTexture first? If so how?
  8. I tried that and it gave me the following null exception:
  9. I've gotten as far as the resource manager, but I don't know how to set up the resource manager.
  10. From the looks of it, the textureAtlasSprite class, which is what loads the texture for particles, has a built in forge method that allows for custom textures. if I'm looking at this right, it's promising. EDIT: It looks like I need a resource manager AND resource location. Sadly, I don't know how to do resource managers
  11. Yeah, I looked at your code and I get the concept completely, I got the results I wanted. Thanks! I completely forgot that you had linked the example
  12. So I looked at the furnace class and adapted the idea to Jabelar's tutorial on particles. All I need to figure out now is how to use my own texture
  13. That's right, I completely forgot that furnaces emit particles
  14. So I've been looking around for tutorials on custom particles and I can't find any up-to-date tutorials or anything on the forge doc. So far from what I can tell, spawning custom particles is different from vanilla since the spawnParticle method relies on the actual EnumParticleTypeClass. Basically, what I want to do is, when I place down a block, that block starts to slowly emit a purple particle effect. I already have the particle class, I just don't know how to get the block's position (which I think is impossible) or how to set the particles to start spawning from the block ParticleManu.java:
  15. That's true. I never once thought that there wouldn't be a risk. Do do you know how to set up monster spawners with the structure block?
  16. Oh cool, this makes life much easier. I wonder if there's a way to mod the structure block to overwrite the 32 block limit
  17. But I don't know what parts from the igloo class I do need and what parts I don't need
  18. I've been trying to make a structure using the nbt files from the structure block but I don't know where to start, are there any guides, tutorials, or original minecraft code that I could look at? I'd look at the igloo code but I haven't been able to find it EDIT: I found it. It just happened to be in the only one I somehow missed: ComponentScatteredFeaturePieces.java
  19. How do you load the nbt data in the mod, what class do you extend for the Structure class
  20. Edit: can you use them for mob spawners?
  21. Oh cool! I'll keep a look out
  22. I was about to post it until I noticed that I forgot the Subscribe Event annotation. Now it works. Thanks again for walking me through everything
  23. Ok, I understand registry a tad bit better, hopefully I get better with each update. But, I'm still having a little problem with the item model for the block. The block has a texture when I place it down, but now when the player holds it. The thing is, I haven't changed the json file for this since before the update neem/model/item/dore.json

Important Information

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

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.