Compare commits

...

2 Commits

Author SHA1 Message Date
da5d6858e8 Configure shardblade item replacement
All checks were successful
Deploy datapack to dev / Build (push) Successful in 7s
2025-03-12 02:20:48 -05:00
995af4eea5 Put NBT info behind debugger 2025-03-12 01:52:57 -05:00
2 changed files with 15 additions and 1 deletions

View File

@ -1,5 +1,13 @@
class magic.shardblade {
function give() {
printf("&<SelectedItem>");
::temp.magic.shardblade = @s[type=entity]::SelectedItem;
if ($logger) {
printf("&<yellow,SelectedItem>");
}
Item.replaceEntity(
shardblade_wind_runner,
@s,
"weapon"
);
}
}

View File

@ -4,3 +4,9 @@ TextProp.nbt(
source = "@s",
path = SelectedItem
);
Item.create(
shardblade_wind_runner,
netherite_sword,
"&<blue>Blade of Honor",
["&<gold>wind runner"]
);