-
Notifications
You must be signed in to change notification settings - Fork 6
Using Parts with Skript
Jay edited this page Oct 22, 2025
·
7 revisions
#Get parts of a group
set {_parts::*} to {_group}'s parts
#Get parts included in a filter
set {_parts::*} to {_filter}'s parts
## Get SPAWNED part from a Display/Interaction entity that is in a group
set {_spawnedpart} to {_display}'s spawned part
## Get the entity of a SPAWNED part
set {_entity} to {_spawnedpart}'s spawned part entityset {_filter} to a new part selection from {_activegroup}
#3.3.4+
set {_filter} to a new part filter from {_activegroup}add filter to {_filter} with tag "includedTag" and without tags "excludedTag1" and "excludedTag2"set block filter of {_filter} with stone
set block filter of {_filter} with tag contents of minecraft tag "impermeable" #Keep only glass in the filterset item filter of {_filter} without stick and iron sword #Keeps all item displays, except ones showing sticks and iron swords
set item filter of {_filter} with tag contents of minecraft tag "swords" #Keep only swords in the filter#Filter parts by their type (inclusive)
set part type filter of {_filter} to parttype_text_display
#Filter parts by their type (exclusive)
set type filter of {_filter} to exclude parttype_block_display and parttype_item_display#Update selected parts in the filter, after manually adding/removing parts to/from a group
refresh {_filter}
#Reset all applied filters
reset {_filter}
#Remove and unregister a `PartFilter` (this makes it unusable afterwards)
remove {_filter}