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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I tried to make a pastebin but it wouldnt let me so I'll send the log to anyone who wants on discord The world generation hits 100% but stays there, ive waited over 20 minutes and its still there it just keeps repeating 11:56:41] [Server thread/ERROR]: WorldGenSettings: Value -1 outside of range [0:4096]; Value -1 outside of range [0:4096] its not crashing or freezing Also when i closed the game it said Can't keep up! Is the server overloaded? Running 64466673ms or 1289333 ticks behind
    • Hello forum members! I am relatively new to Forge and I'm having issues with implementing my custom gui elements. Essentially what I'm trying to do is to add a singular rectangle shape which sits on top of every other gui element that's rendered to the player's screen in the Screen object (i.e. when the player is in their inventory or accessing some other inventory like a tile entity and so on...), so essentially i need this rectangles z-index to be the highest out of every other gui element. Later on I plan on adding functionality to this rectangle; the rectangle will serve as the background element.   The way I undertand how the GuiGraphics class works is that when you have a SubscribeEvent method which handles rendering of the gui it gets the GuiGraphics object from the event that gets created when the method triggers and then modifys that gui elements of that event. But the issue then is that if I'm targeting the RenderGuiOverlayEvent.Post event and try to add the rectangle with the fill method what ends up happening is that the rectangle gets rendered behind the Screen object.   Essentially my question is: Is there an event that gets fired when the absolute last gui element gets rendered and if not is there a WorldLastEvent in terms of gui that gets fired and how does the gui rendering pipeline work in minecraft 1.20, what is the order in which different gui elements get fired?   Any help or feedback would be grately appreciated!
    • Add the crash-report or latest.log (logs-folder) with sites like https://paste.ee/ and paste the link to it here  
    • Hey, so I made a modpack for my girlfriend and I and it's been crashing on launch repeatedly. I have some experience with debugging modpacks but not enough to figure out what's happening. I have both my logs in pastebins below. I'm sure it's just mod incompatibilities but it isn't really giving me enough info to figure out what the problematic mod is. Some mods are not fully up to date, however curseforge automatically installed the older versions, and when I had tried updating them prior I was having the same issue. This is all on 1.20.1. In the spoiler I wrote list of most of the mods but not all of them, if anyone recognizes an incompatibility just by looking. Many are pretty popular.   My latest.log https://pastebin.com/iZV02045 My debug.log https://pastebin.com/WbSRMSiq  
  • Topics

×
×
  • Create New...

Important Information

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