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.

Alix_The_Alicorn

Members
  • Joined

  • Last visited

Everything posted by Alix_The_Alicorn

  1. anyone have an answer?
  2. Yeah, but then I get a shit ton of NPEs
  3. After an anonymous forge update, all of my blocks have seem to have disappeared! (just gone, don't exist in the game) http://github.com/alix-the-alicorn/Carbon-Mod
  4. http://github.com/alix-the-alicorn/carbon-mod
  5. Okay, it works!! locking topic in 3... 2... 1... and Draco i gave you a thank you
  6. I'm testing it now
  7. Thanks guys a lot. here is my final method if anyone wants it. @Override public boolean onBlockDestroyed(ItemStack par1ItemStack, World par2World, int blockID, int par4, int par5, int par6, EntityLivingBase par7EntityLivingBase) { final int x = 1; final int y = Reference.chiselBreakTime; int rand = new Random().nextInt(y-x) + x; if(rand == 2 && par1ItemStack.getItemDamage() == 0) { par1ItemStack.setItemDamage(1); } return false; }
  8. I'm assuming I need to @Override it. To do what I need to do, I need an instance of entity player (EntityPlayer par8EntityPlayer) added to the boolean method. Is there another way to edit players inventory? I'm trying to set item damage to 1 if a random integer == 1.
  9. Ok, thanks for the help. Do you know what any of the params are though?
  10. ok. but since it is boolean what do I need to return?
  11. I want to run code when a block is broken. I have that code ready. How would I run it?
  12. yes I mean that method
  13. Since this hasn't been locked yet, could you tell me how you did it
  14. I want to execute some code when my item breaks a block, but in Item.class there is only a boolean called onBlockDestroyed. How would i run code on block destroyed?
  15. Thanks guys, I fixed by problem by looking at the source of EE3 and I figured out what diesieben07 meant. I'm gonna lock the topic now.
  16. I've looked in vanilla's TEs and couldn't find anything. Could you explain a bit more?
  17. youtube.com/pahimar watch dev environment 3.0
  18. Yes, I did. Look in my Load class, and ModBlock's constucor
  19. My code is at http://github.com/alix-the-alicorn/carbon-mod/ I want my compressed ice to be transparent, and it is but this happens. I can see through the ground. Compressed ice is n instance of ModBlock. It is defined in Load.
  20. Oh, ignore my last post. I mean that my custom furnaces have two states, and each have a different unlocalized name "grill" and "grill2" for example.
  21. I know that I need to make one, I'm just confused on how to go about that. I am sure someone has done it, and I was hoping someone could give me an example of how to go about that.
  22. I have two tiles, and I'm registering both.
  23. bump, this is ALL I NEED to release the next version of my mod!

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.