Random World Item
💡
6
It’s a simple script that add items in the world to be pickedup. It also includes a “random respown” possibility.
It’s a copy of the “chest” script, so if it makes it easier, copy “chest” object and past this script and remove the “chest” script.
Extra notes:
- “Respown Odd” set to 0 it will make no respowns.
- Set the “Box Collider 2D” to “Is Trigger” if you want to avoid phisics.

💬 Comments (27)
This is very good, thank you!
I wonder what those stuff are tho.. 🤔 (hopefully we can see what it is soon lol)
Ah! Glad you asked 😅 Left side is a Potions Station, i made so that you meed specific stations to build specific items (ex: smith station, smelting, cooking pod, scroll station,…)
Top right is a farming system, basically when there is no “farm” it has a odd to generate it again, and if so, it fills the “flag” has true. Thought its always the same vegetable.
Oh! I thought I already did but it seems i didn’t!
Sorry, I’ve deleted it from my project.
BUT i will make a day cicle, but without lights, just sort of darkening the camera. That i can share!
This was a 2.* version, not sure what are the changes in the new version that would affect this.
If you find the solution please share here.
You can always ask for help in the general chat
Here is a quick attempt at making it work with 3.0.
Mostly made the
CollectableInteractionuseTask<bool>, as it’s now required for all interactions, and updatedCollectable.TryOpen()to beasync📜 Scripts
Want to continue the conversation?