Skip to content

Instantly share code, notes, and snippets.

@underscore95
Last active December 23, 2025 11:42
Show Gist options
  • Select an option

  • Save underscore95/2197171014e2952c14362782744e754d to your computer and use it in GitHub Desktop.

Select an option

Save underscore95/2197171014e2952c14362782744e754d to your computer and use it in GitHub Desktop.
# Copyright (c) 2025 underscore95
# Licensed under MIT: https://opensource.org/license/mit
# https://www.youtube.com/watch?v=qeELRR_ebLQ
# Requires SkBee
command /giveitem:
permission: item.admin
trigger:
set {_item} to 2 diamond
set name of {_item} to "My Named Item"
set lore of {_item} to "Hello", "&fHello2" and "hiedrnfiuwn"
enchant {_item} with unbreaking 1
add hide enchants to item flags of {_item}
set string tag "my_data" of custom nbt of {_item} to "Hello!"
give {_item} to player
command /saytag:
trigger:
set {_data} to string tag "my_data" of custom nbt of player's tool
if {_data} is not set:
send "&cno data set" to player
exit
send "data: %{_data}%" to player
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment