Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Minecraft Forge Modding 1.8 Problem - Textures Mix
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 1
Mr.sKrabs

Minecraft Forge Modding 1.8 Problem - Textures Mix

By Mr.sKrabs, July 27, 2015 in Modder Support

  • Reply to this topic
  • Start new topic
  • Prev
  • 1
  • 2
  • Next
  • Page 1 of 2  

Recommended Posts

Mr.sKrabs    16

Mr.sKrabs

Mr.sKrabs    16

  • Stone Miner
  • Mr.sKrabs
  • Members
  • 16
  • 89 posts
Posted July 27, 2015

Well I need help with this problem i'm brekaing my head trying to figure it out

i made a video so i can explain it better,just watch the whole 4 minutes.

You'll understand

 

https://www.youtube.com/watch?v=7ybyLP7XbO0&feature=youtu.be

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6672

diesieben07

diesieben07    6672

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6672
  • 45645 posts
Posted July 27, 2015

You are registering both of your Items twice... You call registerRender twice and registerRender registers both your Items.

  • Quote

Share this post


Link to post
Share on other sites

Mr.sKrabs    16

Mr.sKrabs

Mr.sKrabs    16

  • Stone Miner
  • Mr.sKrabs
  • Members
  • 16
  • 89 posts
Posted July 27, 2015

Whats wrong with it? i need to register it twice cause i have two items.

Then how am i suppose to register them? tell me what line to change and what to change

  • Quote

Share this post


Link to post
Share on other sites

Choonster    1623

Choonster

Choonster    1623

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1623
  • 5050 posts
Posted July 27, 2015

registerRender should only register the model for its Item argument. registerRenders should call registerRender once for each Item to register the model for that Item.

  • Quote

Share this post


Link to post
Share on other sites

Mr.sKrabs    16

Mr.sKrabs

Mr.sKrabs    16

  • Stone Miner
  • Mr.sKrabs
  • Members
  • 16
  • 89 posts
Posted July 27, 2015

Okay i understood but every command i try to change it gives an error and it tells me to pick between these two:

Small_Flint

Twigs.

 

How can i register them both in a single command.

  • Quote

Share this post


Link to post
Share on other sites

Choonster    1623

Choonster

Choonster    1623

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1623
  • 5050 posts
Posted July 27, 2015

registerRender should only use its Item argument, it shouldn't use any of the Item fields.

  • Quote

Share this post


Link to post
Share on other sites

Mr.sKrabs    16

Mr.sKrabs

Mr.sKrabs    16

  • Stone Miner
  • Mr.sKrabs
  • Members
  • 16
  • 89 posts
Posted July 27, 2015

Then what am i suppose to write,Everything different of what i write gives me an error

Write me the line

  • Quote

Share this post


Link to post
Share on other sites

Choonster    1623

Choonster

Choonster    1623

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1623
  • 5050 posts
Posted July 27, 2015

Do you understand what a method argument is and how to use one? This is very basic Java knowledge.

 

Instead of using Small_Flint or Twigs in registerRender, simply use item (the method's argument).

  • Quote

Share this post


Link to post
Share on other sites

Mr.sKrabs    16

Mr.sKrabs

Mr.sKrabs    16

  • Stone Miner
  • Mr.sKrabs
  • Members
  • 16
  • 89 posts
Posted July 27, 2015

Yes i do understand java and i told you everything i write gives me an error i already tried Item and item like 5 times each.

Error bra

  • Quote

Share this post


Link to post
Share on other sites

Choonster    1623

Choonster

Choonster    1623

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1623
  • 5050 posts
Posted July 27, 2015

Well post your code and the error, then.

  • Quote

Share this post


Link to post
Share on other sites

Mr.sKrabs    16

Mr.sKrabs

Mr.sKrabs    16

  • Stone Miner
  • Mr.sKrabs
  • Members
  • 16
  • 89 posts
Posted July 27, 2015
http://prntscr.com/7xl2u8
  • Quote

Share this post


Link to post
Share on other sites

Choonster    1623

Choonster

Choonster    1623

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1623
  • 5050 posts
Posted July 27, 2015

You still need to call registerRender with each Item field from registerRenders, but you should be using the item argument within registerRender instead of the fields.

  • Quote

Share this post


Link to post
Share on other sites

Mr.sKrabs    16

Mr.sKrabs

Mr.sKrabs    16

  • Stone Miner
  • Mr.sKrabs
  • Members
  • 16
  • 89 posts
Posted July 27, 2015

Crashes when i try to enter

 

 

-- System Details --

Details:

Minecraft Version: 1.8

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.8.0_05, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 724481176 bytes (690 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1450 4 mods loaded, 4 mods active

States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

UCHI mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)

UCHI FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.3.1450.jar)

