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.

Jaydizzle514

Members
  • Joined

  • Last visited

  1. im making a mod that adds walls, stairs, etc and i was wondering how i can pull the vanilla textures for this code pastebin: https://pastebin.com/C1atQA4f what im trying to change to get the vanilla texture: fenceItem(JDFences.CRIMSON_SKINNED_LOG_FENCE, Blocks.STRIPPED_CRIMSON_HYPHAE); but Blocks.BLOCK_NAME is underlined red
  2. Nevermind i got it figured out! I appreciate your help Luis
  3. But to answer simply without silktouch
  4. Ok so i have this right which means without silk touch it'll drop between 0-9 xp and 0 with silktouch so i assume the 0-9 is because of that this.RANDOM. So im wondering if i can change that RANDOM so it always drops the 10 xp or if im just over thinking this @Override public int getExpDrop(BlockState state, LevelReader reader, BlockPos pos, int fortune, int silktouch) { return silktouch == 0 ? this.RANDOM.nextInt(10) : 0; }
  5. Ah i see the issue i had it set to give 20 xp with silk alright. Is there anything i can replace random with so for example itll always drop 10 xp
  6. but other than that they've just been variations of that
  7. @Override public int getExpDrop(BlockState state, LevelReader reader, BlockPos pos, int fortune, int silktouch) { return silktouch == 0 ? this.RANDOM.nextInt(10) : 20; } this is what i've recently tried and it did drop xp but it drops it regardless if silk touch is involved or not
  8. I should've mentioned that's what I've done the past few days. I don't wanna be told exactly how to do it just a little guidance
  9. I've been trying to sort this out for a few days but unfortunately I've had no success. I was wondering if anyone has figured out how to add xp drops to an ore for 1.17.1. Anyone help would be appreciated, thanks!

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.