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.

Asweez

Forge Modder
  • Joined

  • Last visited

Everything posted by Asweez

  1. Do you know a tutorial for that?
  2. Ok so I have a metadata block that works fine. But whenever I take the block out of the creative inventory and place it down, it just puts the block with metadata 0 there. But if I use setback, it works fine? What am I doing wrong? Block with metadata Registry:
  3. So how do I use that? I know how to do the name part but what do I put in the itemstack param? Just new ItemStack etc. or is there some variable to put in?
  4. Ok so I have some walls that I want to be subblocks of the first wood wall. I've got everything worked out except for when you put any wall down(diamond, iron, gold, etc) it always reverts back to the original (wood) wall. The rendering is correct, however, because when I middle click it into my inventory in creative, it shows me that the block is just the original wood wall. This wood wall is metadata 0, while everything else is a subblock of that one. Wall Code: I think it may have to do with the registry. EDIT: I can see that the GameRegistry only registers one name, and that means only one block. How do I make it register the blocks with individual names based on metadata?
  5. Ok so i want to use my PlayerExtendedProperties to edit how that player's client views chat. How would I get those extended properties?
  6. Yes, I just couldn't find that one. Thanks!
  7. Hi, I want to edit how a player sees the chat from other players. Is there any way I can do that?
  8. In the Item right click method, you must use the player variable to check for the armor in a certain slot (player.getCurrentArmor I think? Not sure). If the player DOES have the armor on, then you spawn the entity. I think, like what Jacky said, 0 is helmet and 3 is boots.
  9. Asweez replied to Asweez's topic in Modder Support
    I want to know some cool things I could do with the players look vec.
  10. Asweez posted a topic in Modder Support
    Hi so I was looking around and I saw the player had a method called getLookVec, which returns Vec3. What is a Vec3 and how do I use it?
  11. So I was wondering what I would use to make a scattershot gun, like a shotgun. Would I use set throwable heading and add some random values?
  12. How would the packet modify the nbt of the item though?
  13. I have a key handler that I want to change nbt tags of the item in the player's hand whenever I press the key. How would I do so?
  14. Ok so I have a problem. The EntityArrow doesn't use getGravityVelocity or on impact, both of which I need. It also makes you stick in the ground and you pick it up. But i think I can fix those last two.
  15. Ok I'll try that
  16. I think it has to do with the client and the server not in sync
  17. Ok so I have my projectile that has no gravity. When I shoot it with 6.0f velocity, it renders way to the side of where the actual entity is. The actual entity still works, however, because it hurts mobs that I shoot it at, even though the render is way off. How do I fix/prevent this?
  18. Ok you were right. Here's my solution if(!player.isPotionActive(Potion.(health boost field, can't remember))){ (Add potion effect) (Add regen to make up for the lost hearts) } That way the effect is applied once and waits until the player doesn't have it again, then applies it again.
  19. In PlayerTickEvent
  20. What do you mean? That's the only line that I use for the Health Boost
  21. player.addPotionEffect(new PotionEffect(Potion.field_76434_w.id, 175, 2, true));
  22. Does anyone know?
  23. I put a health boost potion effect on the player but the extra hearts won't regen, they just stay empty. Why is this happening and how do i fix it?

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.