#map reset
1 messages · Page 1 of 1 (latest)
https://www.spigotmc.org/resources/cyberworldreset-standard-✨-regenerate-worlds-scheduled-resets-lag-optimized「1-8-1-19」.96834/
use this maybe
how do i do that @sharp nacelle im new to skript
spoon feeding
bruh
you have to do it yourself so you can learn and fix future issues or take on more complex projects
if you want to start learning this is a good beginner tutorial https://sovdee.gitbook.io/skript-tutorials/
@nimble zealot like this?
#Lines containing "#|" they can be removed, they are just a decorative effect.
function clearBlocks():
loop {serverBlocks::*}:
#|add 1 to {_n}
set block at loop-value to air
#|wait 1 tick if (mod({_n}, 10) = 0)
delete {serverBlocks::*}
#|send "&aThe map was reset." to all players
on block place:
add block's location to {serverBlocks::*}
on block break:
if {serverBlocks::*} doesn't contain block's location:
cancel event
#|send "&cYou can only break blocks that have been placed by other players." to player
stop
remove block's location from {serverBlocks::*}
why are you spoon feeding
For you it's "spoon feeding", for me it's just a code example. ¯_(ツ)_/¯
its both
spoon feeding is anything that someone with 2 braincells can use by copy-pasting
YES OMG TY
Do you know how i Can make it reser Every 2 hours?
Do you know how i Can reset blocks just in a specific area?
@prime zinc
dont ping him
try thinking for yourself
you could use a peridocial event
and check if the blocks are in a certain region, or within 2 locations
i dont understand region lol Can u expain to me, im sorry if im just making you write code but if u write it for me then i Can understand it better
the regions name is box
@prime zinc
Simple, you check the region like this:
#Lines containing "#|" they can be removed, they are just a decorative effect.
function clearBlocks():
loop {serverBlocks::*}:
#|add 1 to {_n}
set block at loop-value to air
#|wait 1 tick if (mod({_n}, 10) = 0)
delete {serverBlocks::*}
#|send "&aThe map was reset." to all players
on block place:
#Here I am checking the region:
region at block = ("box" parsed as region)
add block's location to {serverBlocks::*}
on block break:
#Here I am checking the region:
region at block = ("box" parsed as region)
if {serverBlocks::*} doesn't contain block's location:
cancel event
#|send "&cYou can only break blocks that have been placed by other players." to player
stop
remove block's location from {serverBlocks::*}
how do i get the worldguard thingy'
Basically you have two ways to implement it:
1.
region at block = ("box" parsed as region)
#YourCodeHere
if region at block = ("box" parsed as region):
#YourCodeHere
In my case I use 1. because there is no need for "else:", but if you are going to add an "else:" you should use option 2.
#1135223691551195286 message
I already left you the functional code for you to try
WorldGuard takes care of the regions, no worldedit... worldedit only allows you to make the selections.
ohhh ok Ty
so if I have a region alr set up named box and I put the skript it will work? @prime zinc
In theory it should work, if you already have a region called "box" and use it in your skript, everything should work fine.
every X hours:
clearBlocks()
yw
UR THE BEST BEST
Do you know how to make a skript that does like so if u place a shulker then it’s only u that can open it like shulker protection so if someone else placed it then u can’t open it
@prime zinc
I don't use those versions but I'll give you an example with a chest
alr
It would be something like this I guess:
on block place:
block = chest
add block's location to {private::%player's uuid%::*}
on block break:
block = chest
if {private::%player's uuid%::*} doesn't contain block's location:
cancel event
send "&cPrivate!" to player
stop
remove block's location from {private::%player's uuid%::*}
on right click:
clicked block = chest
if {private::%player's uuid%::*} doesn't contain clicked block's location:
cancel event
send "&cPrivate!" to player
ty
@prime zinc the !clearBlocks() doesnt work
i meant when i type !clearBlocks() it dont work
Do you have this activated?
Also remember to enable this option so you don't have to give yourself permission.
nope it wasnt enabled ty
alr
btw
the thing u sent me the private thing it works for shulkers but sometimes it locks you out of your shulker
Yes, well, I gave you a simple example... besides, it was in a lower version... let me do another one in the current version.
on block place:
#region at block = ("myRegion" parsed as region)
block = any shulker box
add (block's location) to {private::%player's uuid%::*}
send "&aThe coordinates &e%block's location% &ahave been saved to your private list."
on block break:
#region at block = ("myRegion" parsed as region)
block = any shulker box
if {private::%player's uuid%::*} doesn't contain (block's location):
cancel event
send "Hey! this shulker does not belong to you."
play sound "BLOCK_NOTE_BLOCK_BELL" with pitch 1.3 to player
stop
remove block's location from {private::%player's uuid%::*}
send "&7The coordinates &e%block's location% &7have been removed from your private list." to player
on right click:
#region at block = ("myRegion" parsed as region)
clicked block = any shulker box
if {private::%player's uuid%::*} doesn't contain (clicked block's location):
cancel event
send "Hey! this shulker does not belong to you."
play sound "BLOCK_NOTE_BLOCK_BELL" with pitch 1.3 to player
It should work, now if I tried it with the shulker box
Remove the "#" if you want to check the regions
TY
why would i check regions?
For example, if you want to prevent shulkers from being placed in mining regions or similar... 🤷♂️ idk, there is always the possibility of wanting to check it.
your welcome
do you know how to make a plugin that like if you are in the region “afk” and it gives you a gray dye every 15 minutes your in the region, only in the region not outside, like an afk zone
@prime zinc
dude, i'm not going to make you all the codes you need, use your creativity...
You have to think for yourself
If youre solving a puzzle you look at the pieces and figure out where they go, dont ask someone else where to put it
Be patient. If they don’t respond immediately wait. They have their own lives, they don’t exist solely to spoon feed you
Sorry, I’ll try my best
.
@prime zinc so i wrote on region enter: what should i write next to check what region they entered?
im kinda confused sorry
@true charm think you can help?
with?
like i want to make a skript but idk what to write next
so look
i wrote
on region enter:
how do i check if the reigon is afk
the afk region
like i want to check when the players goes into the region afk
@true charm ????
Later i will make this
bro is pushing the limit even for drcuy
.
Okey! Of curse i can help
First you must set your event https://skripthub.net/docs/
Later check the name of region https://skripthub.net/docs/?id=845 (like in example)
Later add player to variable https://skripthub.net/tutorials/31 (example {afk::%player%}
And in this way you will have checked who is in the afk zone
Skript Hub is the best place to get the latest Skript and Addon Documentation. Skript Hub has the fastest documentation system with offline and mobile support for the best Minecraft development experience.
The region involved in an event.
This expression requires a supported regions plugin to be installed.
why a variable
.
set -18,66,37 to -12,58,46 to air Can someone tell me Why this wont work And What would work?