Adding mining productivity to entity.

Place to get help with not working mods / modding interface.
Post Reply
Quazaka
Burner Inserter
Burner Inserter
Posts: 16
Joined: Mon Nov 07, 2016 8:33 am
Contact:

Adding mining productivity to entity.

Post by Quazaka »

How do i add mining productivity to an entity? I have gotten as far as finding the mining-drill-productivity-bonus technology modifier, but i am unsure where to add it to this prototype.

I am modifying this mod for personal use, so i have a reason to keep researching productivity.

The entity currently looks like this;

Code: Select all

----------Entity------------
local nuclear_void_miner_entity = {
	name = "void-miners-nuclear-void-miner",
	icon = "__void-miners__/graphics/icons/nuclear-void-miner.png",
	icon_size = 64,
	--order
	type = "assembling-machine",
	max_health = 300,
	minable = {mining_time = 0.3, result = "void-miners-nuclear-void-miner"},
	animation = {
		animation_speed = 0.75,
		filename = "__void-miners__/graphics/entity/nuclear-void-miner/nuclear-void-miner.png",
		priority = "high",
		height = 122,
		hr_version = {
			animation_speed = 0.75,
			filename = "__void-miners__/graphics/entity/nuclear-void-miner/hr-nuclear-void-miner.png",
			priority = "high",
			height = 242,
			width = 365,
			frame_count = 16,
			line_length = 8,
			scale = 0.5,
			shift = {1.8, -0.2}
		},
		width = 184,
		frame_count = 16,
		line_length = 8,
		scale = 0.9,
		shift = {1.65, -0.175}
	},
	open_sound = {filename = "__base__/sound/machine-open.ogg", volume = 0.5},
	close_sound = {filename = "__base__/sound/machine-close.ogg", volume = 0.5},
	repair_sound = {filename = "__base__/sound/manual-repair-simple.ogg", volume = 1},
	mined_sound = {filename = "__core__/sound/deconstruct-medium.ogg", volume = 1},
	vehicle_impact_sound = {{filename = "__base__/sound/car-crash.ogg", volume = 1}},
	working_sound = {filename = "__void-miners__/sound/void-miner-working.ogg", volume = 0.5},
	corpse = "medium-remnants",
	dying_explosion = "medium-explosion",
	flags = {"placeable-player", "player-creation"},
	collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
	selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
	module_specification = {
		module_slots = 4
    },
	allowed_effects = {
        "consumption",
        "speed",
        "pollution"
	},
	energy_source = {
		type = "electric",
		usage_priority = "secondary-input",
		emissions_per_minute = 1,
	},
	crafting_categories = {"void-miners-burner-void-mining", "void-miners-electric-void-mining", "void-miners-advanced-void-mining", "void-miners-nuclear-void-mining"},
	crafting_speed = 1.25,
	energy_usage = "810kW",
	result_inventory_size = 1,
	source_inventory_size = 1,
	fast_replaceable_group = "void-miners",
	--next_upgrade = "",
	fluid_boxes = {
		{
			production_type = "input",
			pipe_picture = assembler2pipepictures(),
			pipe_covers = pipecoverspictures(),
			base_area = 1,
			base_level = -1,
			pipe_connections = {{type = "input", position = {-1, -2}}},
			secondary_draw_orders = {north = 1},
		},
		{
			production_type = "input",
			pipe_picture = assembler2pipepictures(),
			pipe_covers = pipecoverspictures(),
			base_area = 1,
			base_level = -1,
			pipe_connections = {{type = "input", position = {1, -2}}},
			secondary_draw_orders = {north = 1},
		},
		{
			production_type = "output",
			pipe_picture = assembler2pipepictures(),
			pipe_covers = pipecoverspictures(),
			base_area = 1,
			base_level = 1,
			pipe_connections = {{type = "output", position = {0, 2}}},
			secondary_draw_orders = {north = -1},
		},
	off_when_no_fluid_recipe = true,
	},
}

Rseding91
Factorio Staff
Factorio Staff
Posts: 13223
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Adding mining productivity to entity.

Post by Rseding91 »

Mining productivity only applies to the type "mining-drill"
If you want to get ahold of me I'm almost always on Discord.

Quazaka
Burner Inserter
Burner Inserter
Posts: 16
Joined: Mon Nov 07, 2016 8:33 am
Contact:

Re: Adding mining productivity to entity.

Post by Quazaka »

I guess that means it's not possible for this assembler type at all to benefit from the technology somehow?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13223
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Adding mining productivity to entity.

Post by Rseding91 »

Quazaka wrote:
Thu Aug 03, 2023 5:54 pm
I guess that means it's not possible for this assembler type at all to benefit from the technology somehow?
Correct.
If you want to get ahold of me I'm almost always on Discord.

User avatar
jodokus31
Smart Inserter
Smart Inserter
Posts: 1604
Joined: Sun Feb 26, 2017 4:13 pm
Contact:

Re: Adding mining productivity to entity.

Post by jodokus31 »

You might have a look at this:
https://mods.factorio.com/mod/seablock-mining

It's a hack with an invisible beacon or something.

Post Reply

Return to “Modding help”