Configure shardblade item replacement
All checks were successful
Deploy datapack to dev / Build (push) Successful in 7s
All checks were successful
Deploy datapack to dev / Build (push) Successful in 7s
This commit is contained in:
parent
995af4eea5
commit
da5d6858e8
@ -1,7 +1,13 @@
|
|||||||
class magic.shardblade {
|
class magic.shardblade {
|
||||||
function give() {
|
function give() {
|
||||||
|
::temp.magic.shardblade = @s[type=entity]::SelectedItem;
|
||||||
if ($logger) {
|
if ($logger) {
|
||||||
printf("&<SelectedItem>");
|
printf("&<yellow,SelectedItem>");
|
||||||
}
|
}
|
||||||
|
Item.replaceEntity(
|
||||||
|
shardblade_wind_runner,
|
||||||
|
@s,
|
||||||
|
"weapon"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,3 +4,9 @@ TextProp.nbt(
|
|||||||
source = "@s",
|
source = "@s",
|
||||||
path = SelectedItem
|
path = SelectedItem
|
||||||
);
|
);
|
||||||
|
Item.create(
|
||||||
|
shardblade_wind_runner,
|
||||||
|
netherite_sword,
|
||||||
|
"&<blue>Blade of Honor",
|
||||||
|
["&<gold>wind runner"]
|
||||||
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user