beginning of fiber config
This commit is contained in:
		
							parent
							
								
									047a7f3e72
								
							
						
					
					
						commit
						0ab7da3ff0
					
				| @ -1,8 +1,7 @@ | |||||||
| # Glowstone Wire | # Glowstone Wire | ||||||
| 
 | 
 | ||||||
| Adds redstone-like dust for glowstone. | Adds redstone-like dust for glowstone. | ||||||
| - Emit's light level 9 (Perfect for 2-wide path ways) | - Emit's light level 8 (Perfect for 2-wide path ways) | ||||||
| - Is thinner then redstone |  | ||||||
| - Can be customized to look a little more stylized | - Can be customized to look a little more stylized | ||||||
| 
 | 
 | ||||||
| 10/10, great mod. | 10/10, great mod. | ||||||
| @ -27,6 +27,9 @@ dependencies { | |||||||
| 	// Fabric API. This is technically optional, but you probably want it anyway. | 	// Fabric API. This is technically optional, but you probably want it anyway. | ||||||
| 	modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" | 	modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" | ||||||
| 
 | 
 | ||||||
|  | 	// Custom API's | ||||||
|  | 	implementation "me.zeroeightsix:fiber:${project.fiber_version}" | ||||||
|  | 
 | ||||||
| 	// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs. | 	// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs. | ||||||
| 	// You may need to force-disable transitiveness on them. | 	// You may need to force-disable transitiveness on them. | ||||||
| } | } | ||||||
|  | |||||||
| @ -10,8 +10,9 @@ org.gradle.jvmargs=-Xmx1G | |||||||
| # Mod Properties | # Mod Properties | ||||||
| 	mod_version = 0.0.1 | 	mod_version = 0.0.1 | ||||||
| 	maven_group = me.parsell | 	maven_group = me.parsell | ||||||
| 	archives_base_name = glowstonedust | 	archives_base_name = glowstonewire | ||||||
| 
 | 
 | ||||||
| # Dependencies | # Dependencies | ||||||
| 	# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api | 	# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api | ||||||
| 	fabric_version=0.32.5+1.16 | 	fabric_version=0.32.5+1.16 | ||||||
|  | 	fiber_version =0.23.0-2 | ||||||
|  | |||||||
| @ -3,11 +3,6 @@ package me.parsell.glowstonewire; | |||||||
| import me.parsell.glowstonewire.core.glowBlocks; | import me.parsell.glowstonewire.core.glowBlocks; | ||||||
| import me.parsell.glowstonewire.core.glowItems; | import me.parsell.glowstonewire.core.glowItems; | ||||||
| import net.fabricmc.api.ModInitializer; | import net.fabricmc.api.ModInitializer; | ||||||
| import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder; |  | ||||||
| import net.minecraft.item.ItemGroup; |  | ||||||
| import net.minecraft.item.ItemStack; |  | ||||||
| import net.minecraft.item.Items; |  | ||||||
| import net.minecraft.util.Identifier; |  | ||||||
| 
 | 
 | ||||||
