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
  • New Minecart - Setting up TileEntity/Container/Gui
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 1
Mattredsox

New Minecart - Setting up TileEntity/Container/Gui

By Mattredsox, August 20, 2012 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Mattredsox    1

Mattredsox

Mattredsox    1

  • Stone Miner
  • Mattredsox
  • Forge Modder
  • 1
  • 53 posts
Posted August 20, 2012

Hey Forge Modders! I am currently making a mod that adds a new minecart and when you right click the minecart it opens a custom chest I have coded.

 

Inside the Entity classes I have found the interact() function with EntityPlayer. I think this is the function I need to use to open my specified Gui, Container and TileEntity.

 

Can someone help me with how I am supposed to link the new chest files with the minecart entity?

 

I really appreciate any help I can get!

 

Thanks so much!

 

 

Sincerely,

 

Mattredsox

  • Quote

Share this post


Link to post
Share on other sites

atrain99    68

atrain99

atrain99    68

  • World Shaper
  • atrain99
  • Forge Modder
  • 68
  • 1502 posts
Posted August 20, 2012

First: You don't need a tileEntity, just have your EntityMinecartWithCustomChest implement IInventory. ;)

Then, you have to have the GUI render things. Check out some open source mods for help.

The container adds slots, see open source mods.

If this wasn't helpful, it's 'cause I suck at doing this.  :)

  • Quote

Share this post


Link to post
Share on other sites

Mattredsox    1

Mattredsox

Mattredsox    1

  • Stone Miner
  • Mattredsox
  • Forge Modder
  • 1
  • 53 posts
Posted August 20, 2012

I have it working so when I right click the minecart it opens up like a small chest. The inventories are all screwed up where I dont see the items unless I click on the spot where they are. I am currently working on making a new gui,

  • Quote

Share this post


Link to post
Share on other sites

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

    • Professional Derp
      Server frequently crashes

      By Professional Derp · Posted 1 minute ago

      Hello. I am running a 1.12.2 forge server on google compute engine with 3 GB of ram and the server frequently crashes. The crashes are not frequent enough to stop us from playing but they are just annoying. I'd say they happen once every day or two if there is people on, if no one is logged in it can stay running forever.   Here is the latest.log: https://pastebin.com/KgVvkmAw   Here is the list of mods: https://pastebin.com/sJbNWd1N   I am assuming the crashes are due to lack of memory since they only happen when someone is on but the interesting thing is we don't get any lag right before it crashes.   Any help would be appreciated. Thanks.
    • DaemonUmbra
      problema con el heap space

      By DaemonUmbra · Posted 11 minutes ago

      User was banned for piracy. Buy the game.
    • lockedlol9
      problema con el heap space

      By lockedlol9 · Posted 12 minutes ago

    • JMAS
      net.minecraftforge.oredict.OreDictionary missing from 1.14.4 MDK

      By JMAS · Posted 28 minutes ago

      Thank you for the answer and for the constructive instruction.  Officially, I started learning Java about three weeks ago.  I completed the SoloLearn program last week, and am 82% of the way done re-viewing it to confirm that what I learned did stick.  I'm reading the Oracle tutorials at their website and am up to Controlling Access to Members of a Class.  Completed the first seven Mr Crayfish modding tutorials, and devoured Jorrit Tyberghein's "Modding Tutorial 1.14: Episode 1 (IDEA setup, basic mod and first block)" after being excoriated by Daemon Umbra for asking questions about 1.7.10. I've jumped in and started with the Minecraft mods as the review code because I can't learn in a vacuum.  I set up the Procyon decompiler and have been reviewing my son's favorite mods and attempting to recompile them for 1.14.4 (per D.U.), which is why my questions are oriented as they are; its the jump from 1.12.2 to 1.14.4 (which would be JDK 7 to JDK 8, I gather). I suspect that Daemon Umbra has lots of experience in coding but very little in human interaction and forgets that his position isn't aiding experts but is aiding newcomers. I thank you again for your instruction and for your good-natured demeanor. Respectfully, JMAS  
    • DaemonUmbra
      problema con el heap space

      By DaemonUmbra · Posted 29 minutes ago

      This crash report says you're in 1.13.2 What launcher are you using? Please provide a screenshot
  • Topics

    • Professional Derp
      0
      Server frequently crashes

      By Professional Derp
      Started 1 minute ago

    • lockedlol9
      5
      problema con el heap space

      By lockedlol9
      Started 1 hour ago

    • JMAS
      7
      net.minecraftforge.oredict.OreDictionary missing from 1.14.4 MDK

      By JMAS
      Started 7 hours ago

    • Barca
      6
      cant use mods in survival 1.12.2

      By Barca
      Started 4 hours ago

    • JMAS
      5
      pointing to MCP folder instead of MDK ???

      By JMAS
      Started 2 hours ago

  • Who's Online (See full list)

    • thevortex
    • Professional Derp
    • Ronaldi2001
    • blender dog
    • lockedlol9
    • DaemonUmbra
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • New Minecart - Setting up TileEntity/Container/Gui
  • Theme
  • Contact Us
  • Discord

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