Search found 7 matches
- Fri Apr 15, 2016 12:20 am
- Forum: Modding help
- Topic: Custom Item w/ Custom event
- Replies: 7
- Views: 2936
Re: Custom Item w/ Custom event
Ran into the issue that the game was letting me place multiple instances of the extractor item that I made over itself. I had it where unless it dug up some ore, then it didnt get destroyed and left behind the building. If you built over that it would layer until you had 20 buildings stacked on top ...
- Thu Apr 14, 2016 5:37 pm
- Forum: Modding help
- Topic: Custom Item w/ Custom event
- Replies: 7
- Views: 2936
Re: Custom Item w/ Custom event
thanks daniel. That works perfectly as well and is much better for future use
- Thu Apr 14, 2016 1:11 am
- Forum: Modding help
- Topic: Custom Item w/ Custom event
- Replies: 7
- Views: 2936
Re: Custom Item w/ Custom event
Thanks a billion prg!
For those who may see this here is my final code:
require "defines"
script.on_event(defines.events.on_built_entity, function(event)
local e = event.created_entity
if e.name == "accumulator-3" then
game.get_surface(1).create_entity({name="copper-ore", amount=1, position ...
For those who may see this here is my final code:
require "defines"
script.on_event(defines.events.on_built_entity, function(event)
local e = event.created_entity
if e.name == "accumulator-3" then
game.get_surface(1).create_entity({name="copper-ore", amount=1, position ...
- Wed Apr 13, 2016 11:21 pm
- Forum: Modding help
- Topic: Custom Item w/ Custom event
- Replies: 7
- Views: 2936
Re: Custom Item w/ Custom event
Hi and welcome to modding.
You are probably looking to use the events.on_built_entity event. Register it via the bootstrap (just like on_init, just use on_event): http://lua-api.factorio.com/0.12.30/LuaBootstrap.html#on_event
require "defines"
game.on_built_entity(topsoil)
function topsoil(x ...
You are probably looking to use the events.on_built_entity event. Register it via the bootstrap (just like on_init, just use on_event): http://lua-api.factorio.com/0.12.30/LuaBootstrap.html#on_event
require "defines"
game.on_built_entity(topsoil)
function topsoil(x ...
- Wed Apr 13, 2016 10:37 pm
- Forum: Modding help
- Topic: Custom Item w/ Custom event
- Replies: 7
- Views: 2936
Custom Item w/ Custom event
So I am very new to modding factorio. I can do the basic add an item, etc etc. What I want to learn a bit more about is doing custom things. I am currently wanting to create an item that can either be thrown or placed (not both, I just dont know which will be easier). When said item is thrown/placed ...
- Wed Oct 14, 2015 10:54 pm
- Forum: Off topic
- Topic: No money until summer. Free Factorio alternatives?
- Replies: 3
- Views: 12890
Re: No money until summer. Free Factorio alternatives?
https://forums.factorio.com/forum/viewtopic.php?f=27&t=7874
or do what I did:
- deliver newspapers
- work in a warehouse
- gardner
- casual employee for accord window construction
- ...
I saw that post and had already read it. Most cost money or hurt my eyes (DF). Only 2 i could find were ...
or do what I did:
- deliver newspapers
- work in a warehouse
- gardner
- casual employee for accord window construction
- ...
I saw that post and had already read it. Most cost money or hurt my eyes (DF). Only 2 i could find were ...
- Wed Oct 14, 2015 8:20 pm
- Forum: Off topic
- Topic: No money until summer. Free Factorio alternatives?
- Replies: 3
- Views: 12890
No money until summer. Free Factorio alternatives?
I won't have money to spend on games until possibly next summer and my friend showed me factorio and man does it look awesome (tried the demo and im hooked)
Does anyone have some good free alternatives to factorio? I've tried some like dwarf fortress, but it didn't run well and I'm not a fan of ...
Does anyone have some good free alternatives to factorio? I've tried some like dwarf fortress, but it didn't run well and I'm not a fan of ...