1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problems with set name of last spawned entity

Discussion in 'Skript' started by BoQsc, Jul 7, 2019.

Thread Status:
Not open for further replies.
  1. BoQsc

    BoQsc Member

    Joined:
    Jun 30, 2019
    Messages:
    2
    Likes Received:
    0
    I'm using Spigot version 1.14.2
    Latest version of Skript from https://github.com/SkriptLang/Skript/releases

    Nothing else.

    And it seems I have a problem with set name of last spawned entity statement.

    Every time entity is spawn, the name of the custom entity's name cannot be seen until I come closer to the entity and point the mouse cursor right into their head.

    What causes this to happen? Is it how naming work in Minecraft? (The names cannot be seen of custom entities, until you point your cursor right to their head?)

    What I want to happen:

    Spawn an Entity and see Entity's name all the time without disappearance, no matter where my cursor is pointing to.

    Code (Text):
    1. on spawn:
    2.     set name of last spawned entity to "&5Logger"
    3.  
    4. command /testmob:
    5.     trigger:
    6.         spawn 1 villager at player's location
    --- Double Post Merged, Jul 7, 2019, Original Post Date: Jul 7, 2019 ---
    This is the correct solution. Sourced from https://github.com/SkriptLang/Skript/issues/2236
    Code (Text):
    1.  
    2. on spawn:
    3.     set display name of event-entity to "&5Logger"
    4.  
    5.  
    6. command /testmob:
    7.    trigger:
    8.        spawn 1 villager at player's location
     
  2. inxane

    inxane Member

    Joined:
    Jul 23, 2019
    Messages:
    15
    Likes Received:
    0
    Yes, that is how names work in Minecraft. To view the name of an entity, it must be in your attack range and you must aim at them. I think there is an NBT tag to make the name visible at all times, and it is
    Code (Text):
    1. CustomNameVisible: 1
    . To add such NBT tags, look into NBT editing in Skript. A google search will help you out.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...