Jump to content

Recommended Posts

Posted

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.

Posted

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/

Posted

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.

Posted

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
Posted

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.

Posted

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...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

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