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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Referenced Libraries -> Forge_xxxx.jar -> net.minecraft.assets.recipes
  2. "result": { "item": "morefuelsmod:pellet_fuel", "count": 9 } It's almost like I looked at a vanilla recipe...
  3. Is there a metadata sensitive version of getMaxStackSize? No? There's your answer.
  4. For those, the default state is fine.
  5. You shouldn't use getStateFromMeta. While that will probably work for most blocks (assuming you pass in the itemstack's metadata value), there's no real guarantee. You should use ItemBlock.getStateForPlacement (if I recall the method name correctly). Check the ItemBlock class.
  6. Well, getItemDropped returns the item dropped. It is not a method that you use to tell the Block class what item to drop. You're going to have to set up a setItemDropped method yourself.
  7. "I want the client that enters this command to perform it on the server" Wot.
  8. The values are the same. But you need to use the bitshifting if you want to handle it that way.
  9. The tintIndex is the tint index, supplied by the model JSON The ItemStack is the item stack which will contain your NBT data The return value is the color multiplier represented as an integer (e.g. 0x0000FF for blue).
  10. Its an interface. Right click -> Open Type Hierarchy
  11. The correct way to answer was to tell him to not use that method and to instead use MobEffects.
  12. You know how Blocks.DIRT is a thing so you don't need to do Block.getBlockByID(1)? Potion effects work the same way.
  13. Bad modder, no cookie. Do not use hard coded IDs.
  14. Draco18s replied to leosavi25's topic in Modder Support
    Where is this class?
  15. Draco18s replied to leosavi25's topic in Modder Support
    Where the bollocks is your code that registers your blocks and items?
  16. You need to supply a fake world. And that won't be easy.
  17. Seriously? You bumped your thread... And didn't answer diebiesen07's question?
  18. No, just create your own leaf block and register it with the vanilla ID
  19. This would: This code only runs client side (good, its in your client proxy) but this: Is server side only. Also, why are you not using Capabilities?

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.