Jump to content

Jaydizzle514

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by Jaydizzle514

  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!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.