Malorolam / LootBags

Other
21 stars 31 forks source link

Help please #127

Closed MasterSloth1 closed 6 years ago

MasterSloth1 commented 6 years ago

im probably derping somewhere along the lines but i cant figure this out for the life of me. im trying to create custom lootbags using the whitelist command in the config, but when i run lootbags_reloadconfig i get an error, b

My code is Lootbags_BagConfig.txt

Malorolam commented 6 years ago

You're missing the weights for each of them, you have minecraft:string:0:49:49 you need: <mod id>:<item name>:<damage range>:<minimum stack size>:<maximum stack size>:<weight>

MasterSloth1 commented 6 years ago

how did i miss that 🤦‍♂️ sorry for wasting your time

MasterSloth1 commented 6 years ago

so if i understand this correctly i have to create a resource pack in order to get the default loot bag textures? all i want is your texture but change the colour to a different one but keep the default texture

Malorolam commented 6 years ago

You can use the $BAGCOLOR command to use the default texture with a custom colour applied. The wiki entry is included for clarity.

$BAGCOLOR:<main color>:<secondary color> - This command will set the bag texture to a default two-toned bag instead of a pre-defined one, colorizing the body to the main color and the neck to the secondary color. This has the benefit of bag customization without the need of resource pack creation. The colors are RGB colors separated by vertical bars (R|G|B). The default Worn Out bag shows an example of this command.

MasterSloth1 commented 6 years ago

thats what i thought but when i load reload the config the textures are not there b

MasterSloth1 commented 6 years ago

omg i just realised i have $BAGTEXTCOLOR:$WHITE not $BAGCOLOR

MasterSloth1 commented 6 years ago

also while your here can you please elaborate on how to convert nbt to bytes i want to add tinkers patterns to a loot bag but im just confused lol thank you in advanced

Malorolam commented 6 years ago

the lootbags_helditemdump will give you the whitelist entry for whatever you're currently holding including the NBT data.

MasterSloth1 commented 6 years ago

thanks very much for your help 😃