#Help with some lines
1 messages · Page 1 of 1 (latest)
Hello ive got a problem with 3 lines in my skript
if {StrengthMin::%player%} is not set or {StrengthMin::%player%} is 0:
That
if attacker is in weather rain:
This
set cooldown of dragons breath for %player% to 2 seconds
And this
@clear pawn
what?
instead of in rain should probably check if weather is rain
are you using skream?
I believe it can be raining and you not being in rain
hm yeah
why would they be using a random addon like that
thats where he got the condition from
where did you get if attacker is in rain
what are you setting {strength::%player%} to?
Its custom potion
That he wants to make
With some effects
And custom crafting recipe
did he make the skript or did you?
he downloaded it from somewhere😭
ok tell him to make his own or ask some1
yeah probably searched it on the mh bot which is outdated sorta
But like its outdated so some lines show errors
Could u help with those 3 lines like ive fixed any other error only those 3 are confusing me
🙏
that skript is most likely extremely outdated
^
send the full skript please?
idc
Okay
if your worried about nitro do upload as file
the hell
then don't use it
infuse skript 🤦♂️
@sonic totem tell your friend to stop being a bum and just find a plugin or create something
bruh
i came here for help for the lines
and as i said
He doesnt want to
Because hes lazy
And he just made an smp
So like he doesnt have time
Smps aren't something you should rush
also tell your friend if hes going to steal from others he should at least know what hes doing
infuse copy smh
- you ignored me
- most of these lines i cant help because its outdated
i didn’t ignore u
scroll up i said what it was for
I mean like there is multiple of that line but in different names
also with the way skript works its not gonna show any errors until alot of these are fixed
so its alot more then 3
most likely
but like the other potions work
and they are just copy pasted texts with different names
yeah but you didn't say what it was suppose to be set to
like what should it be set to i mean
?
wouldnt it be if weather in "%world of player%" is rainy or something
It thinks its a damage death situation
oh yeah cuz victim doesnt matter
i dont think it understands or
I switched rhe line
To
if {StrengthMin::%player%} is 0 or {StrengthMin::%player%} is not set:
{StrengthMin::%player%} = 0```
So i switch or with and
if any:
condition 1
condition 2
then:
do stuff
wym by do stuff
I dont understand what u meant by condition 1 condition 2 and do stuff
conditions are your if statements
if any:
{StrengthMin::%player%} is 0
{StrengthMin::%player%} is not set
then:
do stuff
I dont want it to do stuff
?
then:
stop
Wait ill send u a ss of the lines beneath aswell
ok
thats what you want to do if its set to 0?
this is what it does
if any:
{StrengthMin::%player%} is 0
{StrengthMin::%player%} is not set
Would this work?
yeah im pretty sure
yes but you need to add the then: part
under then is the code
whatever you want to happen if {StrengthMin::%player%} is 0 or if its not set
if {StrengthMin::%player%} is 0 or {StrengthMin::%player%} is not set:
then:
stop
Wait
that doesnt work
Yea ik
isnt then only put after if any:
if any:
{StrengthMin::%player%} is 0
{StrengthMin::%player%} is not set
then:
stop
just set the variable earlier to 0 then do if {StrengthMin::%player%} is 0:
oh yeah
So fix it
ong
Alr
on right click:
if player's tool is dragon breath:
if {Primary::%player%::*} contains "Ender":
if player has player's tool on cooldown:
stop
else:
cancel event
set cooldown of dragons breath for %player% to 2 seconds
remove 1 of dragon breath from player's inventory
wait 2 seconds
remove absorption from player
remove regeneration from player
apply absorption 2 to player for 2 minutes
apply regeneration 2 to player for 5 seconds
play sound "entity.player.burp" to player
set cooldown of dragons breath for %player% to 2 seconds
Is this your fixxed thing or what?
no im sending the code for that part
K
So "dragons breath" isn't a condition
Only reason the stuff above is correct is because its a item.
Do you want the minecraft cooldown?
U can still set a cooldown to drinking it
set item cooldown of dragon breath for player to 2 seconds
Try that but add %player%
Alr
Hm
o wait
Yea i dont know, try messing with things.
would event-item work
set item cooldown of player's tool for player to 2 seconds
or like this
no wait
set item cooldown of event-item for player to 2 seconds
player's tool will be just the tool
set item cooldown of event-item "dragon breath" for %player% to 2 seconds
no?
set item cooldown of %event-item% for %player% to 2 seconds
you dont need the %%
yeah
thats only for stuff inside text
if event-item is "dragon breath":
set item cooldown for %player% to 2 seconds
remove %
an item cant be a text. the code reads that as:
if dragon breath is "dragon breath" which its not. those are two different things. one is a text and the other is an item
Ive made an auto compressor before
And i did like
If event-item = “block” or “blah”
it worked
yeaaaa
did you make this code btw?
nope
im just helping a friend
if event-item is "dragon breath": set item cooldown for player to 2 seconds
This doesnt work
Cya
remove the quotes
and try it
send error and code
if event-item is dragon breath: set item cooldown for player to 2 seconds
And its the same error message
cant understand condition/effect
send the full code
the full script?
what was that
Without dragon breath after event-itsm
???
i just told you to remove the quotes here
set item cooldown of %event-item% for %player% to 2 seconds
yes just remove the %% signs
yes