#Action bar
1 messages · Page 1 of 1 (latest)
send action bar "%string%" to player
i havent learnt what string means yet
so how would i implement that do i just add the "%string%"?
send action bar "&3+2/%{Woodexp::%player%} >= 10 * {Woodlevel::%player%}%" to playerlike this?
cause ive tried this and it didnt work
any help for these errors?
‘’’’send action bar “%{Woodexp::%player%}%/%{total::%player%}%” to player’’’ if you have a total exp needed for the level
figured it out yet or no?
this does kinda work its just that i need the total to be {Woodexp::%player%} >= 10 * {Woodlevel::%player%}
no
can you try =>
He is literally sending the action bar “%condition%” how would => help
the > or < has to be before =, so >=
ik I just thought the other way when I sent the message
I dont know that much about skript
wait can you show me where you are now, and explain what you want again.
So {Woodexp::%player%} >= 10 * {Woodlevel::%player%} is the total needed and i want that to send in an action bar like send action bar "&3+2/(total needed) to player
so what you want to do is to display the the amount of xp remaining out of the total needed in the action bar correct?
I want to display what you just gained out of the total needed and the xp you just got is the first part &3+2/
I suggest doing something like this
send action bar "&3<xp gained> <currentxp>/<neededxp>" to player
Whats the <> for?
you can ignore those, just so it will be more clear where everything is
im still confused on how to get the needed xp to show {Woodexp::%player%} >= 10 * {Woodlevel::%player%}
What are you trying to do?😅
here
hmm
if {Woodexp::%player%} >= (10 * {Woodlevel::%player%}):
send action bar "&3<xp gained> <currentxp>/<neededxp>" to player
should be working
woodxp is when u break a block you get xp for it and with other chances and woodlvl is just the level from getting a specific amount of woodxp
but why do u need the if?
idk i was just seeing if this would work
or i find a way to get this number {Woodexp::%player%} >= 10 * {Woodlevel::%player%} and put it into like {WoodReq::%player%} or something like that
no need
is what you are trying to do only to display how much you gained and how much is left until next level?
yes
i am thinking i am dumb
oh in the <>
show me the code
now im here
code
if event-block is oak wood or birch log or spruce log or jungle log or acacia log or dark oak log:
if {NoBlockDrop::%player%} = true:
chance of {WoodChance::%player%}%:
cancel drops of items
give 2 of event-block to player
send action bar "&3+2 %{Woodexp::%player%}/{Woodlevel::%player%}%" to player
add 2 to {Woodexp::%player%}
chance of {TripWoodChance::%player%}:
cancel drops of items
give 3 of event-block to player
send action bar "&3+3 %{Woodexp::%player%}/{Woodlevel::%player%}%" to player
add 3 to {Woodexp::%player%}
else:
give 1 of event-block to player
send action bar "&3+1 %{Woodexp::%player%}/{Woodlevel::%player%}%" to player
add 1 to {Woodexp::%player%}
else:
chance of {WoodChance::%player%}%:
cancel drops of items
drop 2 of event-block
send action bar "&3+2 %{Woodexp::%player%}/{Woodlevel::%player%}%" to player
add 2 to {Woodexp::%player%}
chance of {TripWoodChance::%player%}:
cancel drops of items
drop 3 of event-block
send action bar "&3+3 %{Woodexp::%player%}/{Woodlevel::%player%}%" to player
add 3 to {Woodexp::%player%}
else:
cancel drops of items
drop 1 of event-block
send action bar "&3+1 %{Woodexp::%player%}/{Woodlevel::%player%}%" to player
add 1 to {Woodexp::%player%}```
you are dividing the xp with the level
how do i make it the number of {Woodexp::%player%} >= 10 * {Woodlevel::%player%}
cause thats the req xp for next level
this is not a number, its a boolean
i also have thison join: while player is online: if {Woodexp::%player%} >= 10 * {Woodlevel::%player%}: add 1 to {Woodlevel::%player%} add 2 to {WoodChance::%player%} play sound "entity.player.levelup" at volume 1 and pitch 1 to player send "&3&l━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" to player send "<tooltip:&eClick to view your WoodCutting progress!><run command:/Woodstats>&b&lSKILL LEVEL UP &3Woodcutting &8%{Woodlevel::%player%}-1%&l➜&3%{Woodlevel::%player%}%<reset>" to player send "" to player send "&a&lREWARDS" send " &eWoodCutting %{Woodlevel::%player%}%" to player send " &8%{WoodChance::%player%}-2%%%&l➜&a%{WoodChance::%player%}%%% &fChance for double logs" to player send " &8+&b5XP" to player send "&3&l━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" to player add 5 to {exp::%player%} set {Woodexp::%player%} to 0 wait 1 second
listen this is all suppose to be really simple, this is just understanding how strings work and simple math
where are you storing xp needed
It isnt stored cause idk how to cause this is the requirements for next lvl {Woodexp::%player%} >= 10 * {Woodlevel::%player%}