Jump to content

Recommended Posts

Posted

Hi !

Can someone help how to create entity with sword for 1.15.2 ?

  Reveal hidden contents
  Reveal hidden contents

 

 

Posted

Take a look at vanilla code, maybe wither skeletons as they always have a sword (I think?). Zombies also can wield swords, so looking at the code for them might help you too. :)

Posted
  On 4/7/2020 at 8:30 PM, Ugdhar said:

Take a look at vanilla code, maybe wither skeletons as they always have a sword (I think?). Zombies also can wield swords, so looking at the code for them might help you too. :)

Expand  

I already copy wither skeletons code and skeleton and biped model but its no use :(

 

Posted
  On 4/8/2020 at 6:59 AM, LegoSuperNik said:

I already copy wither skeletons code and skeleton and biped model but its no use :(

 

Expand  

Define “no use”. Does it crash? Does your entity not appear?

Some tips:

  Reveal hidden contents

 

Posted

You should always show what you tried. Best way to share code is to host your project on github as a buildable project, so others can look at it (and see the whole picture), as well as build/debug it if desired. Also make sure there's nothing in the debug.log that's giving you more information.

Posted (edited)
  On 4/8/2020 at 9:56 AM, Ugdhar said:

You should always show what you tried. Best way to share code is to host your project on github as a buildable project, so others can look at it (and see the whole picture), as well as build/debug it if desired. Also make sure there's nothing in the debug.log that's giving you more information.

Expand  

https://github.com/LegoSuperNik/Bestiaria

P.S.   Entity Monster its full copy of wither skeleton

Edited by LegoSuperNik
Posted
  On 4/8/2020 at 11:24 AM, LegoSuperNik said:

https://github.com/LegoSuperNik/Bestiaria

P.S.   Entity Monster its full copy of wither skeleton

Expand  

Ok, so what have you tried, besides just copying stuff?

Looking at it, I don't see any mention of a sword anywhere, but lots of stuff about bow & arrow, so that looks like a good place to start.

I haven't done this before, I just know how to code and look for stuff, so I can't tell you EXACTLY how to do it, you're going to have to use some skills yourself. :)

Posted
  On 4/8/2020 at 11:43 AM, Ugdhar said:

Ok, so what have you tried, besides just copying stuff?

Looking at it, I don't see any mention of a sword anywhere, but lots of stuff about bow & arrow, so that looks like a good place to start.

I haven't done this before, I just know how to code and look for stuff, so I can't tell you EXACTLY how to do it, you're going to have to use some skills yourself. :)

Expand  

I try to change bow to sword or item but its not help . I change code more 5 times but its also don't help :(

Posted
  On 4/8/2020 at 2:56 PM, LegoSuperNik said:

I try to change bow to sword or item but its not help . I change code more 5 times but its also don't help :(

Expand  

Then what you need to do, is when you try something and it doesn't work, come back here, explain what you tried, with either links to the code on your github, or at least a mention of which classes/where you changed it.

Explain what did not work, and post logs, even if the game doesn't crash, sometimes there's stuff in there that helps find what's going wrong.

And of course, the more Java/programming you know, and the longer you've done it, the easier it will be.

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.