#how to make a laser beam
1 messages Ā· Page 1 of 1 (latest)
probably was too inactive.
i saw it. you were linked a very helpful tutorial and then did nothing
Same tutorial
OK. thanks for the update š
wait
can someone help me
idk how to make a cooldown
also I used that tutorial
so
pls help me
set {_x} to difference between {item.cooldown::%player's uuid%} and now
if only there was a way to find out what that was
1 google search is too difficult when you can just get someone else to search it up for u
what is skirptsnippets?
just tell me how to skirpt a cooldown into my laser
here is the code
on right click with blaze rod:
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8
use code blocks (```code here```) to make it easier to read
ok
idk
?
what that mean
am struggling with whatever link u guys aee trying to get me to
idk how to get to link
I just want a cooldown : (
wdym "telepathy"?
reading minds
No, we meant that instead of you explaining we should read your mind
Sarcasm, of course
Looks like the damage line is in the loop, meaning this damages the entity multiple times, and will also deal more damage from farther away. Assuming you only want it to damage once (and once the lazer reaches), you should remove it from the loop
No, you still want it to loop
oh
You just want to take the line where you damage out of the loop
?
the middle line? no
thats what "moves" the lazer forwards
you want to (not delete) the bottom line, but take it out of the section where you are looping
@clear badger if you put anything in the loop its going to loop a ton of times. Oh btw if you just want the beam to hit anywhere and just not on an entity replace target entity with target block
it worked for me
also ty for that
I just need to add a cooldown
then onemore thing
idk how to add cooldown tho
you can set a variable/metadata to now when someone uses it, and then check the time since that variable/metadata when they try to use it again
how i do that
š¤Ø
Have you tried anything?
yes
what would those things be
?
You still havenāt got this figured out yet? Lol
i meant, have you tried putting any ideas into code?
if you dont write code youll never get anywhere
idk tho
bro on the struggle bus
š¬
just try something. worst case, it doesnt work
2
if player's target entity is set:
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 5 seconds
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8 ```
Itās a cool down, not the best cooldown but a pretty easy one to understand
Honestly i dont think he has sknee
never heard of that
on right click with blaze rod:
if player's target entity is set:
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 5 seconds
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 1000 times:
draw 100 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8 ``` Real code @clear badger
the last man didnt do it right
lmk how it goes @clear badger
ok
Its no an ideal cooldown, but it is A cooldown
his skirpt adds a cooldown but it doesnt shoot laser any more
try this one
W
ur skirpt works
yay
ty
i did try it
it works
yayayyayayayya
ok
one more thing
I want it to check if blaze rod has enchantment "luck of the sea 100" if it doesnt laser wont work that way the laser doesnt just on any blaze rod but a specifc one that I gave a unobtainable enchantment to
Youād just add a check there after line 1
If event-item is enchanted with x:
That makes the most sense yes
ok
do I put the name
or the level
am assuming name but then where do I put the level
on right click with blaze rod:
If event-item is enchanted with luck of the sea:
if player's target entity is set:
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 2 seconds
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8
Search the discord for āis enchanted withā and see what kind of syntax you can come up with
ok
Yes try it
where i search that
Since you added a condition, everything else underneath needs tabbed 1
Basic sk stuff
ok
Iām on phone now so I canāt see what youāre doing if u post anything btw
oh ok
on right click with blaze rod:
If event-item is enchanted with luck of the sea:
if player's target entity is set:
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 2 seconds
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8
As far as code goes
If a line ends in a :
The next line is tabbed 1 space
bro
i keep gettung erros about spaces now
errors
do i add space there
or what
i counfused
Error on
Line 2
Goto Line
Can't compare an item stack with 'enchanted with luck of sea'
If event-item is enchanted with luck of sea:
Error on
Line 4
Goto Line
indentation error: expected 6 spaces, but found 8 spaces
if item cooldown of event-item for player = 0 seconds:
Error on
Line 5
Goto Line
indentation error: expected 6 spaces, but found 12 spaces
set item cooldown of event-item for player to 2 seconds
Error on
Line 6
Goto Line
indentation error: expected 6 spaces, but found 12 spaces
set {_v} to vector from player to target entity
Error on
Line 7
Goto Line
indentation error: expected 6 spaces, but found 12 spaces
set vector length of {_v} to 0.8
Error on
Line 8
Goto Line
indentation error: expected 6 spaces, but found 12 spaces
set {_loc} to location of player
Error on
Line 9
Goto Line
indentation error: expected 6 spaces, but found 12 spaces
loop (distance between {_loc} and target entity) / 0.1 times:
Error on
Line 10
Goto Line
indentation error: expected 6 spaces, but found 16 spaces
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
Error on
Line 11
Goto Line
indentation error: expected 6 spaces, but found 16 spaces
set {_loc} to {_loc} ~ {_v}
Error on
Line 12
Goto Line
indentation error: expected 6 spaces, but found 16 spaces
damage target entity by 8
i counfused
Google it
oh ok
i lost all my braincells reading through this thread
bruh
lemme test now
i hope it works
it doesn't work any more
on right click with blaze rod:
If event-item is enchanted with luck of the sea:
if player's target entity is set:
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 2 seconds
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8
it doesnt work at all anymore
Warning on
Line 2
Goto Line
Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
if player's target entity is set:
Error on
Line 3
Goto Line
Can't understand this condition: 'item cooldown of event-item for player = 0 seconds'
if item cooldown of event-item for player = 0 seconds:
Error on
Line 4
Goto Line
indentation error: expected 16 spaces, but found 12 spaces
set item cooldown of event-item for player to 2 seconds
Error on
Line 5
Goto Line
indentation error: expected 16 spaces, but found 12 spaces
set {_v} to vector from player to target entity
Error on
Line 6
Goto Line
indentation error: expected 16 spaces, but found 12 spaces
set vector length of {_v} to 0.8
Error on
Line 7
Goto Line
indentation error: expected 16 spaces, but found 12 spaces
set {_loc} to location of player
Error on
Line 8
Goto Line
indentation error: expected 16 spaces, but found 12 spaces
loop (distance between {_loc} and target entity) / 0.1 times:
Error on
Line 9
Goto Line
indentation error: expected 16 spaces, but found 12 spaces
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
Error on
Line 10
Goto Line
indentation error: expected 16 spaces, but found 13 spaces
set {_loc} to {_loc} ~ {_v}
Error on
Line 11
Goto Line
indentation error: expected 16 spaces, but found 12 spaces
damage target entity by 8
because there is an indentation error, and an empty configuration section
Do you have proper indentation?
Like where do you type the code
parsper
one tab per indentation level
but the guy that made the code used spaces
You just press tab
1 tab = 4 spaces
cannot use both together
yeah'
yeah
fix the indentation
make them uniform, and not have random single spaces
lines 2 and 3
you should probably look at some skript tutorials if you don't know how many tabs you need
whatever you increase them by, just make sure its consitent
thats literally it
also, please use code blocks
especially with inddentation errors
I have SkNee
what are cod blocks
what are code blocks?
wdym?
ok ill try
he wasn't talking to u
Sknee
```text```
''' e
(the button under escape)
oh
```code```
yup
e
yay it works
text
ok let me do code blocks
if player's target entity is set:
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 2 seconds
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8```
there
It looks like there's something wrong with your first indentation
(there isn't any)
Add a tab or spaces whatever is consistent with the rest of your code
Do you speak English or is it a second language
Google: what is indentation?
throughout your code, each time you indent (adding a space of some type at the beginning of a line), the spacing type has to be consistent all the way through your code, from top to bottom. So you can either indent with 4 spaces, or 1 tab. Most people use 1 tab.
Add 1 indent to every line down starting at line 2, that should fix your issue
I think it can also be 2 spaces
lol
likely
Once your indents are fixed (fix them now) then we can see the rest of the errors and work through them
ok
But who tf uses 2 spaces bro
let me try
It's so uncomfortable
Me. I much prefer it to tabs as I can see a lot more code
When I do complex stuff
I use no spaces
Without scrolling left right
Oh I just use VS code and I can see it fully
I got a 50" wide screen so i can see my code better, no scrolling left and right
if player's target entity is set:
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 2 seconds
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8```
like this>
bro
Ah yeah whatever works for whoever, I migrated from tabs cause of that tho
That looks alot better axolotl
yay
Ok, yeah but don't indent things unless they're conditions
Anyways 2 space is alr but I saw somebody using ONE
um'
If they don't have a :
yup
what is a codition again
if you ask what a condition is
Don't add space below
oh ok
:
Condition
ok
Anyway i uh quit for a while cause my brain sore. Next victim parr up
if event-item is enchanted with luck of the sea:
if player's target entity is set:
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 5 seconds
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8 ```
try this
how old are you axolotl
You forgot to add the while loop with no delay...
just wait till you discover the 'how do i teleport players along a circle' thread
(it was open for like 3 weeks+)
oh
how old u is blud?
12
understandable
bro did NOT read discord tos
who does
also is this how u give a blaze rod luck of the sea?
fricking FB having ass at 9
when i signed up, i said i was 25
that is not an ID
if on a server, use /minecraft:give
why luck of the sea though
but uh.. i think thats wrong anyways
idk
that is not doin shit
he doesnt know about differentiation yet, so hes using something else
random enchantment
use unbreaking, power or lure if you want an enchant glint
ok
Tbh if you spoon feed this guy he's just gonna keep coming back with worse questions and won't have learned anything
its not working
why would it care if you never tell it to
Error on
Line 2
Goto Line
Can't compare an item stack with 'enchanted with lure of the sea'
if event-item is enchanted with lure of the sea:
idk
that the erro parser said
tf lure of the sea
your code man
Luck of the sea my dude
its not lure of the sea
Or idfk hahaha
oops
Error on
Line 2
Goto Line
Can't compare an item stack with 'enchanted with lure of the sea'
if event-item is enchanted with lure of the sea:
Oh my lord
oops
sorry'
parsper says this error now Error on
Line 4
Goto Line
Can't understand this condition: 'item cooldown of event-item for player = 0 seconds'
if item cooldown of event-item for player = 0 seconds:
u know what
I think it willl work now
cuz i changed "lure of the sea"
to "lure"
wait
when I put the lure enchantment in my horbar
hotbar*
the enchantment dissappers
if event-item is enchanted with lure:
if player's target entity is set:
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 5 seconds
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8 ```
ok maybe it doesnt remove the enchantment but it just doesnt work at all anymore
also why do u need a if statement to add a cool down?
also why doesnt the lure enchantment show up for the blaze rod
but shows up for sharpness?
OMG BRUH I FIGURED IT OUT
FOR SOME REASON LURE DIDNT WORK
but sharpness works so I changed it
and it works now
yay
I need to changed another thing now
AM pretty sure the laser comes from ur feet I want it to come from ur head
or like body
if event-item is enchanted with sharpness:
if player's target block is set:
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 2 seconds
set {_v} to vector from player to block entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target block) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8```
I changed the code to target block and now the partucle wont show up anymore
particle
oh
oops
lol
nvm
I saw mistake
pls dont shame
ik saw the mistake
still doesnt work
if event-item is enchanted with sharpness:
if player's target block is set:
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 2 seconds
set {_v} to vector from player to block
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target block) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8 ```
i gtg
so
bye
Heres the thing, you started with one of the most difficult aspects of skript, theres definitely harder things, but vectors arent a thing many people mess with. I suggest maybe starting with some asier stuff some time, seeya
on right click with blaze rod:
If event-item is enchanted with luck of the sea:
if player's target entity is set:
send "yeet" to player
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 2 seconds
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 10 times:
draw 1000 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8```
i found the real code for you
it makes the cooldown a bit better
axolotl is fr 1000IQ
ur right
am not learning anything
am just destprtaley copying skirpts
so
lets start with something simple
the laser works
thats all that matters
shoudl I create a new post for this or what
also idk where to start
also am sorry am like this
i think it would be easier to grasp if you just set a metadata
if difference between now and (player's metadata tag "DiamondCooldown") <= 10 seconds:
send "You have not waited the full 10 seconds! You must still wait %difference between 10 seconds and (difference between now and (player's metadata tag "DiamondCooldown"))%" to player
stop
set (player's metadata tag "DiamondCooldown") to now
send "You have clicked me! Setting your cooldown to 10 seconds..." to player
wait 10 seconds
difference between now and (player's metadata tag "DiamondCooldown") >= 10 seconds
delete (player's metadata tag "DiamondCooldown")```
play around with that
ok
Is there somewhere I can learn how to use metadata tags? Idk where to learn how to do it
what about events
skunity forums i think
let me check
Metadata Tags
Introduction
Metadata tags are a form of temporary value storage, where you tie a value to a block or entity and that value will be wiped when the server restarts. This is convenient for holding information about a entity or block where you don't have to worry about removing it...
that skirpt is boring
Ah so it's kinda like a var but you don't have to delete it yourself
its just a cooldown example
Thanks
theres not much to do with the skirpt
u change change what button ur press
what item it is
and the cooldown
thats all
oh and maybe what it says
also what are logic erros
errors
@dire oriole
means you are trying to do something not possible
like if you are trying to use something but its been deleted/not set
well yeah, you have to incorporate the lazer
Logical error is when the skript loads just fine with no error, but the result does not match when you were intending or what it was supposed to do
oh ok
Aka
You make a command to take arg-1 and add it to arg-2
Arg-1 = 4
Arg-2 is 6
These 2 added together is 10, but if you get 24 instead, thatās a logical error
That's a good place to start
Where I learned
the basics at least lol
ok
@clear badger bro use this code
why this post has 500 comments? moderators should lock this a long time ago
Mind your business
Agreed
its a group project
we take shifts š¤£
unpaid :(
bruh
sorry
i can pay u all 1 rbx
cuz that all I have
guys I have a new idea for a simple skirpt because of that thing @meager wyvern sent me
i want to make a potato give u full hunger bars š
but uhh docs are confusing
seatch food
search food
and u will see it
hunger maybe
yeah?
Well, there's this
uhhh
lemme see
on consume of ___:
skirpt docs sucks bruh
i literaayl searched that up
nvm
set the player's food level to 10
does this look good?
I'd say, try it and see.
: D
am testing it now
my ping 8k tho
so its really hard
IT WORKS
YAY
AM A SKIRPTER
now I need to make posnious potato
the new god apple
or something else
Nice
wait
what if I made a drug (in minecraft of course)
so u eat it and it sets ur hunger to 0
so u want to eat it again
and cycle
You could maybe apply hunger effect instead, to make it gradually remove your food level over time.?
like, hunger 10 for 6 seconds
Just check the docs
ok
It's so simple to check
docs confusing
Bru
give me a link to the thing
They make stuff so ez
so I dont have to search it up
it says nothing
?????
ok
app version blessing fr
y e s
bruh
bruh
thats weird
f
docs make everything so confusin bruh
like wtf is all this
the syntax.
what ambient mean
I still get confused reading docs honestly but examples help a ton
yeah
there is a ambient type of haste?
theres ambient type of everything i think.
What even is ambient for potion effects anyways
oh
and i think a blue outline along the potion icon.?
Particle free potion effects? or what
Yeah, can do that do.
Oh wow
apply speed 1 without particles to player for 1 day
ok
Btw is with all flags hidden to hide enchantments & attributes?
yeah.
You could also use add nbt from "{HideFlags:255}" to nbt of tool wich i usually do :p
Very much so
Probably the most used skript addon?
wait how I add time limt
Wdym
and what abient do to effect again?
limit
to effect
time limit to effect
like set it for 10 seconds
set the player's food level to 10
apply ambient hunger 10 to the player```
no
:/
it says before 1.19.4
apply hunger 10 without particles to player for 10 seconds
also I need it in seconds
Yea
yes
Bro
magic
You can write the word seconds right? Is that physically possible
If you'd like
Anybody here play minehut? if so
server.pro is my most used host for free servers. It's pretty neat.
nice
Reccomend it
MH is terrible now
They limited free servers to 2 hours
Ik
What ip???????
minehut used to be good
I thought it was 4?
Axo, I'm using some mods on my test servers so you'd have to download them.
It's a server hosting isn't it?
bruhhhhhhhhhhhh
Very stupid
Oh i didnt bother reading that update
give us ip to good server host thing
They finna delete free servers
Powerful game server hosting for serious gamers. Try our free plan before deciding. Up and running in 55 seconds.
it not ip
You might have to wait in line at peak hours for ur server to start, but once it started you can keep it online all day.
You'd just need to do an anti bot check every hour
Its not a server to join..
nausea :>
YES
So you'd be willing to profit the positive effects at the cost of the negatives
yes
Jump boost
Maybe make more types of drugs.
One that focusses on speed (Speed, Haste, Dolhpin's Grace)
ok]
And other that focus on resistences like fire reisstance, absorbtion and resistance?
Wait how am I getting these ideas lol
u sure I should add nausea?
nahh nausea way to annoying lol
ok
i made it 5 seconds
the rest 25
set the player's food level to 10
apply hunger 100 without particles to player for 25 seconds
apply speed 5 without particles to player for 25 seconds
apply nausea 1 without particles to player for 5 seconds```
ok
And then give them a tonna slowness
so I need and event when they lose there speed they gain slowness
on consume:
if name of tool is "&7Funny Speed druggies":
apply nausea to player for 10 seconds
apply speed 2 to player for 30 seconds
apply haste 4 to player for 30 seconds
apply dolphins grace to player for 30 seconds
else if name of tool is "&7Resistant druggies":
apply nausea to player for 10 seconds
apply resistance 1 to player for 30 seconds
apply fire resistance 1 to player for 30
apply absorption 4 to player for 60 seconds seconds
Just an idea
uhh
offhand?
am just gonna do this for posnious potato tho
yea
Beaten at my own game
so
is there a event like when they lose there speed they gain anothe effect'
how i skirpt that
Well
Just a wait would work
You can clear their effects
Apply speed for x, wait x then do y
A wait then apply a new effect
so they get speed like u @meager wyvern and then get slowness after u lose speed
apply speed 2 to player for 30 seconds
wait 30 seconds
apply slowness 1 to player for 20 seconds
š„
š„
https://skripthub.net/docs/?id=976 btw that's tool or offhand tool if you want to do offhand
set the player's food level to 10
apply hunger 100 without particles to player for 25 seconds
apply speed 5 without particles to player for 25 seconds
apply jumpboost 3 without particles to player for 25 seconds
apply nausea 1 without particles to player for 5 seconds
wait 25 seconds
apply slowness 10 to player for 20 seconds```
here is skirpt
Honestly i would just stringify the two of them
stringify the two of what
what stringify mean?
oh
ā%name of playerās tool%%name of playerās offhand tool%ā contains āStuffā
well
Put it in quotes
parsper only says error on line 3
I don't think he wants any name tho
Error on
Line 5
Goto Line
Can't understand this condition/effect: apply jumpboost 3 without particles to player for 25 seconds
apply jumpboost 3 without particles to player for 25 seco
Isn't it called the parser?
ohgod thats clever, also didnt think of that before..

ok
jump boost*
It's up there but yea
again
space in between
set the player's food level to 10
apply hunger 100 without particles to player for 25 seconds
apply speed 5 without particles to player for 25 seconds
apply jumpboost 3 without particles to player for 25 seconds
apply nausea 1 without particles to player for 5 seconds
wait 25 seconds
apply slowness 10 to player for 20 seconds```
oh
gets me everytime too, lol
Nice
Maybe apply nausea after the wait 25 seconds
So that they get nauseous and slow at same time
If you think it is!
#comment
#
ok
ok
here final code
set the player's food level to 10
apply hunger 100 without particles to player for 25 seconds
apply speed 5 without particles to player for 25 seconds
apply jump boost 3 without particles to player for 25 seconds
apply nausea 1 without particles to player for 5 seconds
apply strength 10 without particles to player for 25 seconds
wait 25 seconds
apply slowness 10 to player for 20 seconds
apply nausea 1 without particles to player for 5 seconds```
No errors found
You're good to go!
Just to let you know, the Parser can't catch logic errors. So make sure your script works before sharing it.
Click to Parse
ill test it now
it works
typing #hwmkalrbm in discord search pops up only this one post
I'm way too bored rn
bruh
I got in minehut
now I have this random dude calling me dumb cuz i miss spelled skirpt
someone ban this dud
:/
dude*
join my server
for minecraft drugs
join in minehut the do "/join LadderSecret"
IN MINECRAFT"
what if I make it give the player 1 diamond when they eat it
how I do that
Look for the give effect
The docs are the first thing you check if you want to know how to do something
ok
help lol
Idk what I was thinking when I made this but
For some reason it don't trigger the loop and it randomly sends the you bypasss this cooldown for this ability. You may use it freely. part
Ohh I see 1 of the problems
What kinda logic did i even USE there
That logic is trash dude
I'm pretty fond of weapons and magic, I can help at times.
hi
ok
ty'
but
what I searc up
search up to get the docs to item
item giver
what do I search up in the bar to have like the docs for what I need (item giver)
Just do give [player] [item]
so it gives them a item
oh
ty
how do u make it so the player cant eat any other food
like for my skirpt when they eat this food they cannot eat any other food
but they only can now eat that food that they just ate
well, start with the on comsume event, check what items you want the player to be able to eat and if it isn't the item, cancel event
on consume of potato
only eat potato
something like that
i already know that
on conmsume
only potato
so once they eat a potato they can only eat potato
for ever
or for time limt'
on consume:
event-item is a potato:
do stuff
else:
cancel event```
ok
set the player's food level to 8
apply hunger 255 without particles to player for 50 seconds
apply speed 5 without particles to player for 25 seconds
apply jump boost 3 without particles to player for 25 seconds
apply strength 10 without particles to player for 25 seconds
apply regeneration 5 without particles to player for 25 seconds
give player poisonous potato
wait 25 seconds
apply slowness 5 to player for 5 seconds```
how would I apply that to this?
oh ok
idk how to apply that
help
PLS HELEPPELEPE'
event-item if a poisonous potato:
set the player's food level to 8
apply hunger 255 without particles to player for 50 seconds
apply speed 5 without particles to player for 25 seconds
apply jump boost 3 without particles to player for 25 seconds
apply strength 10 without particles to player for 25 seconds
apply regeneration 5 without particles to player for 25 seconds
give player poisonous potato
wait 25 seconds
apply slowness 5 to player for 5 seconds
```
event-item if a poisonous potato:
set the player's food level to 8
apply hunger 255 without particles to player for 50 seconds
apply speed 5 without particles to player for 25 seconds
apply jump boost 3 without particles to player for 25 seconds
apply strength 10 without particles to player for 25 seconds
apply regeneration 5 without particles to player for 25 seconds
give player poisonous potato
wait 25 seconds
apply slowness 5 to player for 5 seconds``` help
Sovdes github goes over bow to use the docs
What is line 2 š
Beginner tutorial
tutorial >
But im assuming line 2..
well idk what to do
us asf
Check out the sovdes github
am trying to make when they eat potato they cant eat any other food but potato
i was trying to add that with line 2
gl!
set the player's food level to 8
apply hunger 255 without particles to player for 50 seconds
apply speed 5 without particles to player for 25 seconds
apply jump boost 3 without particles to player for 25 seconds
apply strength 10 without particles to player for 25 seconds
apply regeneration 5 without particles to player for 25 seconds
give player poisonous potato
wait 25 seconds
apply slowness 5 to player for 5 seconds```
bruh
wdym gl
i need help
I mean gl
ur supoose to help me
you're supposed to say whats wrong with it
and no, im not supposed to help
so you don't need help
thats very helpful š
bruh
ill tell u whata m aadggingqpwsrjghBjenkl
when they eat posion potato they cant eat any other food but posion potato
that what am trying to do bruh
so set a variable unique to the player to true
what???????
then check if that variable is true, if event item isnt poisonous potato, cancel the event
.
I cannot send you a link
bruh
you must find it yourself
ur the worst help ever
oh ok'
go look for github acc sovdeeth, then find his skript-tutorials
.
help
You need to try to figure out how to do some thingās yourself
bruh
thats what I have been doing
but now I need ur help
um
send me a link then
to docs
How tf does this Post have 1.000+ messages and still isnt solved?
uhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Its a basic tutorial, please do
oh
It was sent in here earlier