MCModderAnchor / TACZ

132 stars 25 forks source link

[issue]: How can i /give guns with attachments #296

Closed HeavyArtilleryTank closed 3 weeks ago

HeavyArtilleryTank commented 3 weeks ago

我已确认 ...

Minecraft和模组加载器版本

1.20.1 forge

tacz的版本

1.0.3

Related Mods

no other mods used

Description

i want to /give an awp with a elcan 4x scope but i dont know how to add an attachment with commands

复现步骤

No response

日志和崩溃报告

No response

MrPippi commented 3 weeks ago

try it /give @s tacz:modern_kinetic_gun{HasBulletInBarrel: 1b, GunFireMode: "SEMI", GunId: "tacz:ai_awp", AttachmentSCOPE: {id: "tacz:attachment", Count: 1b, tag: {AttachmentId: "tacz:scope_elcan_4x"}}, GunCurrentAmmoCount: 5}

You can use the /data get entity @s SelectedItem command to get the gun data in mainhand

HeavyArtilleryTank commented 3 weeks ago

omg thank you so much. i can finnaly finish my cs2 in minecraft tysm

HeavyArtilleryTank commented 3 weeks ago

btw how can i give guns with other attachments? like a grip or muzzle or mag? anyways tysm

HeavyArtilleryTank commented 3 weeks ago

also what about ammo