
Everything posted by Cadiboo
-
[1.15.1] How to make a Block with a GUI (like a furnace)?
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
https://github.com/Cadiboo/Example-Mod/tree/1.15.1/src/main/java/io/github/cadiboo/examplemod/tileentity/
-
Override error in custom entity
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
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
-
[1.15.1] DeferredRegister vs RegistryEvent
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
Are those both your tile entities?
-
Override error in custom entity
That is your superclass...
-
[1.14.4] Adding TextComponents to written book GUI
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
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
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.
-
[1.15.1] Exit value error
Using a TOML syntax highlighter also helps. IntelliJ has one & I would assume eclipse has one too.
-
TOML File question about ${}
I use the processResources block to substitute in my version.
-
[Solved] getNBTShareTag is not working
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.
-
why my model .obj not work?
Post your logs (using GitHub Gist or similar)
-
[1.14.4] FastTESR - Only render quads facing player
AFAIK only faces facing towards the player will be rendered anyway. Can you please provide a screenshot example of this?
-
[SOLVED] [1.14.4] How do you use capabilities to store variables such as thirst in the player entity?
How did you get it working, for other people with the same problem in the future?
-
[1.14.4] Adding TextComponents to written book GUI
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
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.710
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
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
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());
-
[1.15.1] Exit value error
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
-
Render a dynamic texture to the screen
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.
-
[1.15.1] Exit value error
post your mods.toml.
-
[Solved] [1.14.4] Trouble converting Iterable to ArrayList
Use BlockPos#toImmutable().
IPS spam blocked by CleanTalk.