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 our 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.

can't register new recipes

Discussion in 'Skript' started by Deavil, Jun 13, 2019 at 3:40 AM.

  1. D

    Deavil Active Member

    Joined:
    Jun 4, 2019
    Messages:
    26
    Likes Received:
    0
    so for some reason i can't register a new recipie for glistering melon how ever i can for a golden apple, here is the code:
    Code (Skript):
    1.  
    2. on load:
    3.    register new shapeless recipe for golden apple item named "&6Golden Head" with lore "&5&oSome say consuming the head of a||fallen foe strengthens the blood" using gold ingot, gold ingot, gold ingot, gold ingot, player head, gold ingot, gold ingot, gold ingot, gold ingot
    4.    register new shapeless recipe for glistering melon item named "&r&6Glistering Melon" using air, air, air, block of gold, melon slice, air, air, air, air
    5.  
    and this is the error i am getting:
    https://i.badlion.net/W8x8XZgqi4dQ9PmSyVvPjg.png

    if anyone can please tell me how to fix this?
    another thing is this code to set a player's head on fence on death wont work aswell, i am getting no errors, here is the code:
    Code (Skript):
    1.  
    2. on death:
    3.    victim is a player
    4.    if {dhead} is "floor":
    5.        set {_head} to skull of "%victim%" parsed as offlineplayer
    6.        drop {_head} named "%victim%'s Head" at location of victim
    7.    else if {dhead} is "fence":
    8.        set {_location} to victim's location
    9.        set {_x} to x coord of {_location}
    10.        set {_y} to y coord of {_location}
    11.        set {_y} to {_y} +1
    12.        set {_z} to z coord of {_location}
    13.        set {_location2} to location {_x}, {_y}, {_z} in world of victim
    14.        set block at {_location} to nether brick fence #That work
    15.        set {nameofvictim} to "%victim%"
    16.        message "%{nameofvictim}%" to all players
    17.        console command "/fill %{_x}% %{_y}% %{_z}% %{_x}% %{_y}% %{_z}% minecraft:skull 1 replace {SkullType:3, ExtraType:%{nameofvictim}%}"
    18.  
    everything works up untill the fill command, its executing the fill command but the head isn't being placed, please help me fix these two, i have been trying for about a week with no success.
    my server version is 1.8 and skript version is 2.2 dev36.
    thx
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,810
    Likes Received:
    125
    this is probably because you are using the wrong alias
    Code (Text):
    1.     # -- glistering melon --
    2.     glistering[(_| |-)]melon¦s = 382
    --- Double Post Merged, Jun 13, 2019 at 4:14 AM, Original Post Date: Jun 13, 2019 at 4:13 AM ---
    Fill command cant be run from console since you can not input a world.
     
  3. D

    Deavil Active Member

    Joined:
    Jun 4, 2019
    Messages:
    26
    Likes Received:
    0
    i tried using the id and it didn't work still
    for the fill command, what can i do so it will spawn the head in the world of the victim's death?
    --- Double Post Merged, Jun 13, 2019 at 6:54 AM ---
    for the head on fence, will it work if i make a certain player execute the set block command which is in the world of the victim's death? or is there a way to make it work with diffrent worlds?
    --- Double Post Merged, Jun 13, 2019 at 7:21 AM ---
    i have checked the /fill command, it does work from console however the head spawns in the world spawn and not in the world of the victim's death, any way to make it execute the command in the world of victim's death? @ShaneBee
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,810
    Likes Received:
    125
    I already answered this, fill doesn't work from console because you cant include the world, sure it may "work" but its clearly not working, because like I said, you cant include the world.
    --- Double Post Merged, Jun 13, 2019 at 7:52 AM, Original Post Date: Jun 13, 2019 at 7:50 AM ---
    You would have to use Skript's set block effect, and then either use an add-on that allows setting the skull owner (I think Skellett has something) or you can use an NBT addon to set the NBT of the block
     
  5. D

    Deavil Active Member

    Joined:
    Jun 4, 2019
    Messages:
    26
    Likes Received:
    0
    mind showing me how to do so with skellett?
    and what about the register recipe issue?
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,810
    Likes Received:
    125
    I don't know how to do it with Skellett I just think you can do it, you'd have to check the docs.

    The recipe issue, Im not sure about.
     
  7. D

    Deavil Active Member

    Joined:
    Jun 4, 2019
    Messages:
    26
    Likes Received:
    0
Loading...