No Respawn Pistol


Title. Removes pistol spawn after respawn. Still gives you first pistol. DISCLAIMER: ENTIRELY VIBECODED WITH GEMINI 3.1 PRO

Tweaks
29 days ago
2.0
111
Combat

i Let the "AI" help you, don't pure vibe code

9 days ago

Instead of calling player.remove_item({name = "pistol", count = 1}), you should read up on the Factorio Lua API, specifically the get_inventory method. You could, instead, do a player.get_inventory(defines.inventory.character_guns).remove_item("pistol") to remove all pistols from the player's weapon's slots (since they start there) and likewise player.get_inventory(defines.inventory.character_ammo).remove_item("firearm-magazine").

TL;DR - don't vibe code. Actually try to do it yourself and use "AI" as a tool to help you out.

8 days ago

Instead of calling player.remove_item({name = "pistol", count = 1}), you should read up on the Factorio Lua API, specifically the get_inventory method. You could, instead, do a player.get_inventory(defines.inventory.character_guns).remove_item("pistol") to remove all pistols from the player's weapon's slots (since they start there) and likewise player.get_inventory(defines.inventory.character_ammo).remove_item("firearm-magazine").

TL;DR - don't vibe code. Actually try to do it yourself and use "AI" as a tool to help you out.

If I wanted to do it myself, I would do it myself, but I am not a coder and I don't want to learn LUA just to do a small mod for me and my friend during our playthrough, I just decided to ethically share it with others who might find this useful as we did

4 days ago

Glad you're at least up front about it being AI generated. Big kudos for that. Too many people try to act like they didn't use AI.

Sorry if I came off a bit harsh out of the gate. What I was trying to say is that the AI, with some extra guidance, could have produced a much better mod.

Either way, thank you for sharing and being transparent about it being AI generated!

2 days ago

Glad you're at least up front about it being AI generated. Big kudos for that. Too many people try to act like they didn't use AI.

Sorry if I came off a bit harsh out of the gate. What I was trying to say is that the AI, with some extra guidance, could have produced a much better mod.

Either way, thank you for sharing and being transparent about it being AI generated!

Well, I too reacted a bit harsh tbh. Thank you for your advice anyway! If I am up to do mods again, at least I will feed the AI with docs lol, so it could do a much more proper job then

New response