-
Posts
3624 -
Joined
-
Last visited
-
Days Won
58
Everything posted by Cadiboo
-
[1.15.1] How to make a Block with a GUI (like a furnace)?
Cadiboo replied to DragonITA's topic in Modder Support
You'll want an ItemStackHandler field + capability + container + screen. My HeatCollectorTileEntity is probably the simplest thing in my example mod. All that should be required is increasing the size of the ItemStackHandler and changing the container + screen. -
[1.14.4] Attached two same capabilities to a tile entity
Cadiboo replied to dylandmrl's topic in Modder Support
https://github.com/Cadiboo/Example-Mod/tree/1.15.1/src/main/java/io/github/cadiboo/examplemod/tileentity/ -
I'm not sure what the exact error is, but since rendering and entities have changed since tabula was made I assume you've got a small issue to do with an incorrect override. You'll want to use your IDE to automatically generate overrides for you.
-
[1.14.4] Attached two same capabilities to a tile entity
Cadiboo replied to dylandmrl's topic in Modder Support
Then why aren’t you overriding getCapability in your TileEntity classes? The event is for attaching capabilities to objects that you do not have direct control over -
Finally. Give me a couple hours and I’ll have pushed my changes to ExampleMod and my tutorials that make all registration use DeferredRegisty.
-
[1.14.4] Attached two same capabilities to a tile entity
Cadiboo replied to dylandmrl's topic in Modder Support
Are those both your tile entities? -
That is your superclass...
-
[1.14.4] Adding TextComponents to written book GUI
Cadiboo replied to Differentiation's topic in Modder Support
I would say look at EditBookScreen and ReadBookScreen for how the data gets displayed and then reverse engineer it from there. The json generators should help you get the syntax and stuff right. You can use this knowledge to make your own helper methods if none exist. -
[1.14.4] FastTESR - Only render quads facing player
Cadiboo replied to TehStoneMan's topic in Modder Support
That is interesting. I'm not sure what would be causing this because I played around with block rendering, TESRs and the fluid renderer a lot in 1.12.2 & 1.14.4 and you needed to explicitly draw the backing quad for both sides to be drawn. An example of this is how you can see through the world in spectator mode and do not see the insides of walls. Can you try simplifying your code to just draw a single quad and see if this still occurs? -
[1.14.4] NullPointer When Loading Capability Data
Cadiboo replied to unassigned's topic in Modder Support
If you know that the object exists and have access to it, you shouldn’t be using an optional. An Optional should be exposed to the rest of the world with getCapability BUT you know that your capability will never be null so you should use a direct reference in your internal code. -
Using a TOML syntax highlighter also helps. IntelliJ has one & I would assume eclipse has one too.
-
I use the processResources block to substitute in my version.
-
Add [Solved] to the title. For people in the future, how did you solve your issue? Btw 1.12.2 is no longer supported on this forum due to its age.
-
Post your logs (using GitHub Gist or similar)
-
[1.14.4] FastTESR - Only render quads facing player
Cadiboo replied to TehStoneMan's topic in Modder Support
AFAIK only faces facing towards the player will be rendered anyway. Can you please provide a screenshot example of this? -
[1.14.4] Adding TextComponents to written book GUI
Cadiboo replied to Differentiation's topic in Modder Support
Yes. There should be helper methods in the book class (or another class) for writing this data. You can also look at json generators like this Minecraft Book Editor and Minecraft Json (Click on the Book button). -
Build failed with Exception error of setting up Workspace
Cadiboo replied to Gameatro's topic in Modder Support
Try deleting your gradle caches. You can do this by running gradlew clean and gradlew cleanCache. Restarting your computer can also help with uncommon problems like this. -
1.7.10 is no longer supported on these forums due to its age. Update to a modern version of Minecraft (The current version (1.15.1) or the one before it (1.14.4)) to receive support on these forums.
-
[1.14.4] NullPointer When Loading Capability Data
Cadiboo replied to unassigned's topic in Modder Support
You should have a reference to your actual capability and only use/provide your LazyOptional for external operations. -
[Solved] [1.14.4] Trouble converting Iterable to ArrayList
Cadiboo replied to Croa's topic in Modder Support
BlockPos#getAllInBox does return a mutable block pos. You can greatly simplify your code by using Streams. Something like List<BlockPos> allInBox = BlockPos.getAllInBox(startPos, endPos) .map(BlockPos::toImmutable) .collect(Collectors.toList()); -
You never close your description. It should look like this. Notice the ''' below your description that ends the entry. # The description text for the mod (multi line!) (#mandatory) description=''' This is a long form description of the mod. You can write whatever you want here ''' [[dependencies.examplemod]] #optional
-
It would produce whatever spectrum you want, just in a tiny fraction of the time it would take to do it in Java code (All the work is done on the GPU). Then get the pixel color back out either by calculating the RGB some way or actually sampling the RGB on screen.
-
post your mods.toml.
-
[Solved] [1.14.4] Trouble converting Iterable to ArrayList
Cadiboo replied to Croa's topic in Modder Support
Use BlockPos#toImmutable().