Game crashes, log says Loot Bags is the issue [CUSTOM LOOT BAGS IN CONFIG]
InQuognito opened this issue ยท 10 comments
I didn't really know where to go with this, I apologize in advance for adding an unneccessary issue request. I KNOW my loot bag is the issue, so I was wondering if someone can send me an example of a correct loot bag in config or help me fix mine? Here's my config:
$CONFIGVERSION:CONFIGVER257
$STARTBAG:Ammo Bag:lootbag_Ammo
$BAGCOLOR:107|107|107:214|214|0
$ISSECRET:false
$BAGTEXTCOLOR:$GOLD
$BAGTEXTUNOPENED:$GRAY:Contains ammo.
$BAGTEXTOPENED:$GRAY:Contains ammo.
$BAGTEXTSHIFT:$DARK_AQUA:33% chance of dropping from Zombie Footsoldiers.
$CRAFTEDFROM:$NULL
$BAGVALUE:-1:-1
$PASSIVESPAWNWEIGHT:0
$PLAYERSPAWNWEIGHT:0
$MOBSPAWNWEIGHT:100
$BOSSSPAWNWEIGHT:0
$USEGENERALLOOTSOURCES:false
$MAXIMUMITEMS:5
$MINIMUMITEMS:4
$PREVENTITEMREPEATS:damage
$EXCLUDEENTITIES:true
$STARTWHITELIST
techguns:itemshared:0&9#11#13#15#17#19#21#23#25#27#29#31:1:3:1
$ENDWHITELIST
$STARTENTITYLIST
$INTERNALNAME:techguns:zombiesoldier
$ENDENTITYLIST
$ENDBAG:lootbag_Ammo
No clue why the thumbs down is there, must be some weird crossover from Discord. Here's the actual line in my actual config file:
$BAGVALUE:-1:-1
$STARTBAG:Ammo Bag:lootbag_Ammo
is the problem. It should be $STARTBAG:lootbag_Ammo:<number>
, you can't set the localized name in the bag config.
Thank you! Where do I make the name not bagname.AmmoBag.(blahblahblah)? The actual bag works but not the name..
is there documentation I can view? Is that under 'Tutorials?' Also how do I change drop rates. In my config, I've set a whitelist for the entity in my config but no matter how many of them I kill they don't drop the bag.
You can find resource pack tutorials all over the place, so I didn't write a specific one.
$INTERNALNAME:techguns:zombiesoldier
is also likely wrong, it is probably just zombiesoldier. You change the drop rates through
$PASSIVESPAWNWEIGHT:0
$PLAYERSPAWNWEIGHT:0
$MOBSPAWNWEIGHT:100
$BOSSSPAWNWEIGHT:0
Higher numbers mean higher drop chance up to the weighting resolution in the lootbags.cfg
This is what I have now, Zombie Soldiers still don't drop the bags. should I switch it back to techguns:zombiesoldier?
$CONFIGVERSION:CONFIGVER257
$STARTBAG:lootbag_ammo:0
$BAGCOLOR:107|107|107:214|214|0
$ISSECRET:false
$BAGTEXTCOLOR:$GOLD
$BAGTEXTUNOPENED:$GRAY:Contains ammo.
$BAGTEXTOPENED:$GRAY:Contains ammo.
$BAGTEXTSHIFT:$DARK_AQUA:33% chance of dropping from Zombie Footsoldiers.
$CRAFTEDFROM:$NULL
$BAGVALUE:-1:-1
$PASSIVESPAWNWEIGHT:0
$PLAYERSPAWNWEIGHT:0
$MOBSPAWNWEIGHT:333.333
$BOSSSPAWNWEIGHT:0
$USEGENERALLOOTSOURCES:false
$MAXIMUMITEMS:5
$MINIMUMITEMS:4
$PREVENTITEMREPEATS:damage
$EXCLUDEENTITIES:true
$STARTWHITELIST
techguns:itemshared:0&9#11#13#15#17#19#21#23#25#27#29#31:1:3:1
$ENDWHITELIST
$STARTENTITYLIST
$INTERNALNAME:zombiesoldier
$ENDENTITYLIST
$ENDBAG:lootbag_ammo
It needs to be $INTERNALNAME:techguns.ZombieSoldier
Also, everything in the config is an int, so 333.333 is just interpreted as 333.