UCHI Forge{11.14.3.1450} [Minecraft Forge] (forgeSrc-1.8-11.14.3.1450.jar)

UCHE hnmod{Harsh Nature - Alpha 0.1} [Harsh Nature] (bin)

Loaded coremods (and transformers):

GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 353.30' Renderer: 'GeForce GTX 660/PCIe/SSE2'

[18:47:15] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: #@!@# Game crashed! Crash report saved to: #@!@# E:\Users\ishay\Desktop\Assets\Coding\Minecraft Coding\Survival Mod\eclipse\.\crash-reports\crash-2015-07-27_18.47.15-client.txt

AL lib: (EE) alc_cleanup: 1 device not closed

Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

  • Quote

Share this post


Link to post
Share on other sites

Choonster    1623

Choonster

Choonster    1623

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1623
  • 5050 posts
Posted July 27, 2015

Upload the contents of the crash report (crash-reports/crash-2015-07-27_18.47.15-client.txt) and your code to Gist and link them here.

 

The part you've posted doesn't contain much useful information, I need to see the stacktrace to help you.

  • Quote

Share this post


Link to post
Share on other sites

Mr.sKrabs    16

Mr.sKrabs

Mr.sKrabs    16

  • Stone Miner
  • Mr.sKrabs
  • Members
  • 16
  • 89 posts
Posted July 27, 2015

https://gist.github.com/anonymous/eefb9f7512e1f7c72bc3

Here

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6672

diesieben07

diesieben07    6672

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6672
  • 45645 posts
Posted July 27, 2015

Yes i do understand java

It is very apparent that no, you do not understand Java.
  • Quote

Share this post


Link to post
Share on other sites

Choonster    1623

Choonster

Choonster    1623

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1623
  • 5050 posts
Posted July 27, 2015
Caused by: java.lang.Error: Unresolved compilation problem:

The method registerRenders(Item) in the type HarshNatureItems is not applicable for the arguments ()

 

The crash report tells you exactly what went wrong: registerRenders requires an Item argument, but you tried to call it with no arguments.

 

A method named registerRenders (which implies that it registers multiple things) shouldn't need an Item argument (since it should be registering models for multiple items, not just one).

  • Quote

Share this post


Link to post
Share on other sites

Mr.sKrabs    16

Mr.sKrabs

Mr.sKrabs    16

  • Stone Miner
  • Mr.sKrabs
  • Members
  • 16
  • 89 posts
Posted July 27, 2015

to diesieben07 you should be ashamed coming from you,You are here to support people no matter thier skill if its an expert or a novice showing your act is already sad you are not suppose to be a moderator shut up and do you job by helping others not trying to hurt them.

 

Now i understood what you explained to me but still i dont understand what line,word am i supose to write there there,just write me the line.

  • Quote

Share this post


Link to post
Share on other sites

Choonster    1623

Choonster

Choonster    1623

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1623
  • 5050 posts
Posted July 27, 2015

From your PM:

public static void registerRenders()
   {
      registerRender(Small_Flint);
      registerRender(Twigs);
   
   }

 

This part is correct, but inside the registerRender method you should use item instead of Small_Flint or Twigs.

  • Quote

Share this post


Link to post
Share on other sites

Mr.sKrabs    16

Mr.sKrabs

Mr.sKrabs    16

  • Stone Miner
  • Mr.sKrabs
  • Members
  • 16
  • 89 posts
Posted July 27, 2015

I told you i already tried it but it gives me an error.

 

and i've taken a pic

http://prntscr.com/7xl2u8

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6672

diesieben07

diesieben07    6672

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6672
  • 45645 posts
Posted July 27, 2015

to diesieben07 you should be ashamed coming from you,You are here to support people no matter thier skill if its an expert or a novice showing your act is already sad you are not suppose to be a moderator shut up and do you job by helping others not trying to hurt them.

I am here to support, indeed. But I am just telling you (not hurting you, if you take this personally, that was not how it was intended) that apparently you have a wrong view of your skills.
  • Quote

Share this post


Link to post
Share on other sites

Mr.sKrabs    16

Mr.sKrabs

Mr.sKrabs    16

  • Stone Miner
  • Mr.sKrabs
  • Members
  • 16
  • 89 posts
Posted July 27, 2015

Doesn't matter this comment doesn't help me i am not going to argue about something meaningless.

You want to help me then be my guest,if you dont want go ahead and exit.

  • Quote

Share this post


Link to post
Share on other sites

Choonster    1623

Choonster

Choonster    1623

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1623
  • 5050 posts
Posted July 27, 2015

I told you i already tried it but it gives me an error.

 

and i've taken a pic

http://prntscr.com/7xl2u8

 

In that screenshot, you're calling registerRender with the non-existent item variable. What I'm telling you to do is change the code inside the registerRender method to use the item argument.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6672

diesieben07

