I cant place this modded item

Place to get help with not working mods / modding interface.
Post Reply
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

I cant place this modded item

Post by ficolas »

Code: Select all

[
  {
    "type": "container",
    "name": "underground-mining-drill",
    "flags": ["placeable-neutral", "player-creation"],
    "collision-box": [[-1.4, -1.4], [1.4, 1.4]],
    "selection-box": [[-1.5, -1.5], [1.5, 1.5]],
    "minable": { "mining-time": 1, "result": "underground-mining-drill" },
    "max-health": 200,
    "inventory-size": 4,
    "picture":
    {
      "filename": "entity/underground-mining-drill/underground-mining-drill.png",
      "width": 96,
      "height": 96,
      "priority": "extra-high"
  }
  }
]
I dont know why, but I cant place it :S
When in the edit mode, it is placeable, but when playing, it is not

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: I cant place this modded item

Post by kovarex »

What about the definition of the corresponding item, does it have "place-result" property?

ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: I cant place this modded item

Post by ficolas »

no, I forgot...

FAIL

sorry for sumbiting stupid errors

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: I cant place this modded item

Post by kovarex »

No question is stupid now, the documentation is very poor and in the process of creation.

Post Reply

Return to “Modding help”