Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Cannot delete entities within chunk

Open TheLimeGlass opened this issue 2 years ago • 6 comments

Bug Description

Untitled
on chunk unload:
	clear all dropped item in event-chunk
	clear all entities of type dropped item in event-chunk
Untitled

Expected Behavior

To not error and allow me to use event-chunk

Steps to Reproduce

add the above code and reload the script

Errors or Screenshots

Untitled

Other

The syntax and the event value exists.

Agreement

  • [X] I have read the guidelines above and affirm I am following them with this report.

TheLimeGlass avatar Sep 15 '23 05:09 TheLimeGlass

try to swap event-chunk to just chunk, other u can load all items in chunk and then clear them or u can try regions :/

Dzi0b4k avatar Sep 15 '23 13:09 Dzi0b4k

try to swap event-chunk to just chunk, other u can load all items in chunk and then clear them or u can try regions :/

Same thing

TheLimeGlass avatar Sep 16 '23 00:09 TheLimeGlass

loop all entites in radius 20 around locaction of chunk: || loop all entites in chunk: "%loop-entity%" isn't "player": delete loop-entity u can try somthing like this but its not the fastest way for procesor

Dzi0b4k avatar Sep 16 '23 12:09 Dzi0b4k

Interestingly I also get double error messages when recreating in 2.7.1:

[01:16:34 INFO]: Line 31: (test-folder\test.sk)
[01:16:34 INFO]:     event-chunk is not a world
[01:16:34 INFO]:     Line: clear all dropped items in event-chunk
[01:16:34 INFO]:
[01:16:34 INFO]: Line 31: (test-folder\test.sk)
[01:16:34 INFO]:     event-chunk is not a world
[01:16:34 INFO]:     Line: clear all dropped items in event-chunk
[01:16:34 INFO]:
[01:16:34 INFO]: Line 32: (test-folder\test.sk)
[01:16:34 INFO]:     event-chunk is not a world
[01:16:34 INFO]:     Line: clear all entities of type dropped item in event-chunk
[01:16:34 INFO]:
[01:16:34 INFO]: Line 32: (test-folder\test.sk)
[01:16:34 INFO]:     event-chunk is not a world
[01:16:34 INFO]:     Line: clear all entities of type dropped item in event-chunk
[01:16:34 INFO]:
on chunk unload:
	clear all dropped items in event-chunk
	clear all entities of type dropped item in event-chunk
[01:17:26 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[01:17:26 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[01:17:26 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[01:17:26 INFO]: [Skript] Server Version: git-Paper-164 (MC: 1.20.1)
[01:17:26 INFO]: [Skript] Skript Version: 2.7.1 (skriptlang-github)
[01:17:26 INFO]: [Skript] Installed Skript Addons: None
[01:17:26 INFO]: [Skript] Installed dependencies: None

sovdeeth avatar Oct 27 '23 08:10 sovdeeth

Duplicate of #5720 but looks like it got lefted out 😬

NotSoDelayed avatar Oct 27 '23 08:10 NotSoDelayed

This is a weird issue. The expression actually parses perfectly fine, but for some reason it prints errors.

sovdeeth avatar Oct 29 '23 00:10 sovdeeth