Skip to content

Commit 4ea48ed

Browse files
author
Codename Revy
committed
1.3.1 Update:
- Added Horizontal Bars for every type; - Added recipes for horizontal bars; - Fixed Crossed oak bars recipe for Corail Woodcutter; - Working on fixing some code clutter in future releases.
1 parent 2f79418 commit 4ea48ed

File tree

121 files changed

+2657
-50
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+2657
-50
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"meta":{"format_version":"3.0","model_format":"java_block","box_uv":false},"name":"horizontal_pane_block","resolution":{"width":16,"height":16},"elements":[{"name":"main","from":[0,8,0],"to":[16,8,16],"autouv":0,"color":2,"origin":[8,8,8],"faces":{"north":{"uv":[0,0,16,0],"texture":0},"east":{"uv":[0,0,16,0],"texture":0},"south":{"uv":[0,0,16,0],"texture":0},"west":{"uv":[0,0,16,0],"texture":0},"up":{"uv":[0,0,16,16],"texture":0},"down":{"uv":[0,0,16,16],"texture":0}},"uuid":"895780c0-a0e4-e453-7355-24642a89e6fe"}],"outliner":[{"name":"main","uuid":"e7324896-4907-817b-47c9-99457dc02bdf","export":true,"isOpen":false,"visibility":true,"autouv":0,"origin":[8,8,8],"children":["895780c0-a0e4-e453-7355-24642a89e6fe"]}],"textures":[{"path":"C:\\Users\\marko\\Desktop\\Additional-Bars\\src\\main\\resources\\assets\\additionalbars\\textures\\block\\crossed_iron_bars.png","name":"crossed_iron_bars.png","folder":"block","namespace":"additionalbars","id":"0","particle":true,"mode":"link","saved":true,"uuid":"01aeef29-07d7-d52b-1c5a-e6ad913ab4d7"}],"display":{"thirdperson_righthand":{"rotation":[90,0,0],"translation":[0,0,-0.25],"scale":[0.7,0.7,0.7]},"thirdperson_lefthand":{"rotation":[90,0,0],"scale":[0.7,0.7,0.7]},"firstperson_righthand":{"rotation":[6,23,10]},"firstperson_lefthand":{"rotation":[-6,23,10]},"gui":{"rotation":[23,45,2],"scale":[0.8,1,0.8]},"head":{"translation":[0,6.75,0]}}}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ apply plugin: 'net.minecraftforge.gradle'
1313
apply plugin: 'idea'
1414
apply plugin: 'maven-publish'
1515

16-
version = '1.3.0_ALPHA'
16+
version = '1.3.1'
1717
group = 'com.codenamerevy.additionalbars' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
1818
archivesBaseName = 'additionalbars'
1919

src/main/java/com/codenamerevy/additionalbars/AdditionalBars.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.codenamerevy.additionalbars.config.Config;
44
import com.codenamerevy.additionalbars.init.BlockInit;
55
import com.codenamerevy.additionalbars.tabs.CreativeGroup;
6+
import com.codenamerevy.additionalbars.tabs.HorizontalCreativeGroup;
67
import com.codenamerevy.additionalbars.util.Ref;
78
import com.codenamerevy.additionalbars.util.handler.BlockRegistryHandler;
89
import com.codenamerevy.additionalbars.util.handler.ItemRegistryHandler;
@@ -19,14 +20,18 @@
1920

2021
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2122
* *
22-
* MAJOR TODO: Find a fix for the clusterfuck in models resources. *
23+
* MAJOR TODO #1: Find a fix for the clusterfuck in models resources. *
2324
* *
2425
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2526

27+
//TODO #2: Make some of the Horizontal bars orientable (Related to #1)
28+
29+
@SuppressWarnings("all")
2630
@Mod(Ref.MODID)
2731
public class AdditionalBars
2832
{
2933
public static final ItemGroup ADDITIONAL_BARS = new CreativeGroup("additionalBars");
34+
public static final ItemGroup HORIZONTAL_ADDITIONAL_BARS = new HorizontalCreativeGroup("horizontaladditionalbars");
3035

3136
public AdditionalBars()
3237
{
@@ -102,6 +107,7 @@ private void clientSetup(final FMLClientSetupEvent event)
102107
*************/
103108

104109
//Vanilla
110+
RenderTypeLookup.setRenderLayer(BlockInit.HORIZONTAL_IRON_BARS, RenderType.getCutout());
105111
RenderTypeLookup.setRenderLayer(BlockInit.HORIZONTAL_GOLD_BARS, RenderType.getCutout());
106112
RenderTypeLookup.setRenderLayer(BlockInit.HORIZONTAL_ACACIA_BARS, RenderType.getCutout());
107113
RenderTypeLookup.setRenderLayer(BlockInit.HORIZONTAL_BIRCH_BARS, RenderType.getCutout());

src/main/java/com/codenamerevy/additionalbars/content/block/BlockHorizontalBars.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
public class BlockHorizontalBars extends Block implements IWaterLoggable
2424
{
2525
private final double nodeX = 0.0D;
26-
private final double nodeY = 8.0D;
26+
private final double nodeY = 7.5D;
2727
private final double nodeZ = 0.0D;
2828

2929
private final double extensionX = 16.0D;
30-
private final double extensionY = 10.0D;
30+
private final double extensionY = 8.5D;
3131
private final double extensionZ = 16.0D;
3232

3333
public static final BooleanProperty WATERLOGGED = BlockStateProperties.WATERLOGGED;

src/main/java/com/codenamerevy/additionalbars/init/BlockInit.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,5 @@ public class BlockInit
107107
public static final Block HORIZONTAL_CROSSED_MAGIC_BARS = new BlockHorizontalBars(Block.Properties.create(Material.WOOD, MaterialColor.WOOD).hardnessAndResistance(5.0F, 6.0F).sound(SoundType.WOOD).harvestTool(ToolType.AXE).harvestLevel(0)).setRegistryName(location("horizontal_crossed_magic_bars"));
108108
public static final Block HORIZONTAL_CROSSED_UMBRAN_BARS = new BlockHorizontalBars(Block.Properties.create(Material.WOOD, MaterialColor.WOOD).hardnessAndResistance(5.0F, 6.0F).sound(SoundType.WOOD).harvestTool(ToolType.AXE).harvestLevel(0)).setRegistryName(location("horizontal_crossed_umbran_bars"));
109109
public static final Block HORIZONTAL_CROSSED_HELLBARK_BARS = new BlockHorizontalBars(Block.Properties.create(Material.WOOD, MaterialColor.WOOD).hardnessAndResistance(5.0F, 6.0F).sound(SoundType.WOOD).harvestTool(ToolType.AXE).harvestLevel(0)).setRegistryName(location("horizontal_crossed_hellbark_bars"));
110-
111-
//ToDo: fix inventory rendering for horizontal bars
112-
//ToDo: add recipes
113110
}
114111

0 commit comments

Comments
 (0)