| public class GlowstoneWire implements ModInitializer { | public class GlowstoneWire implements ModInitializer { | ||||||
| 	public static final String MODID = "glowstonewire"; | 	public static final String MODID = "glowstonewire"; | ||||||
|  | |||||||
| @ -1,6 +1,7 @@ | |||||||
| package me.parsell.glowstonewire.core; | package me.parsell.glowstonewire.core; | ||||||
| 
 | 
 | ||||||
| import me.parsell.glowstonewire.GlowstoneWire; | import me.parsell.glowstonewire.GlowstoneWire; | ||||||
|  | import me.parsell.glowstonewire.mixin.BrewingRecipeRegistryAccessor; | ||||||
| import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder; | import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder; | ||||||
| import net.fabricmc.fabric.api.item.v1.FabricItemSettings; | import net.fabricmc.fabric.api.item.v1.FabricItemSettings; | ||||||
| import net.minecraft.item.BlockItem; | import net.minecraft.item.BlockItem; | ||||||
| @ -8,6 +9,7 @@ import net.minecraft.item.Item; | |||||||
| import net.minecraft.item.ItemGroup; | import net.minecraft.item.ItemGroup; | ||||||
| import net.minecraft.item.ItemStack; | import net.minecraft.item.ItemStack; | ||||||
| import net.minecraft.item.Items; | import net.minecraft.item.Items; | ||||||
|  | import net.minecraft.potion.Potions; | ||||||
| import net.minecraft.util.Identifier; | import net.minecraft.util.Identifier; | ||||||
| import net.minecraft.util.registry.Registry; | import net.minecraft.util.registry.Registry; | ||||||
| 
 | 
 | ||||||
| @ -17,5 +19,26 @@ public class glowItems { | |||||||
| 
 | 
 | ||||||
|   public static void init(){ |   public static void init(){ | ||||||
|     Registry.register(Registry.ITEM, new Identifier(GlowstoneWire.MODID, "glowstone_dust"), GLOWSTONE_DUST); |     Registry.register(Registry.ITEM, new Identifier(GlowstoneWire.MODID, "glowstone_dust"), GLOWSTONE_DUST); | ||||||
|  | 
 | ||||||
|  |     // Modded Glowstone Potion Recipes | ||||||
|  |     // TODO: IF "replace" or "both" config is set | ||||||
|  |     if (true) { | ||||||
|  |       BrewingRecipeRegistryAccessor.registerPotionRecipe(Potions.WATER, GLOWSTONE_DUST, Potions.THICK); | ||||||
|  |       BrewingRecipeRegistryAccessor.registerPotionRecipe(Potions.LEAPING, GLOWSTONE_DUST, Potions.STRONG_LEAPING); | ||||||
|  |       BrewingRecipeRegistryAccessor.registerPotionRecipe(Potions.SLOWNESS, GLOWSTONE_DUST, Potions.STRONG_SLOWNESS); | ||||||
|  |       BrewingRecipeRegistryAccessor.registerPotionRecipe(Potions.TURTLE_MASTER, GLOWSTONE_DUST, Potions.STRONG_TURTLE_MASTER); | ||||||
|  |       BrewingRecipeRegistryAccessor.registerPotionRecipe(Potions.SWIFTNESS, GLOWSTONE_DUST, Potions.STRONG_SWIFTNESS); | ||||||
|  |       BrewingRecipeRegistryAccessor.registerPotionRecipe(Potions.HEALING, GLOWSTONE_DUST, Potions.STRONG_HEALING); | ||||||
|  |       BrewingRecipeRegistryAccessor.registerPotionRecipe(Potions.HARMING, GLOWSTONE_DUST, Potions.STRONG_HARMING); | ||||||
|  |       BrewingRecipeRegistryAccessor.registerPotionRecipe(Potions.POISON, GLOWSTONE_DUST, Potions.STRONG_POISON); | ||||||
|  |       BrewingRecipeRegistryAccessor.registerPotionRecipe(Potions.REGENERATION, GLOWSTONE_DUST, Potions.STRONG_REGENERATION); | ||||||
|  |       BrewingRecipeRegistryAccessor.registerPotionRecipe(Potions.STRENGTH, GLOWSTONE_DUST, Potions.STRONG_STRENGTH); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     // Vanilla Glowstone -> Modded Glowstone | ||||||
|  |     // TODO: IF "convert" or "both" config is set | ||||||
|  |     if(true) { | ||||||
|  |        | ||||||
|  |     } | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  | |||||||
| @ -0,0 +1,16 @@ | |||||||
|  | package me.parsell.glowstonewire.mixin; | ||||||
|  | 
 | ||||||
|  | import org.spongepowered.asm.mixin.Mixin; | ||||||
|  | import org.spongepowered.asm.mixin.gen.Invoker; | ||||||
|  | 
 | ||||||
|  | import net.minecraft.item.Item; | ||||||
|  | import net.minecraft.potion.Potion; | ||||||
|  | import net.minecraft.recipe.BrewingRecipeRegistry; | ||||||
|  | 
 | ||||||
|  | @Mixin(BrewingRecipeRegistry.class) | ||||||
|  | public interface BrewingRecipeRegistryAccessor { | ||||||
|  |     @Invoker("registerPotionRecipe") | ||||||
|  |     public static void registerPotionRecipe(Potion input, Item item, Potion output) { | ||||||
|  |         throw new AssertionError(); | ||||||
|  |      } | ||||||
|  | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user