nbt

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  1. Kekwu

    Script Mounts.sk v1.0

    Requirements: - SkBee - SkQuery - SkRayFall - Skript Description: As a Chinese Minecraft player myself, I usually play this game with my other Chinese friends. While developing this script, I added Mandarin translations to all English text to facilitate better understanding. This project was...
  2. M

    function itemtype doesn't return an item

    Hello so here's a code that worked a few years ago (2022 I think? so for quite old skript version) but which does not work anymore since I updated Skript and a few addons and I cannot find the uptodate syntax/way to do it. These were functions that were supposed to return an item named and with...
  3. D

    How to work with NBT tags of mods?

    command /weapon: trigger: set {_weapon} to item.tacz.modern_kinetic_gun set {_id} to "tacz:ak47" set {_weapon} to the GunId of {_id} give player 1 {_weapon} In this script, I was trying to get the "GunId" tag added by the Timeless and Classics Zero (tacz)...
  4. Sovde

    Script NBT Player Data 2025-02-26

    Requires SkBee 3.8.2+, Skript 2.10+. NBT Player Data Basic NBT-based player data system. Stores strings and numbers in NBT, but accessible via variables. Example:{-npd::%player%::strength} = 1 This value is stored in npd_data/<player's uuid>.dat as {strength: 1}. All values under...
  5. C

    Solved SKript Custom Model data in 1.21.4

    { "model": { "type": "select", "property": "custom_model_data", "fallback": { "type": "model", "model": "item/paper" }, "cases": [ { "when": red, "model": { "type"...
  6. T

    Loop entities with nbt data

    How do i loop entities with nbt data?
  7. The0Felon

    Help about nbts

    on inventory click: cancel event set "nbt" to nbt of clicked item this gives me error: How to solve this? i installed Sk-NBeeT for nbts. i can't edit nbts and i don't want to use something like: set lore of player's held item to "lore" because i am working with modded items. I...
  8. Palgia

    Script SkNBTPreserver 1.6.1

    This skript is discontinued. Please use SkItemCreatorV2 which has its own nbt saver! A very simple Skript that addresses a single issue: not being able to retrieve the same blocks that were placed! Now placing a block or a head saves the original item for the drop when it is broken by a...
  9. lllllStanlllll

    nbt

  10. S

    Sorted. Please delete

    Sorted. Please delete
  11. S

    Detect if user is holding an item with a specific NBT tag

    Hey, Just wondering if there's a way to detect if the user is holding an item with a specific NBT tag in it?
  12. A

    How to detect when a player places a custom head.

    Topic (1) How could I detect when a player places a custom head? Topic (2) How could I place a custom head? Question (1) Could I just do on place: if event-block is a player head with nbt "%nbt%"? Please answer! Thanks in advance, AgentStrawberry
  13. N

    Solved (Help) Unique NBT's between two items that share the same name and NBT

    Skript Version: 2.5.3 Skript Author: YourSpeedDealer Minecraft Version: 1.16.5 Full Code: command /m4a1: trigger: set {_M4A1} to 1 leather horse armor named "&bM4A1" add "{maxDurabilityM4:31}" to nbt of {_M4A1} set {ammo} to tag "maxDurabilityM4" of nbt of {_M4A1}...
  14. KingDooms

    Solved Removing NBTs from Items

    So, im trying to remove NBTs from items, i tried looking for help and someone said to put "remove {NBT} from player's held item" but that didn't work... Any help? Oh and by the way I have SkBee on me. remove...
  15. O

    Help with shulker boxes

    I was checking if there was a way to check the items inside a shulker box inside a player's inventory maybe using like NBT or something along those lines. If you don't know, then that's fine, thanks anyways.
  16. C

    Remove NBT from Entity

    Hi, how can i remove, with the SkBee Addon, NBT from Entity? "remove "{map:28}" from nbt of event-entity" is not working
  17. Z

    Solved NBT item pick up message

    I'm trying to create broadcast message of item that is NBT. I installed plugin that gives me extra items, and I want to make broadcast of it when I pick it up. Can anybody help me? :) Here is my code: on pick up: item is a crossbow named "Cannon" broadcast "&6&l%player% &fFound cannon!"
  18. B

    NBT Help

    Hello, I am having an issue and was wondering if someone could help set {_drop} to feather of luck of the sea 1 with hidden enchantments named "&b&lBLITZ" with lore "&9An Item From The Gods&7.", and "&7Fight Away The Spirits&7." add custom nbt "{voucher: "BLITZ"}" to {_drop}...
  19. S

    Help with making a "minigun"

    So my code is as follows on right click with bow: execute console command "execute as @p at @p run summon arrow ~ ~ ~ {Motion:[1.0,0.0,0.0]}": I'm trying to make it fire in a direction, but when i try to run it, it shows as an error but there is no error without the motion nbt tag.
  20. Squarebuilder

    Solved Custom Head in a GUI

    Hi there, I've been trying to get custom heads (e.g. https://minecraft-heads.com/custom-heads/miscellaneous/4318-twitter) into a GUI for a few weeks now. I tried this code among others: command /gui: trigger: open virtual chest inventory with 1 row named "&6GUI" to the sender...