Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Spyeedy

Forge Modder
  • Content Count

    136
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Spyeedy

  • Rank
    Creeper Killer

Converted

  • Gender
    Male
  • Location
    Singapore
  • Personal Text
    Don't keep promises you can't keep

Recent Profile Visitors

2476 profile views
  1. An update on this, I'm not too sure how or why, but, coming back a couple of hours later and re-running the gradle sync task several times with failures. It finally managed to complete the task successfully.
  2. So I updated my build.gradle to 1.16.5, namely the snapshot and forge versions. (My build.gradle is in the spoiler tag below) However, gradle sync was not successful. The log: Did I input the wrong version numbers? Why is this happening? I've re-run the gradle sync task multiple times, it always has this same output
  3. Oh hold on, I forgot about the refresh gradle option. I refreshed the project and it downloaded new jars. That's weird, the last time I opened the workspace and started the game, it was working fine. Sorry for wasting your time. 😓
  4. I wish I could do that, except that's it, there's no crash report. I'll paste the entire text from my console instead.
  5. My game is crashing immediately after the gradle completes it's task I'm running Java 8, forge 1.16.4-35.0.18
  6. Possibly, but the thing is, in the onBlockPlacedBy method, I printed the stack's NBT list count, it returns 0, despite that the item does have content inside the list, hmm https://gist.github.com/Spyeedy/104a892bd3970d189aaf42a10f8645d7#file-lightswitchblock-java-L33
  7. Possibly, but the thing is, in the onBlockPlacedBy method, I printed the stack's NBT list count, it returns 0, despite that the item does have content inside the list, hmm https://gist.github.com/Spyeedy/104a892bd3970d189aaf42a10f8645d7#file-lightswitchblock-java-L33
  8. I've fixed that typo, and I've added a print statement in my Block's onBlockPlacedBy to look at the nbt list's size, weirdly enough, it prints out 0, even though in the item's nbt list, it has contents. As well as set the tag compound back into the ItemStack's NBT, just to be extremely sure the Item has the new NBT Updated the gist: https://gist.github.com/Spyeedy/104a892bd3970d189aaf42a10f8645d7
  9. Well, that first line is part of a commented out block, but hmm, I ain't putting the list tag into the BlockEntityTag since I commented out the code inside Block#onBlockPlacedBy, I'll try uncommenting inside onBlockPlacedBy and fixing that typo
  10. As the title says, my ItemStack's NBT tags aren't getting transferred to my Block's TileEntity NBT. This worked back on 1.12.2, so I'm not sure why it isn't working now. In the gist linked below are the Item, Block and TileEntity classes. https://gist.github.com/Spyeedy/104a892bd3970d189aaf42a10f8645d7 Thanks for responding :)
  11. Looking at Minecraft's widgets for scrolling list, I've found ExtendedList which extends AbstractList. The latter of which handles all the logic for scrolling, etc. I looked into AbstractList and discovered that render renders the dirt background as well, which I don't want. I only want the ability to scroll, scroll bar and hiding other content that is out-of-view. With this, will I have to make my own widget for scrolling list? If not, then what other alternatives are there provided by Forge or Minecraft that I've not found?
  12. So I understand that ContainerScreen are registered with a ContainerType through ScreenManager.registerFactory. But what about client-only screen, meaning only the GUI itself, do I need to have any registration? How will I open them? I'm not too sure.
  13. Your earlier link relates to 1.15, this one is for 1.13/1.14, which I'm not developing for. But thanks for helping, or rather, mentioning that 1.15 no longer has forge blockstates
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.