Skript: [1.9] I have a problem with executing console give (IDK why it happen. Really!)

Created on 6 Oct 2018  ·  5Comments  ·  Source: SkriptLang/Skript

First, Below script works well.

command /alora.tool.01.L:
    trigger:
        player has permission "skript.getitem":
            execute console command "/give %player% iron_sword 1 1 {Unbreakable:1,HideFlags:63,display:{Lore:[0:""§e-"",1:""§r코드: §7alora.tool.01.L"",2:""§r강도: §e1 %%"",3:""§e-"",4:""§r등급: §6§l전설"",5:""§r속성: §7일반"",6:""§r분류: §a검"",7:""§e-"",8:""§r설명:"",9:""§a 희귀하고 강한 금속들을 녹여"",10:""§a 제조한 예리하며 아름다운 검."",11:""§e-""],Name:""§6§lTitanium Blade""},AttributeModifiers:[0:{UUIDMost:1,UUIDLeast:1,Amount:8.0d,Slot:""mainhand"",AttributeName:""generic.attackDamage"",Operation:0,Name:""Modifier""},1:{UUIDMost:1,UUIDLeast:1,Amount:-2.6,AttributeName:""generic.attackSpeed"",Operation:0,Name:""Modifier""}]}"

But, I duplicated this and edited to make another item.

command /alora.tool.03.R:
    trigger:
        player has permission "skript.getitem":
            execute console command "/give %player% iron_sword 1 2 {Unbreakable:1,HideFlags:63,display:{Lore:[0:""§e-"",1:""§r코드: §7alora.tool.03.R"",2:""§r강도: §e15 %%"",3:""§e-"",4:""§r등급: §e레어"",5:""§r속성: §c화염"",6:""§r분류: §a검"",7:""§e-"",8:""§r설명:"",9:""§a 조화를 이루는 3개의 강력한 힘 중"",10:""§a 화염의 성질을 담아 봉인했다."",11:""§e-""],Name:""§eFlame Blade""},AttributeModifiers:[0:{UUIDMost:1,UUIDLeast:1,Amount:6.0d,Slot:""mainhand"",AttributeName:""generic.attackDamage"",Operation:0,Name:""Modifier""},1:{UUIDMost:1,UUIDLeast:1,Amount:-2.5,AttributeName:""generic.attackSpeed"",Operation:0,Name:""Modifier""}]}"

and It just give me a sword without any nbt, no unbreakable.
what should i do? help me plz!!

Most helpful comment

This is totally related to the /give command. I tried the same code on 1.12.2 but the NBT code gave errors, Remove these 0: 1: 2: etc. and it will work.

close

All 5 comments

This isn't a Skript issue, is it? Just your console command is somehow broken

This is totally related to the /give command. I tried the same code on 1.12.2 but the NBT code gave errors, Remove these 0: 1: 2: etc. and it will work.

close

Heya, then, Can't i use nbt at all??

@OngMong who said you can't... Fix the NBT and it will work.

@Blueyescat
But.... There is nothing different with another one that works perfect except for a lore and name,
and i already checked all the lore....

Was this page helpful?
0 / 5 - 0 ratings