Jump to content

Help me whit my script :D


RoustyTousty

Recommended Posts

Hello so i have this block regen script that regens the blocks and gives player exp the problem is that every time some one mines the block every one that has op will receve it in chat. Is there a better way to do this so it dosnt flod the chat for staff. (is there a better way to give players xp?)

 

on mine of coal ore:

execute console command "/experience add %player% 5"

set event-block to bedrock

wait 15 seconds

set event-block to coal ore

 

Edited by RoustyTousty
Link to comment
Share on other sites

Hey there.

Have a look at this:

on mine of coal ore:
    give player 5 experience
    set event-block to bedrock
    wait 15 seconds
    set event-block to coal ore

So basically, skript has an in-built expression give %player[s]% %integer% experience which will give the player experience points.

You don't have to worry about the default minecraft command feedback anymore (The one which says [Console: Blah Blah])!

😃

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

1 hour ago, RoustyTousty said:

Hello so i have this block regen script that regens the blocks and gives player exp the problem is that every time some one mines the block every one that has op will receve it in chat. Is there a better way to do this so it dosnt flod the chat for staff. (is there a better way to give players xp?)

 

on mine of coal ore:

execute console command "/experience add %player% 5"

set event-block to bedrock

wait 15 seconds

set event-block to coal ore

 

add 5 to exp of the player

This will add XP directly with Skript.

 

Edit: Sorry for the duplicate response, CoolProgrammer uploaded his at the same time lol

Edited by iOmega__

––––––––––––––––––––––––––––––––––––––––––––––––––

Please leave a reaction if my assistance was satisfactory!

 

Link to comment
Share on other sites

58 minutes ago, CoolProgrammer said:

Hey there.

Have a look at this:


on mine of coal ore:
    give player 5 experience
    set event-block to bedrock
    wait 15 seconds
    set event-block to coal ore

So basically, skript has an in-built expression give %player[s]% %integer% experience which will give the player experience points.

You don't have to worry about the default minecraft command feedback anymore (The one which says [Console: Blah Blah])!

😃

thx

 

Link to comment
Share on other sites

Just now, RoustyTousty said:

thx

 

No problem. 😄

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

8 minutes ago, RoustyTousty said:

Do u know eny way i can see every script line thats posible? like a website or sometjing?

https://docs.skunity.com

––––––––––––––––––––––––––––––––––––––––––––––––––

Please leave a reaction if my assistance was satisfactory!

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...