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

Hi,

I'm new to this forum as well as minecraft modding and made my way through several tutorials. I create a custom rideable entity (a mech) and now I want to override the behaviour of the left and right mouse-button while a player is "riding" it. Basicly I want it to fire two different weapons.

My questions are:

- What is the "easiest/fastest" way of doing that? (I know it wont be easy)

- How should I implement the weapons?

- Are there any tutorials covering something related to that?

 

My first idea was to create an item like a "controller" which the player needs to hold in the hand an just use its onRightClick but thats not what i want...

 

Any ideas/suggestions are welcome.

 

Thanks in advance,

McRaichu

It doesn't work, I don't know why.

It works, I don't know why.

  • Author

I get the first part: register an eventhandler in the eventbus and there check if the player is riding and check for left/right click. what should/could I do about the weapon part?

It doesn't work, I don't know why.

It works, I don't know why.

  • Author

Basically I have two ideas:

1.: Create a Gui which allows the player to insert range-weapons (bow or custom one) and use them

2.: just use the spawnEntityInWorld (like from the snowball) and fire something

 

the second idea would be the easiest i guess but the first one would allow more possibilities for the player. What do you think is the best decision?

It doesn't work, I don't know why.

It works, I don't know why.

  • Author

I have a small problem. Since the mecha model has weapons on it (e.g. rocktelauncher on the shoulder) how do i achieve the displacement from the players position when a for example a bow is used?

It doesn't work, I don't know why.

It works, I don't know why.

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.