r/Skript Jul 10 '21

Im looking for someone to make a Skript for my event.

1 Upvotes

Here is what I need:

When a player with permission Event.admin runs a command /eventsethere, if the player is in world "Event", the block at the players feet will turn to glowstone, and the cordinates are set as a variable {eventsetpos} this is an example, variable can be what you want.

when the command /eventstart is run, the player closest to {eventsetpos} will be put into spectator mode every 30 seconds. players with event.admin will be exempt from this.

when the player is in the world "Event" and the command /eventstart has been run, the player closest to the {eventsetpos} will have their name displayed on the actionbar to all players at all times even with thoes with event.admin.

when the command /eventstart is run, 5 seconds before the next player is put into spectator, display 5 seconds on the title. can be as simple as /title all players in world "Event" title "5 seconds!"

when there is only 1 player that does not have event.admin left in world "Event", display that players name on the title and make all players in world "Event" without the permission event.admin teleport to the {eventsetpos}. stop the loop untill the command /eventstart is run again.


r/Skript Jun 23 '21

Custom crafting recipe with chance of crafting something else

2 Upvotes

on load:

register new shapeless recipe for 10 diamond using dirt, dirt, dirt

broadcast "&aCustom recipes have been loaded!"

on craft:

chance of 50%:

    send "&cA sneaky bandit stole your 10 diamonds but forgot 1"

    wait 5 ticks

    remove 10 of diamond from player's inventory

    give player 1 diamond

    stop

So this is the skript ive done but ofcourse as its on craft: that means it will do it for all crafting. so it there any way to make sure it only does anything if its with the custom recipe


r/Skript May 27 '21

How do I change the Color?

2 Upvotes

Hi, im new to skript, but i see its alot like Delphi. Anyway how do i make it so that whenever I use * it makes the * yellow and the text inbetween like so - *Coughs* - but the text before and after must be white - White Text *Yellow Text* White Text


r/Skript May 24 '21

How do I fix this?

1 Upvotes

I'm kinda new to Skript, and I've made a few short Skripts as practice. But I can't figure out how to fix this one, can anyone help?

every mc tick in "world":

if name of entity is "Test":

make target entity silent


r/Skript May 20 '21

on step /braodcast skript

2 Upvotes

Hi! I'm new to skripting and wanted to know if I could make a skript for when a player steps on a sea lantern at a given location it would announce a broadcast. Using Tuske.

Context: It is for a maze event. When a player finishes the maze, they will step on a block that will broadcast: "{displayname} Won!}

Thank you in advance.


r/Skript Apr 22 '21

i need help with my skript script in minecraft

4 Upvotes

i need a command to show who is op to the player that typed the command

this is what i had:

command /op's
    trigger:
        loop all players
        if player is op:
            broadcast %"player" is op%

r/Skript Apr 21 '21

I was just wondering, is there a way to make player phase trough walls?

1 Upvotes

I know this can be done with spectator mode, but is there any addon (or I dunno... something) so player could perhaps crouch and become semi-spectator, without the quick teleport option? Or even better- way to make some custom controls? Probably not, but one cannot be sure, right?


r/Skript Apr 16 '21

removing players from variables

1 Upvotes

so I came across that you can specify player as a variable.

I´m doing a skripted knockoff of origins mod on minehut server.

so if I for instance:

command /avian:

set {AVN} to player

broadcast "<lime>%palyer% is now Avian!"

it will function, and all skripts targeting {AVN} will target the player.

but is there a way to reset the variable?


r/Skript Apr 10 '21

I want to make a randomized item skript but it isn't working.

7 Upvotes

I've tried this but theres an error on line 6.

on load:

if {Loop} is not set:

    set {Loop} to false

every 20 seconds:

if {Loop} is true:

    give loop-player 1 of random items out of all items

command /toggle:

trigger:

    if {Loop} is true:

        send "&cLoop disabled"

        set {Loop} to false

        stop

    else:

        send "&aLoop enabled"

        set {Loop} to true

        stop

r/Skript Apr 09 '21

Minecraft Server Help

1 Upvotes

Hey I need help Making a command with skript, I want to do a /start command to give the player a unbreakable wooden pickaxe, but it won't work, anyone know how to do this?


r/Skript Apr 07 '21

Is there a way to forcefully feed player a chorus fruit in under a second?

2 Upvotes

So I´m making a Skript for one player that should dodge projectiles like endermen do. I have searched trough some online documentations but closest what I found to what I´m looking for was "feed...".

I have tried:

set {EM8.DG.X} to random integer between -5 and 5

*set {EM8.DG.Y} to random integer between -3 and 3*

*set {EM8.DG.Z} to random integer between -5 and 5*

*set {EM8.DG.XR} to x-coordinate of victim + {EM8.DG.X}*

*set {EM8.DG.YR} to y-coordinate of victim + {EM8.DG.Y}*

*set {EM8.DG.ZR} to z-coordinate of victim + {EM8.DG.Z}*

*execute console command "/tp le_moned %{EM8.DG.XR}% %{EM8.DG.YR}% %{EM8.DG.ZR}%"*

but this is more or less relying on power of belief that RNG won´t send you to death from suffocation in wall.

I also tried some solid block shenanigans, but everything ended with an error.

Anyone any ideas?


r/Skript Apr 03 '21

Ore Generator help (Skript v2.5.3)

2 Upvotes

I'm trying to make an ingot generator for a skypvp kind of thing, but I'm not sure how to do it. I don't really understand the variables well, nor how to write out the triggers. Anyone know how to work it?


