Just curious, would it be possible to use raw ores as turret ammunition someway (ex: stone) ?
Not sure how to do this but if anyone has some opinions i'd be happy to hear about it
Usage: Extreme worlds, no automated crafts possible unless you're dead waiting for it :p and crafting by hand is not an option since server continues to run while we're not connected.
Thanks
Raw ores as ammunition
Re: Raw ores as ammunition
You are need to set up the mod folder, the file info.json and place this code to the file data.lua:DarkyPupu wrote: ↑Wed Jul 22, 2020 10:28 amJust curious, would it be possible to use raw ores as turret ammunition someway (ex: stone) ?
Not sure how to do this but if anyone has some opinions i'd be happy to hear about it
Usage: Extreme worlds, no automated crafts possible unless you're dead waiting for it :p and crafting by hand is not an option since server continues to run while we're not connected.
Thanks
Code: Select all
local stone = data.raw.item.stone
data.raw.item.stone = nil
local ammo_stone = table.deepcopy (data.raw.ammo["firearm-magazine"])
stone.type = ammo_stone.type
stone.ammo_type = ammo_stone.ammo_type
stone.magazine_size = ammo_stone.magazine_size
stone.subgroup = ammo_stone.subgroup
stone.ammo_type.action[1].action_delivery[1].target_effects[2].damage = {amount = 1, type = "physical"}
data:extend({stone})
- Attachments
-
- data.lua
- (3 KiB) Downloaded 59 times
-
- 2020-07-22T20_10_52-Factorio 0.18.36.png (277.03 KiB) Viewed 1512 times
-
- 2020-07-22T20_11_01-Factorio 0.18.36.png (11.33 KiB) Viewed 1512 times
Re: Raw ores as ammunition
Next step would be to change the graphics to something like this:
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
Re: Raw ores as ammunition
That is brilliant, i turned around the pot and came with unnecessary complex solutions (which didn't work ).
Thanks a lot, although it won't save the base for the long run, it may help a bit in the start at least !
From the power of it, it would be more like :
But that's exactly how it should be.
Thanks a lot, although it won't save the base for the long run, it may help a bit in the start at least !
From the power of it, it would be more like :
But that's exactly how it should be.
Re: Raw ores as ammunition
I would say this would be worthy of a small mod
Include iron & copper ore and possible other ores.
It would be a very hotfix amunition when running out of normal munition..
it also could be used for self-defending and supporting a mine-outpost without the producing of current amuniton
Include iron & copper ore and possible other ores.
It would be a very hotfix amunition when running out of normal munition..
it also could be used for self-defending and supporting a mine-outpost without the producing of current amuniton
Re: Raw ores as ammunition
Making the list of all resources:
- Attachments
-
- data.lua
- (1.75 KiB) Downloaded 66 times
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Raw ores as ammunition
The only enemies not immune to one-physical-damage are small biters/spitters. Even spawners are immune. Impact resistance is less common (at least in vanilla).
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.