#HELP WITH MY 2 SKRIPTS

1 messages · Page 1 of 1 (latest)

sly shadow
#

`command zombie:
permission: *
trigger:
spawn zombie at player's location
equip last spawned zombie with leather cap of protection 6
equip last spawned zombie with leather tunic of protection 6
equip last spawned zombie with leather leggings of protection 6
equip last spawned zombie with leather boots of protection 6
give {zomb} to last spawned zombie

    if {zomb} is set:
        give {zomb} to the last spawned zombie
    else:
        broadcast "No item has been set for the zombie."

command /setzomb <text>:
permission: op
trigger:
if arg-1 is "zomb":
set {zomb} to player's tool
broadcast "test"`

AND

on rightclick with amethyst shard: if event-item's name is "&5Speed gem": cancel event if {beam.lastused.%player's uuid%} is not set: set {beam.lastused.%player's uuid%} to 1 send "wait 60s b5 using gem again" to player if {beam.lastused.%player's uuid%} = 1: set {beam.lastused.%player's uuid%} to 0 wait 60 seconds #Cooldown time add 1 to {beam.lastused.%player's uuid%} apply swiftness 2 to player for 5 seconds

slow micaBOT
# sly shadow !format

:technologist: Code Blocks

To make it easier for others to read your code, it is asked that you send it in a code block. On Discord, you can simply send this:

```
Code here
```

sly shadow
#

ok?

#

``command zombie:
permission: *
trigger:
spawn zombie at player's location
equip last spawned zombie with leather cap of protection 6
equip last spawned zombie with leather tunic of protection 6
equip last spawned zombie with leather leggings of protection 6
equip last spawned zombie with leather boots of protection 6
give {zomb} to last spawned zombie

    if {zomb} is set:
        give {zomb} to the last spawned zombie
    else:
        broadcast "No item has been set for the zombie."

command /setzomb <text>:
permission: op
trigger:
if arg-1 is "zomb":
set {zomb} to player's tool
broadcast "test"``

#

AND

#

on rightclick with amethyst shard: if event-item's name is "&5Speed gem": cancel event if {beam.lastused.%player's uuid%} is not set: set {beam.lastused.%player's uuid%} to 1 send "wait 60s b5 using gem again" to player if {beam.lastused.%player's uuid%} = 1: set {beam.lastused.%player's uuid%} to 0 wait 60 seconds #Cooldown time add 1 to {beam.lastused.%player's uuid%} apply swiftness 2 to player for 5 seconds

sly shadow
#

not with a single `

#

ok

#
    permission: *
    trigger:
        spawn zombie at player`s location
        equip last spawned  zombie with leather cap of protection 6
        equip last spawned zombie with leather tunic of protection 6
        equip last spawned  zombie with leather leggings of protection 6
        equip last spawned zombie with leather boots of protection 6
        give {zomb} to last spawned zombie

        if {zomb} is set:
            give {zomb} to the last spawned zombie
        else:
            broadcast "No item has been set for the zombie."

command /setzomb <text>:
    permission: op
    trigger:
        if arg-1 is "zomb":
            set {zomb} to player's tool
            broadcast "test" ```

**ZOMBIE NOT TAKIN THE ITEM THAT I WANT TO HIM  TAKE By ./setzomb ( aka set the players held item into the ozombie sword.
#

AND

#
   if event-item's name is "&5Speed gem":
      cancel event
      if {beam.lastused.%player's uuid%} is not set:
         set {beam.lastused.%player's uuid%} to 1
         send "wait 60s b5 using gem again" to player
      if {beam.lastused.%player's uuid%} = 1:
         set {beam.lastused.%player's uuid%} to 0
         wait 60 seconds #Cooldown time
         add 1 to {beam.lastused.%player's uuid%}
         apply swiftness 2 to player for 5 seconds
#

tjere

#

@sly shadow

#

u

#

uh

#

whatis the issue again?

humble token
sly shadow
#

lemme see

sly shadow
#

@humble token

#
   if event-item's name is "&5Speed gem":
      cancel event
      if {beam.lastused.%player's uuid%} is not set:
         set {beam.lastused.%player's uuid%} to 1
         send "wait 60s b5 using gem again" to player
      if {beam.lastused.%player's uuid%} = 1:
         set {beam.lastused.%player's uuid%} to 0
         wait 60 seconds #Cooldown time
         add 1 to {beam.lastused.%player's uuid%}
         apply swiftness 2 to player for 5 seconds```
#

fix this pls?

sly shadow
#

the gem cooldownt doesnt work

#

I want ::

ON right click of the gm

we get speed II for 60s

And theres a coodlwon of 250 seconds to ues it agami

#

uh

#

this code is very weird

#

there is no 250 seconds part

#

im new to skript @sly shadow

#

I see

zenith solar
# sly shadow the gem cooldownt doesnt work

I use the minecraft vanilla cooldown. I think its just set cooldown of item to 250 seconds and you check for it like if player has item on cooldown im not sure if thats the right code but i know it exists.

#

🤗

spice crater
#

if you use the Minecraft vanilla cooldown

#

its gonna stop you from doing Minecraft vanilla stuff

#

but you gotta create an actual cooldown variable

quick gust