#Custom /Drop Command Help.

1 messages · Page 1 of 1 (latest)

zealous mountain
#

How do you create a /drop command, where you can toggle drops being dropped and toggle drops not being dropped, so you don't accidentally drop an item. Please help.

timber gyro
#

You make the command

#

Which sets a var

#

And then you have the on drop event

#

And if the var is on

#

You cancel the event

#

Or something like that

zealous mountain
#

...

#

uhhh

timber gyro
#

Try

#

And I'll help you fix it

#

Or do you not know how to make a command

zealous mountain
#

that is the thing I just don't know lmao

#

I know how to make a command I just don't know what I need for it

timber gyro
#

Basic command

#

That either sets or deletes a var

zealous mountain
#
  trigger:```
That is all I know
timber gyro
#

Ye

#

So come up with a variable name

zealous mountain
#

Variables... :/

timber gyro
#

You dont know variables?

zealous mountain
#

lmao

#

no

#

is there a youtube thing or you know you could just tell me 😉

timber gyro
zealous mountain
#

what that

timber gyro
#

1st link has a lot of useful stuff

#

2nd one is the variable help page

zealous mountain
#

which variable do I study for this

#

local, global, or ram

timber gyro
#

Learn all of them but you need list

zealous mountain
#

:/

#

😲

#

this'll take a while

timber gyro
#

Not really

#

I read through it in under 5m

zealous mountain
#

ok I'll read and tell you if I understand

vernal sluice
timber gyro
zealous mountain
#

"They"

timber gyro
#

What

zealous mountain
#

I am not multiple people

#

Little english lesson

timber gyro
#

...

zealous mountain
#

lol

timber gyro
#

They is a gender neutral pronoun

#

Little english lesson

zealous mountain
#

LITTLE ENGILSH LESSON
THEY - used to refer to two or more people or things previously mentioned or easily identified

#

two or more two or moretwo or more

#

LITTLE ENGLISH LESSON

#

🙂

timber gyro
#

Are we in used to time?

zealous mountain
#

que?

timber gyro
#

I live in the present not the past

zealous mountain
#

:/

short laurel
zealous mountain
short laurel
#

this is the problem with our generation

timber gyro
#

Well how ya doing zippity zoo dot

spare goblet
zealous mountain
short laurel
#

idfk dude people are way too soft nowadays

timber gyro
zealous mountain
# timber gyro ;)

I read the "variables" and nothing is even close to what I am looking for

timber gyro
#

You need a list variable

#

Make one that stores info for the player who executed the command

#

Its gonna decide whether drops are on or off

short laurel
#
command /drop:
  trigger:
    if {dropallow::%player's uuid} is not set:
      set {dropallow::%player's uuid} to false
      send "You can no longer drop items!" to player
    else if {dropallow::%player's uuid} is false:
      set {dropallow::%player's uuid} to true
      send "You can now drop items again!" to player
         else:
            set {dropallow::%player's uuid} to false
            send "You can no longer drop items!" to player

on drop:
  if {dropallow::%player's uuid} is false:
    cancel event
    send "You can't drop items" to player

this will do I think

timber gyro
#

Uh

#

Idk if its just cuz im on mobile but that indentation looks bad

vernal sluice
#

it's fine just using 2 spaces for some reason

timber gyro
short laurel
#

identation is fine but I think he does need to re-adjust it cause of discord

short laurel
#

alr

timber gyro
#

Fix the indentation

short laurel
#
  1. indentation
#
  1. I forgot a %
timber gyro
#

And use % properly

zealous mountain
#

the % in uuid

short laurel
#

you really should learn skript instead of telling it to someone so they can fix it

zealous mountain
#

or where do I put the %

short laurel
#

after uuid

zealous mountain
#

There are 3 more errors

short laurel
#

indentation

zealous mountain
#

ah

short laurel
#

!indent

zealous mountain
#

I read thhat lmao

short laurel
#

try using tabs instead of spaces, easier to detect the problem

zealous mountain
#

I fixed it

#

I forgot how you call those things where you can use multiple things for 1 commands for example /drop and /drops do the same thing, was it called alliases and if so how do you do it lmao