Everything posted by Draco18s
-
[Solved] Minecraft.getMinecraft().thePlayer "cannot be resolved or is not a field"
getPlayer()
-
Help with Advancements
See this for the format details: https://minecraft.gamepedia.com/Advancements#JSON_Format Note the "loot" entry towards the bottom. Note that those also have a JSON format: https://minecraft.gamepedia.com/Loot_table#Tags
-
[MainlySolved]Adding enchanted items to inventory on player spawn
You don't need events to do that. All you have to do is write an advancement JSON that rewards the player with the item.
-
[MainlySolved]Adding enchanted items to inventory on player spawn
Only if your event handler method is static.
-
[MainlySolved]Adding enchanted items to inventory on player spawn
Or, slightly farther down the page... http://mcforge.readthedocs.io/en/latest/events/intro/#automatically-registering-static-event-handlers
-
Integrating Forge to a MCP client
Also, don't make custom clients.
-
[MainlySolved]Adding enchanted items to inventory on player spawn
-
[MainlySolved]Adding enchanted items to inventory on player spawn
Where do you put an event handler? Maybe in an event handler class? YES
-
Problem With Creative Tab
That's not how that works.
-
[MainlySolved]Adding enchanted items to inventory on player spawn
In....a class...
-
Inventory Item Rendering...
Where is your ModelRegistryEvent event handler?
-
[1.10.2] Message to all players on server
You are correct, that method already runs on the server. I was being hasty. Still, it must happen on the server.
-
[MainlySolved]Adding enchanted items to inventory on player spawn
You haven't registered your event handler class as an event handler with the event bus.
-
[1.10.2] Message to all players on server
You need to send a packet to the server and the server sends a message to all players. Which is true for setting the blockstate, too.
-
FatJar including Minecraft libraries 1.7.10
Not here. We stopped providing help with 1.7 about a year and a half ago. We can't support every version forever and the decision was made that only the current version and the next oldest would be supported here. And that means 1.12 and 1.10, although we still do regularly help with 1.8.9, but that support typically comes with a "you should still update" message.
-
FatJar including Minecraft libraries 1.7.10
1.7.10 is fucking ancient and no longer supported. Update.
-
[1.10.2] Message to all players on server
You can't do this on the client.
-
[Solved] Disable entity ai
I would create a new task, add it with priority 0, and have it use a mutex flag value of 0xFFFFFF. That would prevent other tasks from running.
-
[1.12.2] Recommanded way of accessing the mods folder?
If you need to read something out of the jar file, use Class#getClassLoader().getResourceAsStream(resourceName);
-
Minecraft Textures/Model having Problems
Post your code. Preferably as a github repository.
-
Texture not working[1.12.2][Solved]
You managed to learn about the ModelRegistryEvent, but not the Registry.Register<T> event?
-
[1.12.2] registration
No it doesn't. Yes, that code "automatically writes things to the lang file" but YOU the programmer still need to write the code that does that. And you spend more keystrokes writing your automatic writer than you would just writing things in the lang file. Not having to write out "item.____.name" every time is why I have things like this in my lang files. Copy-paste the line, only change what's important.
-
net.minecraft.client.renderer.texture.TextureMap
Yep. I don't need it in my own mods. https://gist.github.com/Draco18s/40ba5cb4f69d5dbc790d04bac09dffe2#file-mc-log-L196 https://gist.github.com/Draco18s/40ba5cb4f69d5dbc790d04bac09dffe2#file-mc-log-L260 https://gist.github.com/Draco18s/40ba5cb4f69d5dbc790d04bac09dffe2#file-mc-log-L324
-
net.minecraft.client.renderer.texture.TextureMap
Correct link: https://github.com/cryxlichlord/RubyMod What you posted works, but it is a link to the commit itself, rather than to the root directory. Looking at the log... Several missing model files and one error about... Not sure what's causing that. Also, see everything I said over here.
-
net.minecraft.client.renderer.texture.TextureMap
Post the URL of your project.
IPS spam blocked by CleanTalk.