Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hey guys,

 

I'm taking a break from my first project while I try and work out a bug in that, and started a second one.

In this project, I am making a mob, which will follow the player and acts as a chest.

 

 

Does anyone have a link to a good tutorial for something like that? I only need the chest on the mob part (Not graphical, just you right-click it and it opens a chest GUI which is saved)

width=463 height=200

http://s13.postimg.org/z9mlly2av/siglogo.png[/img]

My mods (Links coming soon)

Cities | Roads | Remula | SilvaniaMod | MoreStats

  • Author

Hey guys,

 

I'm taking a break from my first project while I try and work out a bug in that, and started a second one.

In this project, I am making a mob, which will follow the player and acts as a chest.

 

 

Does anyone have a link to a good tutorial for something like that? I only need the chest on the mob part (Not graphical, just you right-click it and it opens a chest GUI which is saved)

width=463 height=200

http://s13.postimg.org/z9mlly2av/siglogo.png[/img]

My mods (Links coming soon)

Cities | Roads | Remula | SilvaniaMod | MoreStats

actually, more or less, I do it like this:

 

public boolean interact(EntityPlayer entityplayer)
{
// some other stuff ...

// some checks if gui should be opened etc ...

entityplayer.openGui(ModChocoCraft.instance, 0, worldObj, this.entityId, 0, 0);

// ... some more other stuff bla bla ....
}

 

 

in the entity class. The interact method is compulsory for every mob entity class (inherited from the vanilla classes), but you probably know that :)

running minecraft on Mac OS X - Sierra --- creating code since 1986 ... --- मेरा दिल भारतवासी है!

width=289 height=100http://www.arno-saxena.de/pictures/chococraft/banner_signature.png[/img]

actually, more or less, I do it like this:

 

public boolean interact(EntityPlayer entityplayer)
{
// some other stuff ...

// some checks if gui should be opened etc ...

entityplayer.openGui(ModChocoCraft.instance, 0, worldObj, this.entityId, 0, 0);

// ... some more other stuff bla bla ....
}

 

 

in the entity class. The interact method is compulsory for every mob entity class (inherited from the vanilla classes), but you probably know that :)

running minecraft on Mac OS X - Sierra --- creating code since 1986 ... --- मेरा दिल भारतवासी है!

width=289 height=100http://www.arno-saxena.de/pictures/chococraft/banner_signature.png[/img]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.