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.

Why?

Discussion in 'Skript' started by Komplexes, Apr 28, 2019.

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

    Komplexes Member

    Joined:
    Mar 17, 2019
    Messages:
    29
    Likes Received:
    0
    I tried to place skulls with skript-mirror. It works but there is an error I don't understand. How can I fix this?


    ERROR:
    Code (Text):
    1. [12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
    2. [12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
    3. [12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
    4. [12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
    5. [12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
    6. [12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
    7. [12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
    8. [12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
    9. [12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
    10. [12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
    11. [12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
    12. [12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
    13. [12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
    14. [12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
    15. [12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
    16. [12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
    17. [12:45:49 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
    18. [12:45:49 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
    19. [12:45:49 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
    20. [12:45:49 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
    21. [12:45:49 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
    22. [12:45:49 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
    23. [12:45:49 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
    24. [12:45:49 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
    25. [12:45:49 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
    26. [12:45:49 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
    27.  

    CODE:

    Code (Text):
    1. import:
    2.     org.bukkit.SkullType
    3.     org.bukkit.Material
    4.     org.bukkit.inventory.ItemStack
    5.  
    6.    
    7. effect place skull of %offlineplayer% at %location%:
    8.     trigger:
    9.         set {_block} to expression-2.getBlock()
    10.         set block at {_block} to new ItemStack(Material.PLAYER_WALL_HEAD!)
    11.         set {_state} to {_block}.getState()
    12.         minecraft version contains "1.8":
    13.             {_state}.setOwner("%expression-1%")
    14.         else:
    15.             {_state}.setOwningPlayer(expression-1)
    16.         {_state}.update()
     
  2. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,501
    Likes Received:
    107
    Medals:
    It's telling you that the field PLAYER_WALL_HEAD doesn't exist. What server version do you use?
     
  3. Komplexes

    Komplexes Member

    Joined:
    Mar 17, 2019
    Messages:
    29
    Likes Received:
    0
  4. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,501
    Likes Received:
    107
    Medals:
    In 1.8, you have to use the material SKULL instead of PLAYER_HEAD
     
  5. Komplexes

    Komplexes Member

    Joined:
    Mar 17, 2019
    Messages:
    29
    Likes Received:
    0
    Thank you!
     
  6. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    If you solved the error you had, make the post as solved.
     
  7. mp9000

    mp9000 Member

    Joined:
    May 1, 2019
    Messages:
    2
    Likes Received:
    0
    It's disclosing to you that the field PLAYER_WALL_HEAD doesn't exist. What server variant do you use?
     
  8. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,501
    Likes Received:
    107
    Medals:
    The issue is solved. He found a solution. Why are you commenting?
     
  9. Marsbar

    Marsbar Active Member

    Joined:
    Mar 31, 2019
    Messages:
    131
    Likes Received:
    4
    Set this to solved and set it in Java
     
  10. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    What? No
     
Thread Status:
Not open for further replies.

Share This Page

Loading...