Why?

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Komplexes

Member
Mar 17, 2019
29
0
0
18
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:
[12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
[12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
[12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
[12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
[12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
[12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
[12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
[12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
[12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
[12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
[12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
[12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
[12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
[12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
[12:45:48 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
[12:45:48 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
[12:45:49 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
[12:45:49 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
[12:45:49 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
[12:45:49 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
[12:45:49 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
[12:45:49 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
[12:45:49 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
[12:45:49 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))
[12:45:49 WARN]: [Skript] No matching field: Material#PLAYER_WALL_HEAD
[12:45:49 WARN]: [Skript] No matching constructor: ItemStack#<init> called with (<none> (Object))


CODE:

Code:
import:
    org.bukkit.SkullType
    org.bukkit.Material
    org.bukkit.inventory.ItemStack

    
effect place skull of %offlineplayer% at %location%:
    trigger:
        set {_block} to expression-2.getBlock()
        set block at {_block} to new ItemStack(Material.PLAYER_WALL_HEAD!)
        set {_state} to {_block}.getState()
        minecraft version contains "1.8":
            {_state}.setOwner("%expression-1%")
        else:
            {_state}.setOwningPlayer(expression-1)
        {_state}.update()
 
It's telling you that the field PLAYER_WALL_HEAD doesn't exist. What server version do you use?
 
In 1.8, you have to use the material SKULL instead of PLAYER_HEAD
 
It's disclosing to you that the field PLAYER_WALL_HEAD doesn't exist. What server variant do you use?
The issue is solved. He found a solution. Why are you commenting?
 
Status
Not open for further replies.