#(ArcSid) making ground item clearing script, how can I loop something to happen every 29 minutes?
56 messages · Page 1 of 1 (latest)
(ArcSid) making ground item clearing script, how can I loop something to happen every 29 minutes?
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
!e system secondly
Did you mean to search for system time hh:mm?
Core
system time <HH:MM> system time hourly|minutely|secondly
every:<count> to only run the event every *count* times (like "on system time secondly every:5" for every 5 seconds).
when the system time changes to the specified value.
The system time is the real world time set in the server's operating system.
It is not necessarily in sync with the game server time, which may vary (for example, when the server is lagging).
For events based on in-game time passage, use !event delta time or !command wait.
<context.hour> returns the exact hour of the system time.
<context.minute> returns the exact minute of the system time.
on system time hourly:
- announce "Whoa an hour passed!"
on system time 12:00:
- announce "Whoa it's noon!"
on system time 03:00:
- announce "Daily restart in 5 minutes!"
- wait 5m
- adjust server restart
OH
^ system time minutely every:29
thanks lol
ye
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@pearl wing
Trash_Clear_event:
type: world
debug: false
events:
on system time minutely every:29:
- wait 29m
- announce "<&c><&l> ♛ Clearing Ground items in &e&l1 minute <&c><&l>♛"
- wait 1m
- announce "<&c><&l> ♛ &a&lClearing Ground items <&c><&l>♛"
- execute as_server "kill @e[type=item]" silent```
no wait
so this should work then right?
drop that wait
is this meant to be once an hour
nope once every 30 mins
Paper has a config setting for that, btw
cuz i have incopmprehensible amounts of dropped items
also y do you have non-tag color codes in there
wdym
also why are you executing a vanilla command
oh
!c remove
entity
remove [<entity>|...] (world:<world>)
Despawns an entity or list of entities, permanently removing any NPCs.
Removes the selected entity. May also take a list of entities to remove.
Any NPC removed this way is completely removed, as if by '/npc remove'.
For temporary NPC removal, see !command despawn.
If a generic entity name is given (like 'zombie'), this will remove all entities of that type from the given world.
Optionally, you may specify a world to target.
(Defaults to the world of the player running the command)
^ remove dropped_item
I mean, you shouldn't use vanilla commands when there's a valid Denizen equivalent
but either way i rarely use denizen
why is that relevant
wher
i didnt know i didnt read the guide
okay i'm too tired to try to respond to that rn i think