diesieben07    6672

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6672
  • 45645 posts
Posted July 27, 2015

You want to help me then be my guest,if you dont want go ahead and exit.

This forum is not about Java support. This is not a modding question, this is a Java question. You are on the best way of getting your thread locked.
  • Quote

Share this post


Link to post
Share on other sites

Mr.sKrabs    16

Mr.sKrabs

Mr.sKrabs    16

  • Stone Miner
  • Mr.sKrabs
  • Members
  • 16
  • 89 posts
Posted July 27, 2015

how about this comment?

 

I am here to support, indeed. But I am just telling you (not hurting you, if you take this personally, that was not how it was intended) that apparently you have a wrong view of your skills.

 

is this modding-wise?

 

threating me wont budge me i am here to get help you are not helping me thus i dont care.

 

 

public static void registerRenders()

{

registerRender(Item);

registerRender(Small_Flint);

registerRender(Twigs);

}

 

this is the lines now..i have a problem with the Item.

 

 

This is the client proxy

 

 

public class ClientProxy extends CommonProxy{

@Override

public void registerRenders() {

HarshNatureBlocks.registerRenders();

Object item;

HarshNatureItems.registerRenders();

}

 

i think i understood you just change it to work we are waisting time i already understood the problem i just dont know how to solve it

  • Quote

Share this post


Link to post
Share on other sites
  • Prev
  • 1
  • 2
  • Next
  • Page 1 of 2  

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • bismuth210
      [1.12.2] Killing fireworks in unloaded chunks

      By bismuth210 · Posted 7 minutes ago

      I'm creating a custom gamemode using forge in which players get teleported around regularly. I've run into a problem when I do the following:   I spawn a firework rocket near a player I teleport the player to a different location I wait a couple of seconds (or minutes) I teleport the player back to the same location as in step 1. Doing this will show the firework spawned in step 1 in step 4, despite significant time having passed in 3. This video shows what I mean:   I suspect the reason for why this happens is because once I teleport the player somewhere else, the chunk with the firework is no longer loaded and doesn't get updated.   Is there a simple way for me to simply "get rid" of all active fireworks shortly before teleporting players so that this doesn't occur? Or do I really have to forcibly keep all chunks loaded? To be more clear: I don't want to disable fireworks all together, but I don't want remnants of old fireworks showing up when I teleport players. "Killing" all firework rockets when I teleport a player would work fine, but I don't know if/how I can do that.   I've tried using /kill @e[type=!player] But that doesn't work for firework rockets apparently.
    • RunKeish
      Forge 14.4 crashes on statup

      By RunKeish · Posted 7 minutes ago

      It finally worked! Thankyou so much. The installation was dodgy for me so I had to download JDK8 using:       ~$ sudo apt install openjdk-8-jdk openjdk-8-jre   Followed by:     ~$ update-java-alternatives --config java   Then select the java-8-openjdk-amd64/jre/bin/java from the list (to make java 8 the default, can switch and whatever but it works!!!)   Thanks a tonne!
    • Filip4223
      [1.12.2] How can I close GUI in Forge?

      By Filip4223 · Posted 18 minutes ago

      OK, it works.Tthanks.     I wonder is there better way for doing it instead of creating new thread?    System.out.println("Turning off"); Thread thread = new Thread(new CloseGui()); thread.start(); //CloseGui class public void run() { try { Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } System.out.println("closing"); Minecraft.getMinecraft().player.closeScreen(); }  
    • diesieben07
      [1.12.2] How can I close GUI in Forge?

      By diesieben07 · Posted 34 minutes ago

      Then you must first let the GUI open (GuiOpenEvent fires before its open!) and then call:
    • Filip4223
      [1.12.2] How can I close GUI in Forge?

      By Filip4223 · Posted 43 minutes ago

      I did it, but I think it's only clientside prevention. I gotta send real packet "close gui" to trigger serverside InventoryCloseEvent (or something like that).
  • Topics

    • bismuth210
      0
      [1.12.2] Killing fireworks in unloaded chunks

      By bismuth210
      Started 7 minutes ago

    • RunKeish
      4
      Forge 14.4 crashes on statup

      By RunKeish
      Started 2 hours ago

    • Filip4223
      4
      [1.12.2] How can I close GUI in Forge?

      By Filip4223
      Started 58 minutes ago

    • Differentiation
      12
      [SOLVED] [1.12.2] Modifying player capabilities for offline players?

      By Differentiation
      Started 9 hours ago

    • DragonITA
      4
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA
      Started 3 hours ago

  • Who's Online (See full list)

    • bismuth210
    • geduardcatalindev
    • Enterman
    • EmerProd
    • DavidM
    • Differentiation
    • RunKeish
    • Filip4223
    • diesieben07
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Minecraft Forge Modding 1.8 Problem - Textures Mix
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community