Not changing name

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

CryLool

New Member
Aug 20, 2023
5
0
1
23
Im trying to make a auto comp skript for the pass 4 hours, i have not been able to change the fricking name of the block to something else because it has damage and has the skullsid tag from the skulls plugin. Please help me before i end up breaking something. Thank you!
 
variables:
{autocompressor::%player%.compress} = true



command autocompressortoggle:
aliases: /act, /autocompt, /comptoggle, /toggleac
permission: autocomp.comp
permission message: &cBuy the voucher in shops!
cooldown: 3 seconds
cooldown bypass: op
cooldown message: &cPlease wait %remaining time% before using this command again!
trigger:
if {autocompressor::%player%.compress} is true:
set {autocompressor::%player%.compress} to false
send "&cAuto-Compressor is now set to %{autocompressor::%player%.compress}%!"
else if {autocompressor::%player%.compress} is false:
set {autocompressor::%player%.compress} to true
send "&aAuto-Compressor is now set to %{autocompressor::%player%.compress}%!"

every 0.1 second:
loop all players:
if loop-player is holding stick named "&eDiamond Block":
set name of the loop-player's held item to "&6Compressed Diamond Block"
enchant the loop-player's tool with mending
add armor trim flag and attributes flag and destroys flag and dye flag and enchants flag and placed on flag and potion effects flag and unbreakable flag to hidden item flags of loop-player's tool


every 0.1 second:
loop all players:
if loop-player has a slimeball named "&6Auto-Compressor":
if {autocompressor::%loop-player%.compress} is true:
if loop-player has 64 block of diamond:
remove 64 block of diamond from loop-player
console command "skulls give %loop-player% 97"