Page 1 of 1

Adding mining productivity to entity.

Posted: Sun Jul 30, 2023 3:20 pm
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,
	},
}

Re: Adding mining productivity to entity.

Posted: Sun Jul 30, 2023 6:42 pm
by Rseding91
Mining productivity only applies to the type "mining-drill"

Re: Adding mining productivity to entity.

Posted: Thu Aug 03, 2023 5:54 pm
by Quazaka
I guess that means it's not possible for this assembler type at all to benefit from the technology somehow?

Re: Adding mining productivity to entity.

Posted: Thu Aug 03, 2023 7:24 pm
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.

Re: Adding mining productivity to entity.

Posted: Fri Aug 04, 2023 2:13 pm
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.