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 don't know how to create a new boat, cause I do not find the class file.

Where do I look for?

 

Thanks.

Creator of the Master Chef Mod and many more to come.

 

If I helped you, please click the 'thank you' button.

I dont know if this works (cause I am still 1.7.10) but:

world.spawnEntityInWorld(new EntityBoat(World Object, X position, Y position, Z position))

 

If you are not sure, just find a java file, and add "extends EntityBoat" (I suppose it is EntityBoat) after "public class (name)" and ctrl+click

Then find the EntityBoat constructor.

I dont know if this works (cause I am still 1.7.10) but:

world.spawnEntityInWorld(new EntityBoat(World Object, X position, Y position, Z position))

 

If you are not sure, just find a java file, and add "extends EntityBoat" (I suppose it is EntityBoat) after "public class (name)" and ctrl+click

Then find the EntityBoat constructor.

He doesn't want to spawn a new boat, he wants to make new boat.

 

And yes, you should make a class extending EntityBoat. And yes, you spawn it using

world.spawnEntityInWorld(new YourBoat(world,x,y,z));

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

  • Author

Where do they register the EntityBoat?

Creator of the Master Chef Mod and many more to come.

 

If I helped you, please click the 'thank you' button.

If you're looking for the EntityBoat.java file, it's here: recompSrc > net > minecraft > entity > item > EntityBoat.java

If you're looking for the EntityBoat.class file, it's here: recompCls > net > minecraft > entity > item > EntityBoat.class

 

Windows Explorer / Finder both have a search bar. Use it.

You shouldn't be needing to look in the classes. And you should be able to search in your IDE.

 

- - -

 

And you register the entity like ANY other entity. Because, SURPRISE, it's an entity.

 

EntityRegistry.registerModEntity

 

is the method you should look into, I believe.

 

Hope that helps! :D

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information
  • Author

Thanks.

 

There are also other classes which has to to with the boat,

 

I've found: EntityBoat, ModelBoat,  ItemBoat. There are more, right?

Creator of the Master Chef Mod and many more to come.

 

If I helped you, please click the 'thank you' button.

  • Author

How do I register it?

My boat just is a white block.

 

Also, my boat keeps sinks in water and burns on lava, I wanted to have my boat floating on lava.

 

Thanks.

 

Here is the code:

 

Main mod:

 

http://pastebin.com/ySWBx4GN

 

MyItems:

 

http://pastebin.com/HAmPnuai

 

EntityObsidianBoat:

http://pastebin.com/x8V7Wnej

 

RenderObsidianBoat:

 

http://pastebin.com/KSrEFCFT

 

ModelObsidianBoat:

 

http://pastebin.com/ACct2v93

Creator of the Master Chef Mod and many more to come.

 

If I helped you, please click the 'thank you' button.

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.