Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/15/19 in all areas

  1. Forge installs itself as a version of Minecraft. Make a new Profile/Installation and select Forge from the version dropdown. (Note: For some reason Forge 1.12.2 gets booted to the bottom of the list.) Also note: 1.10.2 is not supported on this forum and 1.12.2 is on Legacy Support. Please consider updating to 1.14.4
    1 point
  2. You're getting closer you do need to use the PlayerEntity. Hint: Every Entity has access to the world it's in. Also there is one more method you need to use from the event.
    1 point
  3. Just because something can be represented as a string doesn't mean it should be. Also did you check the return type of RightClickBlock#getUseBlock? It doesn't have anything to do with what block was right clicked. Look at the stuff you do have access to in order to get the block that is being right clicked.
    1 point
  4. There are so many problems with your code I don't really know where to start. Two of them are your use of IHasModel, and the fact that you are initializing your Item, Block fields statically. Remove IHasModel completely. Use your list of Items/Blocks to register the models in the event. Initialize your Item/Block fields in the registry event. Remove ItemBase and BlockBase(if you have that). There is already a base item/block class. They are called Item and Block. The Idea of a CommonProxy is already handled via the main mod class. The correct way to use the Proxy system is to have an interface(a lot of the time called IProxy) and two classes that implement it ServerProxy and ClientProxy. Also I don't think you own the domain rnh.com so you should switch your package naming convention.
    1 point
  5. https://github.com/xWhatsherfacex/Testing/blob/master/java/com/rnh/home/Init/ModItems.java#L26 Problematic Code #14
    1 point
  6. Your Items code seems to have fixed it... I am guessing that somehow my code is broken, atleast now it works perfectly, thank you so much!
    1 point
  7. 1 point
  8. Several ways. Why not take a look at the net.minecraftforge.event package and sub-packages? There is definitely an event for what you want.
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.