Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Bowabos

smallwaterbottle object is empty

Closed 1.0.4 1.0.5

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/

Share this comment


Link to comment

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.

  • Thanks 1

Share this comment


Link to comment
×
×
  • 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.