Skip to content

An-thracene/Create-Ore-Excavation-Fabric

 
 

Repository files navigation

Create-Ore-Excavation

Extract resources using machines powered by Rotational Force

Download: CurseForge, Modrinth

KubeJS

You can add custom ore veins using KubeJS.

KubeJS 6 (1.19.2+):

ServerEvents.recipes(event => {
	//Drilling recipes (Items)
	//Spawning weight the bigger the number the higher chance to spawn.
	//See server config for empty chunk weight.
	//Arguments: output item(s), ore vein name in Text Component, spawning weight, extraction time in ticks at 32 RPM.
	event.recipes.createoreexcavation.drilling('minecraft:redstone', '{"text": "My redstone vein"}', 10, 100).id("my_vein1");
	
	//Coal vein with 5% chance for diamond and require a diamond drill and lava for drilling
	//Always finite 5x-8x base
	event.recipes.createoreexcavation.drilling([Item.of('minecraft:coal'), Item.of('minecraft:diamond').withChance(0.05)], '{"text": "My coal vein"}', 2, 1000).drill('createoreexcavation:diamond_drill').fluid('minecraft:lava').alwaysFinite().veinSize(5, 8).id("my_vein2");
	
	//Iron vein only in overworld and a stress requirement of 512 xRPM (default is 256 xRPM)
	//With a finite vein size between 3x-8.5x base (if finite veins are enabled)
	event.recipes.createoreexcavation.drilling('minecraft:raw_iron', '{"text": "My iron vein"}', 10, 100).veinSize(3, 8.5).biomeWhitelist('forge:is_overworld').stress(512).id("my_vein3");
	//biomeBlacklist is also available

	//Fluid extractor recipes (Fluids)
	event.recipes.createoreexcavation.extracting('minecraft:water 400', '{"text": "Water well"}', 10, 100).alwaysInfinite().id("test");
	//The biome, stress and drill settings are the same as the drilling recipe
	
	//Set base value in config for finite veins
});

Older KubeJS versions:

onEvent('recipes', event => {
	//Drilling recipes (Items)
	//Spawning weight the bigger the number the higher chance to spawn.
	//See server config for empty chunk weight.
	//Arguments: output item(s), ore vein name in Text Component, spawning weight, extraction time in ticks at 32 RPM.
	event.recipes.createoreexcavation.drilling('minecraft:redstone', '{"text": "My redstone vein"}', 10, 100).id("my_vein1");
	
	//Coal vein with 5% chance for diamond and require a diamond drill and lava for drilling
	//Always finite 5x-8x base
	event.recipes.createoreexcavation.drilling([Item.of('minecraft:coal'), Item.of('minecraft:diamond').withChance(0.05)], '{"text": "My coal vein"}', 2, 1000).drill('createoreexcavation:diamond_drill').fluid('minecraft:lava').alwaysFinite().veinSize(5, 8).id("my_vein2");
	
	//Iron vein only in overworld and a stress requirement of 512 xRPM (default is 256 xRPM)
	//With a finite vein size between 3x-8.5x base (if finite veins are enabled)
	event.recipes.createoreexcavation.drilling('minecraft:raw_iron', '{"text": "My iron vein"}', 10, 100).veinSize(3, 8.5).biomeWhitelist('forge:is_overworld').stress(512).id("my_vein3");
	//biomeBlacklist is also available

	//Fluid extractor recipes (Fluids)
	event.recipes.createoreexcavation.extracting(Fluid.of('minecraft:water', 400), '{"text": "Water well"}', 10, 100).alwaysInfinite().id("test");
	//The biome, stress and drill settings are the same as the drilling recipe
	
	//Set base value in config for finite veins
})

About

Extract resources using machines powered by Rotational Force

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%