Jump to content

smallwaterbottle object is empty

Closed 1.0.4 1.0.5

Bowabos
Bowabos

Posted

When setting

      "smallwaterbottle": {
        "probability": 21,
        "maxStack": 1,
        "minStack": 1,
        "blueprintChancePercent": 0,
        "skins": []
      },

I do get a Small Water Bottle in the foodbox, however it is empty.

I suspect the object to inject is more complex and need to provide the quantity of liquid that is to be put inside.

Found this info the the Oxide forum if it helps...

private Item BuildItem(int itemid, int amount, ulong skin) { if (amount < 1) amount = 1; Item item = ItemManager.CreateByItemID(itemid, amount, skin); if (itemid == 927253046) // water bottle item.contents.AddItem(ItemManager.FindItemDefinition(112903447), 250); if (itemid == 547302405) // water jug item.contents.AddItem(ItemManager.FindItemDefinition(112903447), 500); return item; }

https://oxidemod.org/threads/water-jug-and-small-water-bottle-are-empty.24617/

  • Administrator
Steenamaroo

Posted

Hi,

Thanks for the info. I've actually added this to CustomLoot already so it'll be in the next update.
I've added a config option per container type for water fill percentage.

  • Love 1
  • Administrator
Steenamaroo

Posted

Changed Fixed In to 1.0.5

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.