Search found 77 matches

by Villfuk02
Tue May 01, 2018 10:55 am
Forum: Modding help
Topic: [Probably unsolvable]Render an entity in the background
Replies: 6
Views: 1264

Re: Render an entity in the background

So I guess for assembling-machine it is not possible. Is there any workaround?
by Villfuk02
Tue May 01, 2018 10:31 am
Forum: Modding help
Topic: [Probably unsolvable]Render an entity in the background
Replies: 6
Views: 1264

[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?
by Villfuk02
Tue May 01, 2018 10:15 am
Forum: Modding help
Topic: [SOLVED]Modify items in player's starting inventory
Replies: 3
Views: 2049

Re: Modify items in player's starting inventory

I just figured it out. It is event.player_index.

Thanks for your help
by Villfuk02
Tue May 01, 2018 10:02 am
Forum: Modding help
Topic: [SOLVED]Modify items in player's starting inventory
Replies: 3
Views: 2049

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.
by Villfuk02
Tue May 01, 2018 7:30 am
Forum: Modding help
Topic: [SOLVED]Modify items in player's starting inventory
Replies: 3
Views: 2049

[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?
by Villfuk02
Tue May 01, 2018 5:24 am
Forum: Modding help
Topic: [SOLVED]Make machine not reqire energy
Replies: 10
Views: 1784

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 pl...
by Villfuk02
Tue May 01, 2018 5:11 am
Forum: Modding help
Topic: [SOLVED]How to detect if a player is moving?
Replies: 7
Views: 1413

Re: How to detect if a player is moving?

Thanks! that's exactly what i searched for
by Villfuk02
Mon Apr 30, 2018 5:38 pm
Forum: Modding help
Topic: [SOLVED]Make machine not reqire energy
Replies: 10
Views: 1784

Re: make machine not reqire energy

I found out i can use

Code: Select all

/c game.player.selected.burner.currently_burning="wood"
/c game.player.selected.burner.remaining_burning_fuel=2000000
Now i only need to figure out how to apply those commands after placing the entity
by Villfuk02
Mon Apr 30, 2018 5:02 pm
Forum: Modding help
Topic: [SOLVED]Make machine not reqire energy
Replies: 10
Views: 1784

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 = "s...
by Villfuk02
Mon Apr 30, 2018 4:21 pm
Forum: Modding help
Topic: [SOLVED]Make machine not reqire energy
Replies: 10
Views: 1784

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?
by Villfuk02
Mon Apr 30, 2018 2:49 pm
Forum: Modding help
Topic: [SOLVED]Make machine not reqire energy
Replies: 10
Views: 1784

[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
by Villfuk02
Mon Apr 30, 2018 10:31 am
Forum: Modding help
Topic: Change global variable after using item.
Replies: 2
Views: 921

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 coold...
by Villfuk02
Mon Apr 30, 2018 10:25 am
Forum: Modding help
Topic: [SOLVED]How to detect if a player is moving?
Replies: 7
Views: 1413

Re: How to detect if a player is moving?

I just meant if he is normally walking/running (default by using WASD)
by Villfuk02
Mon Apr 30, 2018 10:00 am
Forum: Modding help
Topic: [SOLVED]How to detect if a player is moving?
Replies: 7
Views: 1413

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!
by Villfuk02
Mon Apr 30, 2018 7:26 am
Forum: Modding help
Topic: [SOLVED]How to detect if a player is moving?
Replies: 7
Views: 1413

[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?

Go to advanced search