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!

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

Addon Skellett - The beast addon! 1.9.6b

All your Skript needs in one addon!

  1. LimeGlass

    Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    597
    Likes Received:
    412
    Medals:
    I suggest using skript-db for MySQL rather than Skellett's and disabling Skelletts. It's old and outdated MySQL methods.
     
  2. Waltz

    Waltz Member

    Joined:
    Feb 18, 2017
    Messages:
    3
    Likes Received:
    2
    Here is a replacer for that effect using skript-mirror, if you still need it (1.13.2):
    Code (Skript):
    1.  
    2. import:
    3.     org.bukkit.Bukkit
    4.     io.netty.buffer.Unpooled
    5.  
    6. option nms:
    7.     get:
    8.         set {_nms} to Bukkit.getServer().getClass().getPackage().getName().split("\.")[3]
    9.         return "net.minecraft.server.%{_nms}%"
    10.  
    11. import:
    12.     {@nms}.PacketPlayOutCustomPayload
    13.     {@nms}.PacketDataSerializer
    14.     {@nms}.EnumHand
    15.     {@nms}.MinecraftKey
    16.  
    17.  
    18. #will change to Open Book packet in 1.14: https://wiki.vg/Pre-release_protocol#Open_Book
    19. effect open book %itemstack% to %player%:
    20.     trigger:
    21.         set {_p} to expression-2
    22.         set {_held} to tool of {_p}
    23.         set {_book} to expression-1
    24.  
    25.         set tool of {_p} to {_book}
    26.  
    27.         set {_serializer} to a new PacketDataSerializer(Unpooled.buffer()).a(EnumHand.MAIN_HAND!)
    28.         set {_key} to MinecraftKey.a("minecraft:book_open")
    29.         set {_packet} to a new PacketPlayOutCustomPayload({_key}, {_serializer})
    30.         {_p}.getHandle().playerConnection!.sendPacket({_packet})
    31.  
    32.         set tool of {_p} to {_held}
    33.  
     
    • Like Like x 2
Loading...