Capsule prototype: "consume_when_thrown" property

Post Reply
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 457
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Capsule prototype: "consume_when_thrown" property

Post by raiguard »

I would like to be able to have a simple way to prevent a capsule item from being consumed when used. Something like consume_when_used, which would be a boolean. My usecase is fairly simple: I am spamming capsules to act as a method of mouse detection when dragging. See this GIF:
it works.gif
it works.gif (4.79 MiB) Viewed 852 times
As you can see, I just have a stack of 1000 capsules that are used up very quickly. I would like the player to be able to hold one item, which would be able to spam placement without using up the item.

Thanks for your time!
Don't forget, you're here forever.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13246
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Capsule prototype: "consume_when_thrown" property

Post by Rseding91 »

Ok, I've added it for the next version of 0.17. "uses_stack" when false it won't use the item when thrown.
If you want to get ahold of me I'm almost always on Discord.

User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 457
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: Capsule prototype: "consume_when_thrown" property

Post by raiguard »

\o/ thank you so much! Best devs ever. :D
Don't forget, you're here forever.

Post Reply

Return to “Implemented mod requests”