Compare commits
	
		
			No commits in common. "33ffbd765f4b11b3731a0afdddda2a6df46c72b3" and "e19141804c58eab4b1d06c43a48c8e4352be1a52" have entirely different histories.
		
	
	
		
			33ffbd765f
			...
			e19141804c
		
	
		
| @ -1,15 +0,0 @@ | |||||||
| package net.parsell.cherry.common.blocks; |  | ||||||
| 
 |  | ||||||
| import net.minecraft.block.BlockState; |  | ||||||
| import net.minecraft.block.DoorBlock; |  | ||||||
| import net.minecraft.block.enums.DoorHinge; |  | ||||||
| import net.minecraft.block.enums.DoubleBlockHalf; |  | ||||||
| import net.minecraft.util.math.Direction; |  | ||||||
| 
 |  | ||||||
| public class CherryDoor extends DoorBlock{ |  | ||||||
|     public CherryDoor(Settings settings) { |  | ||||||
|         super(settings); |  | ||||||
|         this.setDefaultState((BlockState)((BlockState)((BlockState)((BlockState)((BlockState)((BlockState)this.stateManager.getDefaultState()).with(FACING, Direction.NORTH)).with(OPEN, false)).with(HINGE, DoorHinge.LEFT)).with(POWERED, false)).with(HALF, DoubleBlockHalf.LOWER)); |  | ||||||
|     } |  | ||||||
|      |  | ||||||
| } |  | ||||||
| @ -1,57 +1,27 @@ | |||||||
| package net.parsell.cherry.core; | package net.parsell.cherry.core; | ||||||
| 
 | 
 | ||||||
| import com.google.common.collect.ImmutableMap.Builder; |  | ||||||
| 
 |  | ||||||
| import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap; |  | ||||||
| import net.fabricmc.fabric.api.client.rendering.v1.ColorProviderRegistry; | import net.fabricmc.fabric.api.client.rendering.v1.ColorProviderRegistry; | ||||||
| import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; | import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; | ||||||
| import net.fabricmc.fabric.api.registry.FlammableBlockRegistry; | import net.fabricmc.fabric.api.registry.FlammableBlockRegistry; | ||||||
| import net.minecraft.block.Block; | import net.minecraft.block.Block; | ||||||
| import net.minecraft.block.Blocks; | import net.minecraft.block.Blocks; | ||||||
| import net.minecraft.block.FenceBlock; |  | ||||||
| import net.minecraft.block.FenceGateBlock; |  | ||||||
| import net.minecraft.block.LeavesBlock; | import net.minecraft.block.LeavesBlock; | ||||||
| import net.minecraft.block.PillarBlock; | import net.minecraft.block.PillarBlock; | ||||||
| import net.minecraft.client.render.RenderLayer; |  | ||||||
| import net.minecraft.util.Identifier; | import net.minecraft.util.Identifier; | ||||||
| import net.minecraft.util.registry.Registry; | import net.minecraft.util.registry.Registry; | ||||||
| import net.parsell.cherry.common.blocks.CherryDoor; |  | ||||||
| import net.parsell.cherry.mixin.AxeItemAccessor; |  | ||||||
| 
 | 
 | ||||||
