Search found 80 matches
- Wed May 02, 2018 6:04 pm
- Forum: Modding help
- Topic: [SOLVED]Make machine not reqire energy
- Replies: 10
- Views: 2932
Re: [SOLVED]Make machine not reqire energy
Don't worry, i first went for a farm, which would deplete the foel over time, because the most basic version has no water input, so the ground dries out. It should not be placeable on concrete/stone path tiles, because it's DIRT and you put none in the crafting recipe. I also wanted for the ground ...
- Tue May 01, 2018 2:00 pm
- Forum: Modding help
- Topic: [SOLVED]Make entity collide with concrete/stone tiles
- Replies: 4
- Views: 1807
Re: Make entity collide with concrete/stone tiles
I tried exactly the same thing again and it worked. I guess i made a mistake on my first try.
This is the working code:
for index,tile in pairs(data.raw.tile) do
if string.find(tile.name, "concrete") or string.find(tile.name, "path") then
tile.collision_mask = {"layer-15"}
end
end
This is the working code:
for index,tile in pairs(data.raw.tile) do
if string.find(tile.name, "concrete") or string.find(tile.name, "path") then
tile.collision_mask = {"layer-15"}
end
end
- Tue May 01, 2018 12:46 pm
- Forum: Modding help
- Topic: [SOLVED]Make entity collide with concrete/stone tiles
- Replies: 4
- Views: 1807
[SOLVED]Make entity collide with concrete/stone tiles
I'D like to make my entity collide with concrete/stone tiles, but it appears they have no collision layer assigned and my tries to assign a collision layer have been unsuccessful. Is there any other way to do so?
- Tue May 01, 2018 10:55 am
- Forum: Modding help
- Topic: Change global variable after using item.
- Replies: 2
- Views: 1362
- Tue May 01, 2018 10:55 am
- Forum: Modding help
- Topic: [Probably unsolvable]Render an entity in the background
- Replies: 6
- Views: 2094
Re: Render an entity in the background
So I guess for assembling-machine it is not possible. Is there any workaround?
- Tue May 01, 2018 10:31 am
- Forum: Modding help
- Topic: [Probably unsolvable]Render an entity in the background
- Replies: 6
- Views: 2094
[Probably unsolvable]Render an entity in the background
I created a new entity which you can walk on, but when the player is standing on the upper half, the entity is rendered in front of the player. I want it to always be rendered behind the player, like belts do. How can i do that?
- Tue May 01, 2018 10:15 am
- Forum: Modding help
- Topic: [SOLVED]Modify items in player's starting inventory
- Replies: 3
- Views: 3694
Re: Modify items in player's starting inventory
I just figured it out. It is event.player_index.
Thanks for your help
Thanks for your help
- Tue May 01, 2018 10:02 am
- Forum: Modding help
- Topic: [SOLVED]Modify items in player's starting inventory
- Replies: 3
- Views: 3694
Re: Modify items in player's starting inventory
OK, thanks, but where do I get the player_index?
The game doesn't want to accept it just like that.
The game doesn't want to accept it just like that.
- Tue May 01, 2018 7:30 am
- Forum: Modding help
- Topic: [SOLVED]Modify items in player's starting inventory
- Replies: 3
- Views: 3694
[SOLVED]Modify items in player's starting inventory
When you spawn in a new world, you already have a furnace, 8 iron and a burner miner. I'd like to add some of my own items to that starting inventory. How can I do that?
- Tue May 01, 2018 5:41 am
- Forum: Implemented mod requests
- Topic: energy_source.type = 'null' to not require energy
- Replies: 7
- Views: 3597
Re: energy_source.type = 'null' to not require energy
That would be very useful!
- Tue May 01, 2018 5:24 am
- Forum: Modding help
- Topic: [SOLVED]Make machine not reqire energy
- Replies: 10
- Views: 2932
Re: make machine not reqire energy
One "wood" has exactly 2000000J of energy, so that's fine. For my purposes I have set the power consumption to 500W, so it lasts 4000 seconds, which is exactly 3 items crafted (They take very long).
I know It's off topic but i'd like a way to not be able to place the machine at the same place ...
I know It's off topic but i'd like a way to not be able to place the machine at the same place ...
- Tue May 01, 2018 5:11 am
- Forum: Modding help
- Topic: [SOLVED]How to detect if a player is moving?
- Replies: 7
- Views: 2358
Re: How to detect if a player is moving?
Thanks! that's exactly what i searched for
- Mon Apr 30, 2018 5:38 pm
- Forum: Modding help
- Topic: [SOLVED]Make machine not reqire energy
- Replies: 10
- Views: 2932
Re: make machine not reqire energy
I found out i can use
Now i only need to figure out how to apply those commands after placing the entity
Code: Select all
/c game.player.selected.burner.currently_burning="wood"
/c game.player.selected.burner.remaining_burning_fuel=2000000- Mon Apr 30, 2018 5:02 pm
- Forum: Modding help
- Topic: [SOLVED]Make machine not reqire energy
- Replies: 10
- Views: 2932
Re: make machine not reqire energy
How exactly should i use that?
neither of the exmples below work
energy_source =
{
type = "burner",
usage_priority = "secondary-input",
fuel_inventory_size = 0,
energy = "420kJ",
emissions = -0.02,
},
energy_source =
{
type = "burner",
usage_priority = "secondary-input",
fuel ...
neither of the exmples below work
energy_source =
{
type = "burner",
usage_priority = "secondary-input",
fuel_inventory_size = 0,
energy = "420kJ",
emissions = -0.02,
},
energy_source =
{
type = "burner",
usage_priority = "secondary-input",
fuel ...
- Mon Apr 30, 2018 4:21 pm
- Forum: Modding help
- Topic: [SOLVED]Make machine not reqire energy
- Replies: 10
- Views: 2932
Re: make machine not reqire energy
Cool idea, but that means there's no way? (i tried it, and it didn't work, so it was just a suggestion)
But i got another idea how to work around it!
When you place burner inserter or roboport, it has some small amount of energy stored inside. How can i do that?
But i got another idea how to work around it!
When you place burner inserter or roboport, it has some small amount of energy stored inside. How can i do that?
- Mon Apr 30, 2018 2:49 pm
- Forum: Modding help
- Topic: [SOLVED]Make machine not reqire energy
- Replies: 10
- Views: 2932
[SOLVED]Make machine not reqire energy
i want to make a machine for crafting, which doesn't reqire power, but it doesn't let me delete the energy_source and energy_usage
- Mon Apr 30, 2018 10:31 am
- Forum: Modding help
- Topic: Change global variable after using item.
- Replies: 2
- Views: 1362
Change global variable after using item.
I'm new to modding and i was wondering how to change global variable after using an item. Similarly to using fish to heal yourself. I would also like to be able to display in the tooltip how much will the value change (again like the heal amount displayed in tooltip of a fish). There is also a ...
- Mon Apr 30, 2018 10:25 am
- Forum: Modding help
- Topic: [SOLVED]How to detect if a player is moving?
- Replies: 7
- Views: 2358
Re: How to detect if a player is moving?
I just meant if he is normally walking/running (default by using WASD)
- Mon Apr 30, 2018 10:00 am
- Forum: Modding help
- Topic: [SOLVED]How to detect if a player is moving?
- Replies: 7
- Views: 2358
Re: How to detect if a player is moving?
Tis looks usable. Not exactly what i was looking for, but with few lines of code, i can divide by moving speed (affected by exoskeletons, etc..)and ignore other means of transportation. THANKS!
- Mon Apr 30, 2018 7:26 am
- Forum: Modding help
- Topic: [SOLVED]How to detect if a player is moving?
- Replies: 7
- Views: 2358
[SOLVED]How to detect if a player is moving?
I'd like to detect if a player is running. Is there any way to do so?