Sueta

KhCore

1.6

A skript with my APIs.

·Script

KhCore informations
⦁ Server version: 1.8x
⦁ Depend: LeafSk, SkQuery, Skellett, SkStuff and Skript. Click here to download.
Use NametagEdit to make the tags work.
For any other pieces of information, don't hesitate to contact me via Discord! (kick#0808)

Main skript features:

deserializeItem

Create an item from a string.
Format: 'MATERIAL : QUANTITY : tag>value'

Properties (TAGS) available:

  • nome>&aHello - Set the Item name.
  • desc>&7Line 1\n&7Line 2 - Sets the Item description.
  • encantar>SHARPNESS:1\nKNOCKBACK:1 - Enchant the Item.
  • pintar>blue - Color item.
  • dono>Notch - Set the owner of a head.
  • nbt>{HideFlags} - Set custom nbt on items.
  • owner_id - Set owner id of custom skull.
  • value - Set value of custom skull.

Example:

  1. give player deserializeItem("HEAD:3 : 1 : dono>kiberzn : nome>&aHead : desc>&7Description : encantar>KNOCKBACK:1", player)
  2. set slot 0 of player to deserializeItem("LEATHER_HELMET : pintar>pink", player)
  3. give player deserializeItem("425 : nome>&aWall of Bricks : nbt>{BlockEntityTag:{Base:0,Patterns:[{Pattern:bri,Color:1}]}}", player)
  4. set slot 1 of player to deserializeItem("HEAD:3 : nome>&aSpider : owner_id>39173a7a-c957-4ec1-ac1a-43e5a64983df : value>eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDE2NDVkZmQ3N2QwOTkyMzEwN2IzNDk2ZTk0ZWViNWMzMDMyOWY5N2VmYzk2ZWQ3NmUyMjZlOTgyMjQifX19", player)
serializeLocation

Transforms a location into a string.
Format: 'world; x; y; z; yaw; pitch'

Example:

  1. set {location} to serializeLocati(player's location)
deserializeLocation

Transforms a string into a location.
Format: 'world; x; y; z; yaw; pitch'

Example:

  1. teleport player to deserializeLoca("world, -12.98, 75, 31.66, 0.02, 12.74'')
formatNumber

Formats a number "#,###" using DecimalFormat.

Example:

  1. send FormatNumber(2022) | The returned value will be '2,022'
stripColors

Removes all colors from a string.

Example:

  1. send strip colors from "&aHelo &bWorld!" | The returned value will be "Helo World!"
FirstColor

Gets the first color of a string.

Example:

  1. send first color from "&aHelo &bWorld!" | The returned value will be "&a"
LastColor

Get the last color of a string.

Example:

  1. send last color from "&aHelo &bWorld!" | The returned value will be "&b"

Files:

roles.yml
roles:
 default:
  name: 'Membro'
  prefix: '&7'
  permission: 'none'
 vip:
  name: 'Vip'
  prefix: '&e[VIP] '
  permission: 'roles.vip'
  broadcast: true
 master:
  name: 'Master'
  prefix: '&6[Master] '
  permission: '*'
  broadcast: true

Similar projects

Script →