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

  • Author

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 :(

  • Author

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.

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.

  • Author

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?

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.

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.