Skip to content

Commit

Permalink
inspiration & madness engine remodeled
Browse files Browse the repository at this point in the history
  • Loading branch information
KELETU66666 committed Sep 17, 2024
1 parent c15d3ff commit a552e53
Show file tree
Hide file tree
Showing 19 changed files with 1,997 additions and 342 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build.xml
Icon?
ehthumbs.db
Thumbs.db
gradle.properties
#gradle stuff
/.gradle
/build/
Expand Down
7 changes: 6 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ use_access_transformer = false

# Coremod Arguments
include_mod = true
coremod_plugin_class_name =
coremod_plugin_class_name =

systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=7890
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=7890
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@
import net.minecraft.block.material.Material;
import net.minecraft.block.state.BlockFaceShape;
import net.minecraft.block.state.IBlockState;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.EnumBlockRenderType;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import thaumcraft.common.blocks.IBlockFacingHorizontal;

public class BlockInspirationEngine extends BlockDeviceTW<TileInspirationEngine> {
public class BlockInspirationEngine extends BlockDeviceTW<TileInspirationEngine> implements IBlockFacingHorizontal {
public BlockInspirationEngine() {
super(Material.IRON, TileInspirationEngine.class, "inspiration_engine");
this.setSoundType(SoundType.METAL);
Expand All @@ -31,4 +36,10 @@ public boolean isOpaqueCube(IBlockState state) {
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
return BlockFaceShape.UNDEFINED;
}

@SideOnly(Side.CLIENT)
public BlockRenderLayer getRenderLayer()
{
return BlockRenderLayer.CUTOUT;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
import net.minecraft.block.material.Material;
import net.minecraft.block.state.BlockFaceShape;
import net.minecraft.block.state.IBlockState;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import thaumcraft.common.blocks.IBlockFacingHorizontal;

public class BlockMadnessEngine extends BlockDeviceTW<TileMadnessEngine> {
public class BlockMadnessEngine extends BlockDeviceTW<TileMadnessEngine> implements IBlockFacingHorizontal {
public BlockMadnessEngine() {
super(Material.IRON, TileMadnessEngine.class, "madness_engine");
this.setSoundType(SoundType.METAL);
Expand All @@ -31,4 +35,10 @@ public boolean isOpaqueCube(IBlockState state) {
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
return BlockFaceShape.UNDEFINED;
}

@SideOnly(Side.CLIENT)
public BlockRenderLayer getRenderLayer()
{
return BlockRenderLayer.CUTOUT;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public Aspect getSuctionType(EnumFacing face) {

@Override
public boolean isConnectable(EnumFacing face) {
return face != EnumFacing.UP;
return face == this.getFacing().getOpposite();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"forge_marker": 1,
"defaults": {
"model": "thaumicwonders:inspiration_engine",
"transform": "forge:default-block"
},
"model": "thaumicwonders:inspiration_engine.obj",
"transform": "forge:default-block",
"textures": {"#material_all": "thaumicwonders:blocks/inspiration_engine"}
},
"variants": {
"normal": [{}], "inventory": [{}]
"normal": [{}], "inventory": [{}],
"facing=north": {"model": "thaumicwonders:inspiration_engine.obj"},
"facing=south": {"model": "thaumicwonders:inspiration_engine.obj","y": 180},
"facing=east": {"model": "thaumicwonders:inspiration_engine.obj","y": 90},
"facing=west": {"model": "thaumicwonders:inspiration_engine.obj","y": 270}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"forge_marker": 1,
"defaults": {
"model": "thaumicwonders:madness_engine",
"transform": "forge:default-block"
},
"model": "thaumicwonders:madness_engine.obj",
"transform": "forge:default-block",
"textures": {"#material_all": "thaumicwonders:blocks/madness_engine"}
},
"variants": {
"normal": [{}], "inventory": [{}]
"normal": [{}], "inventory": [{}],
"facing=north": {"model": "thaumicwonders:madness_engine.obj"},
"facing=south": {"model": "thaumicwonders:madness_engine.obj","y": 180},
"facing=east": {"model": "thaumicwonders:madness_engine.obj","y": 90},
"facing=west": {"model": "thaumicwonders:madness_engine.obj","y": 270}
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Made in Blockbench 4.10.4
newmtl material_all
map_Kd thaumicwonders:blcoks/inspiration_engine
newmtl none
Loading

0 comments on commit a552e53

Please sign in to comment.