Jump to content

Anyone have a good MCPBot tutorial?


SecondAmendment

Recommended Posts

7 minutes ago, SecondAmendment said:

Ok, im trying to set an entity (mob) to glowing with entity.setGlowing(true); However I want to change the color of the glow and I cant find any methods to do so or know how to. I am really lost :(

 

8 minutes ago, SecondAmendment said:

Ive been messing around with teams and team.setChatFormat thinking that that would dictate its color. but for some reason every time i try to create a team, the team doesnt exist in game.

 

You don't need MCPBot or SRG names for either of these.

 

Use ScorePlayerTeam#setPrefix to set the team's prefix. The first TextFormatting code in the prefix string will be used as the glow colour of entities on the team.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

5 minutes ago, SecondAmendment said:

What about creating the team and adding the entity to it? the only option i see when I type is Scoreboard.addPlayerToTeam(). But I want to add a mob entity. or even other entities like boats. Also should I create a ScorePlayerTeam object or a Scoreboard object?

 

As I said in your other thread, that method can add any entity to a team, not just players (despite the name).

 

You shouldn't create a ScorePlayerTeam or a Scoreboard yourself. Use World#getScoreboard to get a World's Scoreboard and Scoreboard#createTeam to create a ScorePlayerTeam.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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