#Hiding item data
1 messages · Page 1 of 1 (latest)
with nbt from "{HideFlags:127}"
should do it, requires skbee though
its not really useful to just suggest to use plugins in a skript support channel to things that can easily be done with skript.
Could you please use it in code? So I know how to use it exactly?
give player 1 of stone with nbt from "{HideFlags:127}"
hideflags 127 is not a nbt compound
check the docs for hide flags...
showing the code and error would be useful.
1 sec
.
give player {talisman::%arg-1%} with nbt "{HideFlags:127}"
Error: {HideFlags:127} is not a nbt compound
that would be because you didin't write what I sent
O lol
it works now, 1 more question: How do I make it so if the item is in your offhand it increases attack damage?
just make the attribute include the offhand
idk how 😅 kinda new to skript
command /test:
trigger:
give player stick with nbt from "{Attributes:[{Name:""generic.follow_range"", Base:100.0}]}"```
change the attribute to what you want
how do I increase attack damage when in offhand, what I have now is add nbt from "{Attributes:[{Name:""generic.Attack_damage"", Base:100.0}]}" to {talisman::1} but ofcourse doesnt work
"doesnt work"
as in?
do you have errors? what happes that shouldnt? what doesnt happen that should?
no errors, but I am bad with this kinda stuff, so it doesnt increase damage
and are you sure that's the correct name?
I actually dont know lol
it changed since I made that example
give player iron chestplate with nbt from "{AttributeModifiers:[{AttributeName:""generic.max_health"",Amount:10,Name:""generic.max_health"",UUID:[I;-124412,17743,13539,-35486]}]}"```
can you maybe make something with damage?
use generic.attack_damage
and do I have to change anything aboutthe uuid?
it should be random but probably not
if you have multiple items with same UUID it may break
so hp works, but attack still doesnt
add nbt from "{AttributeModifiers:[{AttributeName:""generic.attack_damage"",Amount:100,Name:""generic.attack_damage"",UUID:[I;-124412,17743,13539,-35488]}]}" to {talisman::1}
!give player iron chestplate with nbt from "{AttributeModifiers:[{AttributeName:""generic.attack_damage"",Amount:10,Name:""generic.attack_damage"",UUID:[I;-124412,17743,13539,-35486]}]}"```
works for me
I see the problem now, trying to add multiple nbt stuff to 1 item doesnt work for some reason
try giving it different UUIDs maybe
I did