How do I make a key binding for sounds? And how do I make a Minecart-like entity?

Started by GRANDPA CAR on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a key binding for sounds? And how do I make a Minecart-like entity?

I'm making a Train mod witch adds in a little diesel locomotive and I can't figure out how to make it act like a minecart. And I need to make a key binding of the H key to blow the whistle/horn. How do I do that?

Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Im not sure for the minecart…
Tue, 02/15/2022 - 23:50

Im not sure for the minecart part but make a key binding that on pressing checks if the player is riding entity = train, and if so play sound at x, y, z Custom Sound

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Legomatt28 Ight gotcha…
Wed, 03/02/2022 - 01:48

@Legomatt28 Ight gotcha. However it got too hard and complex so I just cancelled the whole mod.