| public class CherryBlocks { | public class CherryBlocks { | ||||||
| 	private static Builder<Block, Block> STRIPPABLE_BLOCKS = new Builder<Block, Block>(); | 	public static final Block CHERRYLOG = registerPillar("cherry_log", FabricBlockSettings.copyOf(Blocks.OAK_LOG), 5, 5); | ||||||
| 
 |  | ||||||
| 	public static final Block CHERRYLOGSTRIPPED = registerPillar("stripped_cherry_log", FabricBlockSettings.copyOf(Blocks.STRIPPED_OAK_LOG), 5, 5); |  | ||||||
| 	public static final Block CHERRYLOG = registerPillar("cherry_log", FabricBlockSettings.copyOf(Blocks.OAK_LOG), 5, 5, CHERRYLOGSTRIPPED); |  | ||||||
| 	public static final Block CHERRYWOOD = registerPillar("cherry_wood", FabricBlockSettings.copyOf(Blocks.OAK_WOOD), 5, 5); |  | ||||||
| 	public static final Block CHERRYWOODSTRIPPED = registerPillar("stripped_cherry_wood", FabricBlockSettings.copyOf(Blocks.STRIPPED_OAK_WOOD), 5, 5); |  | ||||||
| 	public static final Block CHERRYLEAVES = registerLeaves("cherry_leaves", FabricBlockSettings.copyOf(Blocks.OAK_LEAVES), 30, 60, 6649929); | 	public static final Block CHERRYLEAVES = registerLeaves("cherry_leaves", FabricBlockSettings.copyOf(Blocks.OAK_LEAVES), 30, 60, 6649929); | ||||||
| 	public static final Block CHERRYPLANKS = registerBlock("cherry_planks", FabricBlockSettings.copyOf(Blocks.OAK_PLANKS), 5, 20); | 	public static final Block CHERRYPLANKS = registerBlock("cherry_planks", FabricBlockSettings.copyOf(Blocks.OAK_PLANKS), 5, 20); | ||||||
| 	public static final Block CHERRYFENCE = registerFence("cherry_fence", FabricBlockSettings.copyOf(Blocks.OAK_FENCE), 5, 20); // TODO: Textures, tags (as required) |  | ||||||
| 	public static final Block CHERRYFENCEGATE = registerFenceGate("cherry_fence_gate", FabricBlockSettings.copyOf(Blocks.OAK_FENCE_GATE), 5, 20); // Textures, recipe, loot_tables, tags (as required) |  | ||||||
| 	public static final Block CHERRYDOOR = registerDoor("cherry_door", FabricBlockSettings.copyOf(Blocks.OAK_DOOR), 5, 20); // TODO: Textures, recipe, loot_tables, tags (as required) |  | ||||||
| 
 | 
 | ||||||
| 	private static Block registerBlock(String blockID, FabricBlockSettings settings, int burnChance, int burnSpread) { | 	private static Block registerBlock(String blockID, FabricBlockSettings settings, int burnChance, int burnSpread){ | ||||||
| 		Block block = new Block(settings); | 		Block block = new Block(settings); | ||||||
| 		Registry.register(Registry.BLOCK, new Identifier("cherry", blockID), block); | 		Registry.register(Registry.BLOCK, new Identifier("cherry", blockID), block); | ||||||
| 		FlammableBlockRegistry.getDefaultInstance().add(block, burnChance, burnSpread); | 		FlammableBlockRegistry.getDefaultInstance().add(block, burnChance, burnSpread); | ||||||
| 		return block; | 		return block; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	private static Block registerFence(String blockID, FabricBlockSettings settings, int burnChance, int burnSpread) { |  | ||||||
| 		Block block = new FenceBlock(settings); |  | ||||||
| 		Registry.register(Registry.BLOCK, new Identifier("cherry", blockID), block); |  | ||||||
| 		FlammableBlockRegistry.getDefaultInstance().add(block, burnChance, burnSpread); |  | ||||||
| 		return block; |  | ||||||
| 	} |  | ||||||
| 
 |  | ||||||
| 	private static Block registerFenceGate(String blockID, FabricBlockSettings settings, int burnChance, int burnSpread) { |  | ||||||
| 		Block block = new FenceGateBlock(settings); |  | ||||||
| 		Registry.register(Registry.BLOCK, new Identifier("cherry", blockID), block); |  | ||||||
| 		FlammableBlockRegistry.getDefaultInstance().add(block, burnChance, burnSpread); |  | ||||||
| 		return block; |  | ||||||
| 	} |  | ||||||
| 
 |  | ||||||
| 	private static Block registerPillar(String blockID, FabricBlockSettings settings, int burnChance, int burnSpread){ | 	private static Block registerPillar(String blockID, FabricBlockSettings settings, int burnChance, int burnSpread){ | ||||||
| 		Block block = new PillarBlock(settings); | 		Block block = new PillarBlock(settings); | ||||||
| 		Registry.register(Registry.BLOCK, new Identifier("cherry", blockID), block); | 		Registry.register(Registry.BLOCK, new Identifier("cherry", blockID), block); | ||||||
| @ -59,14 +29,6 @@ public class CherryBlocks { | |||||||
| 		return block; | 		return block; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	private static Block registerPillar(String blockID, FabricBlockSettings settings, int burnChance, int burnSpread, Block strippedVariant){ |  | ||||||
| 		Block block = new PillarBlock(settings); |  | ||||||
| 		Registry.register(Registry.BLOCK, new Identifier("cherry", blockID), block); |  | ||||||
| 		FlammableBlockRegistry.getDefaultInstance().add(block, burnChance, burnSpread); |  | ||||||
| 		STRIPPABLE_BLOCKS.put(block, strippedVariant); |  | ||||||
| 		return block; |  | ||||||
| 	} |  | ||||||
| 
 |  | ||||||
| 	private static Block registerLeaves(String blockID, FabricBlockSettings settings, int burnChance, int burnSpread, int color){ | 	private static Block registerLeaves(String blockID, FabricBlockSettings settings, int burnChance, int burnSpread, int color){ | ||||||
| 		Block block = new LeavesBlock(settings); | 		Block block = new LeavesBlock(settings); | ||||||
| 		Registry.register(Registry.BLOCK, new Identifier("cherry", blockID), block); | 		Registry.register(Registry.BLOCK, new Identifier("cherry", blockID), block); | ||||||
| @ -77,21 +39,6 @@ public class CherryBlocks { | |||||||
| 		return block; | 		return block; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	private static Block registerDoor(String blockID, FabricBlockSettings settings, int burnChance, int burnSpread){ |  | ||||||
| 		Block block = new CherryDoor(settings); |  | ||||||
| 		Registry.register(Registry.BLOCK, new Identifier("cherry", blockID), block); |  | ||||||
| 		FlammableBlockRegistry.getDefaultInstance().add(block, burnChance, burnSpread); |  | ||||||
| 		BlockRenderLayerMap.INSTANCE.putBlock(block, RenderLayer.getCutout()); |  | ||||||
| 		return block; |  | ||||||
| 	} |  | ||||||
| 
 |  | ||||||
| 	public static void init(){ | 	public static void init(){ | ||||||
| 		// Ensure not to overwrite on previous strippable logs |  | ||||||
| 		AxeItemAccessor.getStrippedLogs().forEach((log, strippedLog) -> { |  | ||||||
| 			STRIPPABLE_BLOCKS.put(log, strippedLog); |  | ||||||
| 		}); |  | ||||||
| 
 |  | ||||||
| 		// Register unique logs |  | ||||||
| 		AxeItemAccessor.setStrippedLogs(STRIPPABLE_BLOCKS.build()); |  | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  | |||||||
| @ -11,14 +11,8 @@ import net.minecraft.util.registry.Registry; | |||||||
| public class CherryItems { | public class CherryItems { | ||||||
| 	private static void registerBlockItems(){ | 	private static void registerBlockItems(){ | ||||||
| 		registerBlockItem("cherry_log", CherryBlocks.CHERRYLOG, ItemGroup.BUILDING_BLOCKS); | 		registerBlockItem("cherry_log", CherryBlocks.CHERRYLOG, ItemGroup.BUILDING_BLOCKS); | ||||||
| 		registerBlockItem("cherry_wood", CherryBlocks.CHERRYWOOD, ItemGroup.BUILDING_BLOCKS); |  | ||||||
| 		registerBlockItem("stripped_cherry_log", CherryBlocks.CHERRYLOGSTRIPPED, ItemGroup.BUILDING_BLOCKS); |  | ||||||
| 		registerBlockItem("stripped_cherry_wood", CherryBlocks.CHERRYWOODSTRIPPED, ItemGroup.BUILDING_BLOCKS); |  | ||||||
| 		registerBlockItem("cherry_leaves", CherryBlocks.CHERRYLEAVES, ItemGroup.BUILDING_BLOCKS, 6649929); | 		registerBlockItem("cherry_leaves", CherryBlocks.CHERRYLEAVES, ItemGroup.BUILDING_BLOCKS, 6649929); | ||||||
| 		registerBlockItem("cherry_planks", CherryBlocks.CHERRYPLANKS, ItemGroup.BUILDING_BLOCKS); | 		registerBlockItem("cherry_planks", CherryBlocks.CHERRYPLANKS, ItemGroup.BUILDING_BLOCKS); | ||||||
| 		registerBlockItem("cherry_fence", CherryBlocks.CHERRYFENCE, ItemGroup.BUILDING_BLOCKS); |  | ||||||
| 		registerBlockItem("cherry_fence_gate", CherryBlocks.CHERRYFENCEGATE, ItemGroup.BUILDING_BLOCKS); |  | ||||||
| 		registerBlockItem("cherry_door", CherryBlocks.CHERRYDOOR, ItemGroup.BUILDING_BLOCKS); |  | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	// Register a standard blockItem | 	// Register a standard blockItem | ||||||
|  | |||||||
| @ -1,22 +0,0 @@ | |||||||
| package net.parsell.cherry.mixin; |  | ||||||
| 
 |  | ||||||
| import java.util.Map; |  | ||||||
| 
 |  | ||||||
| import org.spongepowered.asm.mixin.Mixin; |  | ||||||
| import org.spongepowered.asm.mixin.gen.Accessor; |  | ||||||
| 
 |  | ||||||
| import net.minecraft.block.Block; |  | ||||||
| import net.minecraft.item.AxeItem; |  | ||||||
| 
 |  | ||||||
| @Mixin(AxeItem.class) |  | ||||||
| public interface AxeItemAccessor { |  | ||||||
|     @Accessor("STRIPPED_BLOCKS") |  | ||||||
|     public static Map<Block, Block> getStrippedLogs(){ |  | ||||||
|         throw new AssertionError(); |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     @Accessor("STRIPPED_BLOCKS") |  | ||||||
|     public static void setStrippedLogs(Map<Block, Block> STRIPPED_BLOCKS){ |  | ||||||
|         throw new AssertionError(); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @ -1,124 +0,0 @@ | |||||||
| { |  | ||||||
|     "variants": { |  | ||||||
|       "facing=east,half=lower,hinge=left,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom" |  | ||||||
|       }, |  | ||||||
|       "facing=east,half=lower,hinge=left,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom_hinge", |  | ||||||
|         "y": 90 |  | ||||||
|       }, |  | ||||||
|       "facing=east,half=lower,hinge=right,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom_hinge" |  | ||||||
|       }, |  | ||||||
|       "facing=east,half=lower,hinge=right,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom", |  | ||||||
|         "y": 270 |  | ||||||
|       }, |  | ||||||
|       "facing=east,half=upper,hinge=left,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_top" |  | ||||||
|       }, |  | ||||||
|       "facing=east,half=upper,hinge=left,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_top_hinge", |  | ||||||
|         "y": 90 |  | ||||||
|       }, |  | ||||||
|       "facing=east,half=upper,hinge=right,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_top_hinge" |  | ||||||
|       }, |  | ||||||
|       "facing=east,half=upper,hinge=right,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_top", |  | ||||||
|         "y": 270 |  | ||||||
|       }, |  | ||||||
|       "facing=north,half=lower,hinge=left,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom", |  | ||||||
|         "y": 270 |  | ||||||
|       }, |  | ||||||
|       "facing=north,half=lower,hinge=left,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom_hinge" |  | ||||||
|       }, |  | ||||||
|       "facing=north,half=lower,hinge=right,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom_hinge", |  | ||||||
|         "y": 270 |  | ||||||
|       }, |  | ||||||
|       "facing=north,half=lower,hinge=right,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom", |  | ||||||
|         "y": 180 |  | ||||||
|       }, |  | ||||||
|       "facing=north,half=upper,hinge=left,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_top", |  | ||||||
|         "y": 270 |  | ||||||
|       }, |  | ||||||
|       "facing=north,half=upper,hinge=left,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_top_hinge" |  | ||||||
|       }, |  | ||||||
|       "facing=north,half=upper,hinge=right,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_top_hinge", |  | ||||||
|         "y": 270 |  | ||||||
|       }, |  | ||||||
|       "facing=north,half=upper,hinge=right,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_top", |  | ||||||
|         "y": 180 |  | ||||||
|       }, |  | ||||||
|       "facing=south,half=lower,hinge=left,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom", |  | ||||||
|         "y": 90 |  | ||||||
|       }, |  | ||||||
|       "facing=south,half=lower,hinge=left,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom_hinge", |  | ||||||
|         "y": 180 |  | ||||||
|       }, |  | ||||||
|       "facing=south,half=lower,hinge=right,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom_hinge", |  | ||||||
|         "y": 90 |  | ||||||
|       }, |  | ||||||
|       "facing=south,half=lower,hinge=right,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom" |  | ||||||
|       }, |  | ||||||
|       "facing=south,half=upper,hinge=left,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_top", |  | ||||||
|         "y": 90 |  | ||||||
|       }, |  | ||||||
|       "facing=south,half=upper,hinge=left,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_top_hinge", |  | ||||||
|         "y": 180 |  | ||||||
|       }, |  | ||||||
|       "facing=south,half=upper,hinge=right,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_top_hinge", |  | ||||||
|         "y": 90 |  | ||||||
|       }, |  | ||||||
|       "facing=south,half=upper,hinge=right,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_top" |  | ||||||
|       }, |  | ||||||
|       "facing=west,half=lower,hinge=left,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom", |  | ||||||
|         "y": 180 |  | ||||||
|       }, |  | ||||||
|       "facing=west,half=lower,hinge=left,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom_hinge", |  | ||||||
|         "y": 270 |  | ||||||
|       }, |  | ||||||
|       "facing=west,half=lower,hinge=right,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom_hinge", |  | ||||||
|         "y": 180 |  | ||||||
|       }, |  | ||||||
|       "facing=west,half=lower,hinge=right,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_bottom", |  | ||||||
|         "y": 90 |  | ||||||
|       }, |  | ||||||
|       "facing=west,half=upper,hinge=left,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_top", |  | ||||||
|         "y": 180 |  | ||||||
|       }, |  | ||||||
|       "facing=west,half=upper,hinge=left,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_top_hinge", |  | ||||||
|         "y": 270 |  | ||||||
|       }, |  | ||||||
|       "facing=west,half=upper,hinge=right,open=false": { |  | ||||||
|         "model": "minecraft:block/oak_door_top_hinge", |  | ||||||
|         "y": 180 |  | ||||||
|       }, |  | ||||||
|       "facing=west,half=upper,hinge=right,open=true": { |  | ||||||
|         "model": "minecraft:block/oak_door_top", |  | ||||||
|         "y": 90 |  | ||||||
|       } |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| @ -1,48 +0,0 @@ | |||||||
| { |  | ||||||
|     "multipart": [ |  | ||||||
|       { |  | ||||||
|         "apply": { |  | ||||||
|           "model": "minecraft:block/acacia_fence_post" |  | ||||||
|         } |  | ||||||
|       }, |  | ||||||
|       { |  | ||||||
|         "when": { |  | ||||||
|           "north": "true" |  | ||||||
|         }, |  | ||||||
|         "apply": { |  | ||||||
|           "model": "minecraft:block/acacia_fence_side", |  | ||||||
|           "uvlock": true |  | ||||||
|         } |  | ||||||
|       }, |  | ||||||
|       { |  | ||||||
|         "when": { |  | ||||||
|           "east": "true" |  | ||||||
|         }, |  | ||||||
|         "apply": { |  | ||||||
|           "model": "minecraft:block/acacia_fence_side", |  | ||||||
|           "y": 90, |  | ||||||
|           "uvlock": true |  | ||||||
|         } |  | ||||||
|       }, |  | ||||||
|       { |  | ||||||
|         "when": { |  | ||||||
|           "south": "true" |  | ||||||
|         }, |  | ||||||
|         "apply": { |  | ||||||
|           "model": "minecraft:block/acacia_fence_side", |  | ||||||
|           "y": 180, |  | ||||||
|           "uvlock": true |  | ||||||
|         } |  | ||||||
|       }, |  | ||||||
|       { |  | ||||||
|         "when": { |  | ||||||
|           "west": "true" |  | ||||||
|         }, |  | ||||||
|         "apply": { |  | ||||||
|           "model": "minecraft:block/acacia_fence_side", |  | ||||||
|           "y": 270, |  | ||||||
|           "uvlock": true |  | ||||||
|         } |  | ||||||
|       } |  | ||||||
|     ] |  | ||||||
|   } |  | ||||||
| @ -1,80 +0,0 @@ | |||||||
| { |  | ||||||
|   "variants": { |  | ||||||
|     "facing=east,in_wall=false,open=false": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "y": 270, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate" |  | ||||||
|     }, |  | ||||||
|     "facing=east,in_wall=false,open=true": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "y": 270, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate_open" |  | ||||||
|     }, |  | ||||||
|     "facing=east,in_wall=true,open=false": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "y": 270, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate_wall" |  | ||||||
|     }, |  | ||||||
|     "facing=east,in_wall=true,open=true": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "y": 270, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate_wall_open" |  | ||||||
|     }, |  | ||||||
|     "facing=north,in_wall=false,open=false": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "y": 180, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate" |  | ||||||
|     }, |  | ||||||
|     "facing=north,in_wall=false,open=true": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "y": 180, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate_open" |  | ||||||
|     }, |  | ||||||
|     "facing=north,in_wall=true,open=false": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "y": 180, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate_wall" |  | ||||||
|     }, |  | ||||||
|     "facing=north,in_wall=true,open=true": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "y": 180, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate_wall_open" |  | ||||||
|     }, |  | ||||||
|     "facing=south,in_wall=false,open=false": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate" |  | ||||||
|     }, |  | ||||||
|     "facing=south,in_wall=false,open=true": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate_open" |  | ||||||
|     }, |  | ||||||
|     "facing=south,in_wall=true,open=false": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate_wall" |  | ||||||
|     }, |  | ||||||
|     "facing=south,in_wall=true,open=true": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate_wall_open" |  | ||||||
|     }, |  | ||||||
|     "facing=west,in_wall=false,open=false": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "y": 90, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate" |  | ||||||
|     }, |  | ||||||
|     "facing=west,in_wall=false,open=true": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "y": 90, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate_open" |  | ||||||
|     }, |  | ||||||
|     "facing=west,in_wall=true,open=false": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "y": 90, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate_wall" |  | ||||||
|     }, |  | ||||||
|     "facing=west,in_wall=true,open=true": { |  | ||||||
|       "uvlock": true, |  | ||||||
|       "y": 90, |  | ||||||
|       "model": "minecraft:block/acacia_fence_gate_wall_open" |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| @ -1,16 +0,0 @@ | |||||||
| { |  | ||||||
|   "variants": { |  | ||||||
|     "axis=y": { |  | ||||||
|       "model": "cherry:block/cherry_wood" |  | ||||||
|     }, |  | ||||||
|     "axis=z": { |  | ||||||
|       "model": "cherry:block/cherry_wood", |  | ||||||
|       "x": 90 |  | ||||||
|     }, |  | ||||||
|     "axis=x": { |  | ||||||
|       "model": "cherry:block/cherry_wood", |  | ||||||
|       "x": 90, |  | ||||||
|       "y": 90 |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| @ -1,16 +0,0 @@ | |||||||
| { |  | ||||||
|   "variants": { |  | ||||||
|     "axis=y": { |  | ||||||
|       "model": "cherry:block/stripped_cherry_log" |  | ||||||
|     }, |  | ||||||
|     "axis=z": { |  | ||||||
|       "model": "cherry:block/stripped_cherry_log", |  | ||||||
|       "x": 90 |  | ||||||
|     }, |  | ||||||
|     "axis=x": { |  | ||||||
|       "model": "cherry:block/stripped_cherry_log", |  | ||||||
|       "x": 90, |  | ||||||
|       "y": 90 |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| @ -1,16 +0,0 @@ | |||||||
| { |  | ||||||
|   "variants": { |  | ||||||
|     "axis=y": { |  | ||||||
|       "model": "cherry:block/stripped_cherry_wood" |  | ||||||
|     }, |  | ||||||
|     "axis=z": { |  | ||||||
|       "model": "cherry:block/stripped_cherry_wood", |  | ||||||
|       "x": 90 |  | ||||||
|     }, |  | ||||||
|     "axis=x": { |  | ||||||
|       "model": "cherry:block/stripped_cherry_wood", |  | ||||||
|       "x": 90, |  | ||||||
|       "y": 90 |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| @ -1,11 +1,5 @@ | |||||||
| { | { | ||||||
|     "block.cherry.cherry_log": "Cherry Log", |     "block.cherry.cherry_log": "Cherry Log", | ||||||
|     "block.cherry.cherry_wood": "Cherry Wood", |  | ||||||
|     "block.cherry.stripped_cherry_log": "Stripped Cherry Log", |  | ||||||
|     "block.cherry.stripped_cherry_wood": "Stripped Cherry Wood", |  | ||||||
|     "block.cherry.cherry_leaves": "Cherry Leaves", |     "block.cherry.cherry_leaves": "Cherry Leaves", | ||||||
|     "block.cherry.cherry_planks": "Cherry Planks", |     "block.cherry.cherry_planks": "Cherry Planks" | ||||||
|     "block.cherry.cherry_fence": "Cherry Fence", |  | ||||||
|     "block.cherry.cherry_fence_gate": "Cherry Fence Gate", |  | ||||||
|     "block.cherry.cherry_door": "Cherry Door" |  | ||||||
| } | } | ||||||
| @ -1,7 +0,0 @@ | |||||||
| { |  | ||||||
|     "parent": "minecraft:block/door_top", |  | ||||||
|     "textures": { |  | ||||||
|       "top": "minecraft:block/acacia_door_top", |  | ||||||
|       "bottom": "minecraft:block/acacia_door_bottom" |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| @ -1,7 +0,0 @@ | |||||||
| { |  | ||||||
|     "parent": "minecraft:block/door_top_rh", |  | ||||||
|     "textures": { |  | ||||||
|       "top": "minecraft:block/acacia_door_top", |  | ||||||
|       "bottom": "minecraft:block/acacia_door_bottom" |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| @ -1,7 +0,0 @@ | |||||||
| { |  | ||||||
|     "parent": "minecraft:block/door_top", |  | ||||||
|     "textures": { |  | ||||||
|       "top": "minecraft:block/acacia_door_top", |  | ||||||
|       "bottom": "minecraft:block/acacia_door_bottom" |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| @ -1,7 +0,0 @@ | |||||||
| { |  | ||||||
|     "parent": "minecraft:block/door_top_rh", |  | ||||||
|     "textures": { |  | ||||||
|       "top": "minecraft:block/acacia_door_top", |  | ||||||
|       "bottom": "minecraft:block/acacia_door_bottom" |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| @ -1,6 +0,0 @@ | |||||||
| { |  | ||||||
|     "parent": "minecraft:block/template_fence_gate", |  | ||||||
|     "textures": { |  | ||||||
|       "texture": "minecraft:block/oak_planks" |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| @ -1,6 +0,0 @@ | |||||||
| { |  | ||||||
|     "parent": "minecraft:block/template_fence_gate_open", |  | ||||||
|     "textures": { |  | ||||||
|       "texture": "minecraft:block/oak_planks" |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| @ -1,6 +0,0 @@ | |||||||
| { |  | ||||||
|     "parent": "minecraft:block/template_fence_gate_wall", |  | ||||||
|     "textures": { |  | ||||||
|       "texture": "minecraft:block/oak_planks" |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| @ -1,6 +0,0 @@ | |||||||
| { |  | ||||||
|     "parent": "minecraft:block/template_fence_gate_wall_open", |  | ||||||
|     "textures": { |  | ||||||
|       "texture": "minecraft:block/oak_planks" |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| @ -1,6 +0,0 @@ | |||||||
| { |  | ||||||
|     "parent": "minecraft:block/fence_inventory", |  | ||||||
|     "textures": { |  | ||||||
|       "texture": "minecraft:block/oak_planks" |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| @ -1,6 +0,0 @@ | |||||||
| { |  | ||||||
|     "parent": "minecraft:block/fence_post", |  | ||||||
|     "textures": { |  | ||||||
|       "texture": "minecraft:block/oak_planks" |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| @ -1,6 +0,0 @@ | |||||||
| { |  | ||||||
|     "parent": "minecraft:block/fence_side", |  | ||||||
|     "textures": { |  | ||||||
|       "texture": "minecraft:block/oak_planks" |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| @ -1,7 +0,0 @@ | |||||||
| { |  | ||||||
|   "parent": "block/cube_column", |  | ||||||
|   "textures": { |  | ||||||
|     "end": "cherry:block/cherry_log", |  | ||||||
|     "side": "cherry:block/cherry_log" |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| @ -1,7 +0,0 @@ | |||||||
| { |  | ||||||
|   "parent": "block/cube_column", |  | ||||||
|   "textures": { |  | ||||||
|     "end": "cherry:block/stripped_cherry_log_top", |  | ||||||
|     "side": "cherry:block/stripped_cherry_log" |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| @ -1,7 +0,0 @@ | |||||||
| { |  | ||||||
|   "parent": "block/cube_column", |  | ||||||
|   "textures": { |  | ||||||
|     "end": "cherry:block/stripped_cherry_log", |  | ||||||
|     "side": "cherry:block/stripped_cherry_log" |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| @ -1,4 +0,0 @@ | |||||||
| { |  | ||||||
|     "parent": "cherry:block/cherry_wood" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| @ -1,4 +0,0 @@ | |||||||
| { |  | ||||||
|     "parent": "cherry:block/stripped_cherry_log" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| @ -1,4 +0,0 @@ | |||||||
| { |  | ||||||
|     "parent": "cherry:block/stripped_cherry_wood" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 14 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 14 KiB | 
| @ -6,7 +6,7 @@ | |||||||
|   "mixins": [ |   "mixins": [ | ||||||
|   ], |   ], | ||||||
|   "client": [ |   "client": [ | ||||||
|     "AxeItemAccessor" |     "CherryMixin" | ||||||
|   ], |   ], | ||||||
|   "injectors": { |   "injectors": { | ||||||
|     "defaultRequire": 1 |     "defaultRequire": 1 | ||||||
|  | |||||||
| @ -1,20 +0,0 @@ | |||||||
| { |  | ||||||
|     "type": "minecraft:block", |  | ||||||
|     "pools": [ |  | ||||||
|       { |  | ||||||
|         "rolls": 1, |  | ||||||
|         "entries": [ |  | ||||||
|           { |  | ||||||
|             "type": "minecraft:item", |  | ||||||
|             "name": "cherry:cherry_fence" |  | ||||||
|           } |  | ||||||
|         ], |  | ||||||
|         "conditions": [ |  | ||||||
|           { |  | ||||||
|             "condition": "minecraft:survives_explosion" |  | ||||||
|           } |  | ||||||
|         ] |  | ||||||
|       } |  | ||||||
|     ] |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
| @ -1,20 +0,0 @@ | |||||||
| { |  | ||||||
|     "type": "minecraft:block", |  | ||||||
|     "pools": [ |  | ||||||
|       { |  | ||||||
|         "rolls": 1, |  | ||||||
|         "entries": [ |  | ||||||
|           { |  | ||||||
|             "type": "minecraft:item", |  | ||||||
|             "name": "cherry:cherry_planks" |  | ||||||
|           } |  | ||||||
|         ], |  | ||||||
|         "conditions": [ |  | ||||||
|           { |  | ||||||
|             "condition": "minecraft:survives_explosion" |  | ||||||
|           } |  | ||||||
|         ] |  | ||||||
|       } |  | ||||||
|     ] |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
| @ -1,20 +0,0 @@ | |||||||
| { |  | ||||||
|     "type": "minecraft:block", |  | ||||||
|     "pools": [ |  | ||||||
|       { |  | ||||||
|         "rolls": 1, |  | ||||||
|         "entries": [ |  | ||||||
|           { |  | ||||||
|             "type": "minecraft:item", |  | ||||||
|             "name": "cherry:cherry_wood" |  | ||||||
|           } |  | ||||||
|         ], |  | ||||||
|         "conditions": [ |  | ||||||
|           { |  | ||||||
|             "condition": "minecraft:survives_explosion" |  | ||||||
|           } |  | ||||||
|         ] |  | ||||||
|       } |  | ||||||
|     ] |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
| @ -1,20 +0,0 @@ | |||||||
| { |  | ||||||
|     "type": "minecraft:block", |  | ||||||
|     "pools": [ |  | ||||||
|       { |  | ||||||
|         "rolls": 1, |  | ||||||
|         "entries": [ |  | ||||||
|           { |  | ||||||
|             "type": "minecraft:item", |  | ||||||
|             "name": "cherry:stripped_cherry_wood" |  | ||||||
|           } |  | ||||||
|         ], |  | ||||||
|         "conditions": [ |  | ||||||
|           { |  | ||||||
|             "condition": "minecraft:survives_explosion" |  | ||||||
|           } |  | ||||||
|         ] |  | ||||||
|       } |  | ||||||
|     ] |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
| @ -1,20 +0,0 @@ | |||||||
| { |  | ||||||
|     "type": "minecraft:block", |  | ||||||
|     "pools": [ |  | ||||||
|       { |  | ||||||
|         "rolls": 1, |  | ||||||
|         "entries": [ |  | ||||||
|           { |  | ||||||
|             "type": "minecraft:item", |  | ||||||
|             "name": "cherry:stripped_cherry_wood" |  | ||||||
|           } |  | ||||||
|         ], |  | ||||||
|         "conditions": [ |  | ||||||
|           { |  | ||||||
|             "condition": "minecraft:survives_explosion" |  | ||||||
|           } |  | ||||||
|         ] |  | ||||||
|       } |  | ||||||
|     ] |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
| @ -1,20 +0,0 @@ | |||||||
| { |  | ||||||
|   "type": "minecraft:crafting_shaped", |  | ||||||
|   "group": "wooden_fence", |  | ||||||
|   "pattern": [ |  | ||||||
|     "W#W", |  | ||||||
|     "W#W" |  | ||||||
|   ], |  | ||||||
|   "key": { |  | ||||||
|     "#": { |  | ||||||
|       "item": "minecraft:stick" |  | ||||||
|     }, |  | ||||||
|     "W": { |  | ||||||
|       "item": "cherry:cherry_planks" |  | ||||||
|     } |  | ||||||
|   }, |  | ||||||
|   "result": { |  | ||||||
|     "item": "cherry:cherry_fence", |  | ||||||
|     "count": 3 |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| @ -1,17 +0,0 @@ | |||||||
| { |  | ||||||
|     "type": "minecraft:crafting_shaped", |  | ||||||
|     "group": "bark", |  | ||||||
|     "pattern": [ |  | ||||||
|       "##", |  | ||||||
|       "##" |  | ||||||
|     ], |  | ||||||
|     "key": { |  | ||||||
|       "#": { |  | ||||||
|         "item": "cherry:cherry_log" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     "result": { |  | ||||||
|       "item": "cherry:cherry_wood", |  | ||||||
|       "count": 3 |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| @ -1,17 +0,0 @@ | |||||||
| { |  | ||||||
|     "type": "minecraft:crafting_shaped", |  | ||||||
|     "group": "bark", |  | ||||||
|     "pattern": [ |  | ||||||
|       "##", |  | ||||||
|       "##" |  | ||||||
|     ], |  | ||||||
|     "key": { |  | ||||||
|       "#": { |  | ||||||
|         "item": "cherry:stripped_cherry_log" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     "result": { |  | ||||||
|       "item": "cherry:stripped_cherry_wood", |  | ||||||
|       "count": 3 |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| @ -1,9 +1,6 @@ | |||||||
| { | { | ||||||
|     "replace": false, |     "replace": false, | ||||||
|     "values": [ |     "values": [ | ||||||
|         "cherry:cherry_log", |         "cherry:cherry_log" | ||||||
|         "cherry:cherry_wood", |  | ||||||
|         "cherry:stripped_cherry_log", |  | ||||||
|         "cherry:stripped_cherry_wood" |  | ||||||
|     ] |     ] | ||||||
| } | } | ||||||
|  | |||||||
| @ -1,9 +1,6 @@ | |||||||
| { | { | ||||||
|     "replace": false, |     "replace": false, | ||||||
|     "values": [ |     "values": [ | ||||||
|         "cherry:cherry_log", |         "cherry:cherry_log" | ||||||
|         "cherry:cherry_wood", |  | ||||||
|         "cherry:stripped_cherry_log", |  | ||||||
|         "cherry:stripped_cherry_wood" |  | ||||||
|     ] |     ] | ||||||
| } | } | ||||||
| @ -1,6 +0,0 @@ | |||||||
| { |  | ||||||
|     "replace": false, |  | ||||||
|     "values": [ |  | ||||||
|         "cherry:cherry_fence" |  | ||||||
|     ] |  | ||||||
| } |  | ||||||
| @ -1,6 +0,0 @@ | |||||||
| { |  | ||||||
|     "replace": false, |  | ||||||
|     "values": [ |  | ||||||
|         "cherry:cherry_fence" |  | ||||||
|     ] |  | ||||||
| } |  | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user