SkriptPDC icon

SkriptPDC -----

PDC support in skript



PDC allows you to store data in objects. It's much more efficient than NBT.
Based on https://github.com/SkriptLang/Skript/compare/dev/feature...sovdeeth:Skript:feature/pdc-hacky

I recommend saving the object to a variable and then operating on it
Code (Text):
set pdc tag "namespace:tag_name" of <object> to <value>
Code (Text):
set {_variable} to pdc tag "namespace:tag_name" of <object>
Code (Text):
delete pdc tag "namespace:tag_name" of <object>
Code (Text):
on death:
    victim and attacker are a player
    set {_tool} to attacker's tool
    if pdc tag "weapons:kills" of {_tool} is not set:
        set pdc tag "weapons:kills" of {_tool} to 0
    else:
        set {_kills} to pdc tag "weapons:kills" of {_tool}
        add 1 to {_kills}
        set pdc tag "weapons:kills" of {_tool} to {_kills}
        set player's tool to {_tool}
 
Tested with skript 2.11.2
Resource Information
Author:
----------
Total Downloads: 22
First Release: Aug 9, 2025
Last Update: Aug 9, 2025
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings