Everything posted by OutCraft
-
How do you add a custom hitbox to a block?
I don't know. What do you want to achieve?
-
[1.18] Multiple cameras when spectating
I don't know what you want to achieve or if this is helpful, but maybe you could make a custom screen and render the two cameras there
-
How do you add a custom hitbox to a block?
Hi! You need to override the Voxelshape of your block. I don't know how the Method is named, but it's something like getShape. Search in your IDE for overridable methods that contain"shape" in their name (In Eclipse: Alt+Shift+S+V I think and then type "*shape" )
-
Logger.log vs System.out.println
What should you use 1. in the final Mod and 2. for debugging, LogManager.getLogger().log(text); or System.out.println(text); and why?
-
Setupdecompworkspace
Also you should consider reading the README.txt file (there it explains how to set up the workspace and what to do on specific errors)
-
Setupdecompworkspace
First you need to run "gradlew genEclipseRuns" / "gradlew genIntellijRuns" and then "gradlew eclipse" / "gradlew intellij". There isn't a setupdecompworkspace any more
-
Forge 1.17.1 crash after playing for a while
Post the debug.log, because there it always says why the game crashes
-
Get block the player is looking at
You could calculate it from the player's eyePos and his looking angle. I'm pretty sure you can get both on the server. But if you need to do this like every tick it could be resource intensive and lag the game
-
Sound issue
The better alternative would be to call it on Client and Server, but I don't know how you would achieve that
-
Sound issue
Hi! Try replacing playerEntity with null, because you're calling the Method on the commandServerWorld, so the Server.
-
Minecraft modpack crash - how to fix?
Because I think in the log there was something with 1.12 and 1.12 is not longer supported, only 1.16.5 and 1.17.1
-
Minecraft modpack crash - how to fix?
Try removing the Mod flatcoloredblocks: One question: what Minecraft version are you using?
-
[Solved] [1.17.1] Add Config GUI
I'll post the crash as soon as I have time (I think Saturday)
-
[Solved] [1.17.1] Add Config GUI
Hi! I know Java, but I didn't know what parameters to pass in. I eventually found that out by my own (by looking at ConfigGuiHandler.ConfigGuiFactory) and thanks of your replies (I read them again), but it's very buggy and when I click on "Mods" on the title screen the game crashes
-
[Solved] [1.17.1] Add Config GUI
Can you give me an example how to do this?
-
[Solved] [1.17.1] Add Config GUI
Now I did this: public class MyClientConfigGuiScreen extends Screen { public MyClientConfigGuiScreen() { super(new TextComponent("My Mod Config")); } } and ModLoadingContext.get().registerExtensionPoint(() -> ConfigGuiHandler.ConfigGuiFactory, MyClientConfigGuiScreen::new (<- Error: "The constructed object of type MyClientConfigGuiScreen is incompatible with the descriptor's return type: T")); but there is an error at MyClientConfigGuiScreen: "The constructed object of type MyClientConfigGuiScreen is incompatible with the descriptor's return type: T"
-
[Solved] [1.17.1] Add Config GUI
I know, for "extension" I now need to make a custom screen, right?
-
[Solved] [1.17.1] Add Config GUI
Ahh sorry, I was just dumb ModLoadingContext.get().registerExtensionPoint(() -> ConfigGuiHandler.ConfigGuiFactory, extension);
-
[Solved] [1.17.1] Add Config GUI
But how should I register it? This gives also an error: "ConfigGuiHandler.ConfigGuiFactory cannot be resolved to a variable"
-
[Solved] [1.17.1] Add Config GUI
Hi again! I have another question: I searched online how to do this, because I didn't get it to work and I saw this: ModLoadingContext.get().registerExtensionPoint( ExtensionPoint.CONFIGGUIFACTORY, () -> (mc, screen) -> new ConfigScreen() ); My problem is, that I can't find the class ExtensionPoint, but on the website it says it's there: import net.minecraftforge.fml.ExtensionPoint; The only thing what I found was IExtensionPoint in net.minecraftforge.fml.IExtensionPoint; but it only has DisplayTest and also, IExtensionPoint.DisplayTest gives an Error there: ModLoadingContext.get().registerExtensionPoint(IExtensionPoint.DisplayTest (<- Error: "IExtensionPoint.DisplayTest cannot be resolved to a variable"), extension); Thank you for any help! Ps: I like bunnies
-
[Solved] [1.17.1] Add Config GUI
Hi, thank you for the quick reply! I didn't know, that you really can use these Buttons, I exactly wanted to do something like this! Again learned something new
-
[Solved] [1.17.1] Add Config GUI
Hi! I want to add my own buttons to the "Options" side of Minecraft "ESCAPE>Options" but I don't know how to do this Thanks for any help
-
I cannot access to several threads(including main page, at 50% chance) with error EX3
Hi, I have the same problem, also when I'm logged in. If you get it to work please say what you did. Thanks
-
com.google.gson.JsonSyntaxException
Hi! Try removing "OreExcavation-1.8.157.jar", I think the error comes from this Mod:
-
1.17.1 Making block act like glow lichen
Hi! You can find the JSON like this: Go into your .minecraft Folder, then go into "Versions". Go into the Version you want. There is a .jar file, change the extension to .zip. Open the .zip and go to assets>minecraft>blockstates>glow_lichen.json and assets>minecraft>models>glow_lichen.json
IPS spam blocked by CleanTalk.