Jump to content
We've made dark mode the default preference to protect your eyes! You can change this at anytime below. ×
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.

  • Love 1

Share this comment


Link to comment

About Us

Codefling is a forward-thinking platform for developers to share and monetize their work from plugins to game assets and everything in-between.

2,199 files sold to 262 customers and $29,521 of payments processed this year!

×
×
  • 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.