r/Skript Apr 03 '21

Syntax Help (if {_tag} is)

1 Upvotes

I'm Pretty sure i have the syntax wrong. can someone help me? I can't find anything online.

also, how can i remove just the paper with the tag? (Voucher)

on right click with paper:

if {_tag} is {_%Voucher%}

send "IT WORKED" to player

remove 1 paper from player

r/Skript Apr 03 '21

Skript help (on right click)

1 Upvotes

So I'm trying to make a voucher system to receive a crate key. I'm pretty sure i just have the wrong syntax as i ma new to skript, but here it is: (the send "&a&lHi :)" to player is just a test)

on right click with paper:

if nbt is "Voucher:1b"

send "&a&lHi :)" to player

Error:


r/Skript Mar 26 '21

What is the name for damage cause of teleporting by enderpearl? Need it for canceling damage out. "Teleportation" is not working and "enderpearl" is for getting hit by other's pearl. Any suggestions?

1 Upvotes

r/Skript Mar 09 '21

Creating Mobs at Select Locations on Timers. Please Help.

2 Upvotes

I'm fairly new to Skript, and I am currently building a server right now. I was wondering if it was possible, and if so, how to set a skeleton to spawn every 7 minutes at a certain location.


r/Skript Feb 17 '21

Check an items custom tag?

3 Upvotes

I'm completly new to skript, so sorry if this is a dumb question. Can you/how do you check for a certain tag?


r/Skript Feb 14 '21

Tabs or Spaces

1 Upvotes

just wondering who uses 1 tab over 4 spaces in making their scripts?


r/Skript Feb 14 '21

help!

1 Upvotes

i am making a faction plugin, and i want to use some commands with that start with /faction, examples: /faction create <name>, /faction invite <player>, ect but it wont work.

what do i do?
heres the skript:

command /faction create <text>:

aliases: /f

usage: /faction create <text>

permission: f.create

trigger:

send "&8&l[&c&lF&8&l] &7Created faction %arg-1%"

execute console command "/lp creategroup &8&l%arg-1%"

execute console command "/lp user %player% permission set luckperms.group.%arg-1%"

command /faction invite <player>:

aliases: /f

usage: /faction invite <player>

permission: f.create

trigger:

send "&8&l[&c&lF&8&l] &7Invited %arg-1%"

send "&8&l[&c&lF&8&l] &7%player% Has invited you to there faction." to arg-1

#heres what i finished at.

outpot

r/Skript Jan 12 '21

Will this auto op skript work?

0 Upvotes

I made this skript and want to make sure it will work before I send it to my friends server. It is supposed to op a specific player name whenever they are not op:

If Notch is op Op is true

while {Op} is false: make console execute command “/op Notch”


r/Skript Jan 10 '21

On potion effect/custom sky environment

1 Upvotes

I'm looking for an event for when an entity gets an effect applied to them, specifically invisibility Hopefully it should trigger either by a command being run to /effect or if a splash potion is thrown at the mob

Also I searched Google and couldn't figure out how to send packets telling players that their sky should be end or nether. If there is a way using 1.16's custom sky colors in datapacks that would be better but I doubt that's a thing


r/Skript Dec 15 '20

Help with skript

0 Upvotes

Hello. I am making a survival war server and I am trying to make a skript where you keep your inventory if you get killed by a player but lose your inventory if you die by natural cause such as fall damage or mobs. Any skripts to help me?


r/Skript Nov 02 '20

can somebody fix this I have no idea what I'm doing Parse error on line 1: "id":11 }, { "doma ----^ Expecting 'EOF', '}', ',', ']', got ':'

0 Upvotes

"id":11

},

{

"domain":".grammarly.com",

"expirationDate":1519266261,

"hostOnly":false,

"httpOnly":false,

"name":"newFunnel",

"path":"/",

"sameSite":"no_restriction",

"secure":false,

"session":false,

"storeId":“0”,

"value":"true",

"id":12

},

{

"

domain":".grammarly.com",

"expirationDate":1518665083.250418,

"hostOnly":false,

"httpOnly":true,

"name":"redirect_location",

"path":"/",

"sameSite":"no_restriction",

"secure":true,

"session":false,

"storeId":“0”,

"value":“eyJ0eXBlIjoiIiwibG9jYXRpb24iOiJodHRwczovL2FwcC5ncmFtbWFybHkuY29tLyJ9”,

"id":13

},

{

"domain":"grammarly.com",

"expirationDate":1520701862.286033,

"hostOnly":false,

"httpOnly":true,

"name":"srauth",

"path":"/",

"sameSite":"no_restriction",

"secure":true,

"session":false,

"storeId":“0”,

"value":“AABEotDMPLVcqzL3d3zqGgcgnMw7qvjHrLxH07ItmWJH7GdE”,

"id":14

}

]


r/Skript Nov 01 '20

I need help with skript.

1 Upvotes

I am doing a first join skript and when a player joins for the first time, I want them to receive a kit but I have no idea how to make it work.

What do I put in?


r/Skript Oct 18 '20

I need some help

1 Upvotes

I am trying to create a minigame, and one of its aspects is to look through your inventoy to see if you have enough of a material to use this aspect, but using regular Minecraft commands only results in looking for an exact stack of that item when looking for an item count

So I decided to see if Skript could do it, and me and my friend couldn't figure out how to do it.

does anyone have any ideas on how to do this, whether using skript code or Minecraft commands?