-
Posts
136 -
Joined
-
Last visited
Converted
-
Gender
Male
-
Location
Singapore
-
Personal Text
Don't keep promises you can't keep
Recent Profile Visitors
2757 profile views
Spyeedy's Achievements

Creeper Killer (4/8)
1
Reputation
-
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.
-
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
-
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. 😓
-
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.
-
My game is crashing immediately after the gradle completes it's task I'm running Java 8, forge 1.16.4-35.0.18
-
[1.15.2] ItemStack NBT not transferred to Block's TileEntity
Spyeedy replied to Spyeedy's topic in Modder Support
There's no isSneaking... only isCrouching, hence my assumption the method got renamed to isCrouching -
[1.15.2] ItemStack NBT not transferred to Block's TileEntity
Spyeedy replied to Spyeedy's topic in Modder Support
Okaaaaay, this is weird, the console prints for Render thread, so that's client, it doesn't print for server? Idk if the NBT really gets saved, because the output always come out as: Before:0 After:1 at these lines https://gist.github.com/Spyeedy/104a892bd3970d189aaf42a10f8645d7#file-lightswitchblockitem-java-L30-L33 -
[1.15.2] ItemStack NBT not transferred to Block's TileEntity
Spyeedy replied to Spyeedy's topic in Modder Support
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 -
[1.15.2] ItemStack NBT not transferred to Block's TileEntity
Spyeedy replied to Spyeedy's topic in Modder Support
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 -
[1.15.2] ItemStack NBT not transferred to Block's TileEntity
Spyeedy replied to Spyeedy's topic in Modder Support
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 -
[1.15.2] ItemStack NBT not transferred to Block's TileEntity
Spyeedy replied to Spyeedy's topic in Modder Support
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 -
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 :)
-
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?
-
Thanks, I'll look into that
-
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.