Solved by partially changing the concept. To whom it may concern: You can actually call clean_cursor and cursor_stack.set_stack from on_put_item. Process for me:
In on_put_item:
1. Note down what tool was used and set a flag that it's in use
2. Clean the cursor
3. Set the cursor to the item you'd ...
Search found 2 matches
- Sun May 07, 2017 7:59 am
- Forum: Modding help
- Topic: [Solved]Intercepting creation of an entity from on_put_item?
- Replies: 1
- Views: 579
- Sat May 06, 2017 5:36 pm
- Forum: Modding help
- Topic: [Solved]Intercepting creation of an entity from on_put_item?
- Replies: 1
- Views: 579
[Solved]Intercepting creation of an entity from on_put_item?
Hi!
I've been creating a mod to show direction indicators on belt placement since I was constantly screwing up the placement. For this, I created a "belt placer" item that is in the transport_belt fast_replaceable_group. On being built, it is replaced with a belt of the appropriate type and ...
I've been creating a mod to show direction indicators on belt placement since I was constantly screwing up the placement. For this, I created a "belt placer" item that is in the transport_belt fast_replaceable_group. On being built, it is replaced with a belt of the appropriate type and ...