Configure shardblade item replacement
All checks were successful
Deploy datapack to dev / Build (push) Successful in 7s

This commit is contained in:
themodernhakr 2025-03-12 02:20:48 -05:00
parent 995af4eea5
commit da5d6858e8
2 changed files with 13 additions and 1 deletions

View File

@ -1,7 +1,13 @@
class magic.shardblade {
function give() {
::temp.magic.shardblade = @s[type=entity]::SelectedItem;
if ($logger) {
printf("&<SelectedItem>");
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"]
);