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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. I meant a helper for the specific purpose of overwriting vanilla items. It's a "relatively" common task, but there's no explicit helper function.
  2. Reflection can do anything. Problem is: you have to know how to do reflection. I don't believe there are any helper functions for this.
  3. All you did was wrap his parameters in a new Object[] {} which is already done by the compiler. http://www.minecraftforge.net/forum/index.php/topic,25202.msg128448.html#msg128448
  4. I don't think so. Looking at the functions involved it does not appear so.
  5. setContainerItem(Items.bucket); in your bucket class.
  6. See that spot that says "switch(ID)"? That's where you add more IDs.
  7. try .setBackgroundImageName(MODID + ":" + "creativeTab") And if that doesn't work, check your console for errors, it will tell you if it failed to load an image. Copy that error and post it.
  8. I'd create a static class that all it does is hold onto the data received and then the GUI can just read those variables when it draws. Short answer: yes.
  9. setBlockToAir?
  10. I know Mystcraft does it (it names them MYST_xxx) but yeah, why? Mystcraft is really the only dimension adding mod I can think of that would need that.
  11. Did you register it?
  12. Don't even need a tile entity. world.scheduleBlockUpdate(x,y,z,this,1) in the block's update function will suffice.
  13. Remove and replace its recipe so that it craft "I can't believe it's not a diamond sword" instead of a diamond sword.
  14. ...and if there's some part of super.onUpdate() you don't want, go look at it and find the bits you DO want and copy them.
  15. Try this out: https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/client/RadarParticle.java
  16. If i do this it still drops its self Negative. CDrop is of type Item and Items don't drop Items, Blocks drop Items (or Blocks, but Blocks are also Items).
  17. Those slots can already, natively, hold items. Apply damage to the item stack. The whole bench would then be a TileEntity that has an internal inventory (like a chest) to hold and contain those items.
  18. So congradulations on writing an infinite loop. This is basic programming and you have failed it.
  19. Right, because the book itself is not enchanted, but rather it contains an enchantment (you can do both!)
  20. As an example... GameRegistry.addShapeedRecipe(new ItemStack(Items.cake), "mmm", "ses", "www", 'w', flour, 's', Items.sugar, 'e', Items.egg, 'm', Items.milk_bucket); varargs mean "and whatever other parameters were passed." varargs supports an infinite number of arguments. Edit: Sorry if this isn't 100% correct, my recipes right now all use the oredict.
  21. Fluid myFluid = new Fluid("myFuid"); myFluid.setViscosity(1000).setDensity(1000).setTemperature(295); ?
  22. Should be one more than you need to get started then, no?
  23. Also, public BlockFirestone(int par1, Material par2Material){ You can drop the "int par1" as you're not using it. That used to be the block ID, but as block IDs are no longer A Thing, you don't need it.

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.