Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

28Smiles

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About 28Smiles

  • Rank
    Tree Puncher

Converted

  • Gender
    Male
  • Personal Text
    Wtf?! Let's code it again...
  1. Hello, I want to try out the new Block Animation Framework for a mod of mine, but I have no idea how the Animation works.. I have a correct Blockstate, with static Propertie and so on, it is working fine, but my animation json are not working as expected. One box of the animated model is deplaced and the rest isn't doing anything... My idea here is that the shaftmodel should start spinning if the state changed to moving: Armature -- https://pastebin.com/tvkWbZHf Blockstate -- https://pastebin.com/5tgjM3zb ASMS -- https://pastebin.com/W7czgwjq BoxM
  2. I am trying to make a spinning block with an obj model. So far it went quite well: But if I try to start the block to spin around via. TRSRTransformation the block stops the model rendering and displays a normal block with missing texture. Block: public class BlockPylon extends Block implements ITileEntityProvider { public static final BlockPylon INSTANCE = new BlockPylon(); public static final String name = "pylon"; public ExtendedBlockState state = new ExtendedBlockState(this, new IProperty[0], new IUnlistedProperty[] {OBJModel.OBJProperty.INSTANCE}); public BlockPylon() {
  3. Thank's to all and especially to elix I missed the *.png at the end for those who are interested in the project here is a picture:
  4. Yes it's easy but just for 1.7.10, in 1.8(look in the Subject) it isn't. My Problem is that the Texture isn't found, I get the missing texture.... Altrough thanks, but the Problem isn't solved
  5. Hello, I've some trouble with my Fluidtank. It dousen't find the Texture of Water here the nessesary code: ResourceLocation fluidTexture = fluidTank.getFluid().getFluid().getStill(fluidTank.getFluid()); fluidTexture = new ResourceLocation(fluidTexture.getResourceDomain(), "textures/" + fluidTexture.getResourcePath()); Minecraft.getMinecraft().renderEngine.bindTexture(fluidTexture); parent.setGLColorFromInt(fluidTank.getFluid().getFluid().getColor()); parent.drawSizedTexturedModalRect((int)position.getX() + 1 + (int)topLeft.getX(), (int)position.getY() + (int)topLeft.getY() + 59 -
  6. You have to Sync the Server Tile with the client Tile (Commonly you just send the nessesary data from Server to Client). You can use Netty-IO: http://www.minecraftforge.net/wiki/Netty_Packet_Handling or TileEntityPackets: public Packet getDescriptionPacket() and public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt)
  7. 1. Look with something like JDecompiler at the EnderPearl 2. If you wan't to make this you may have to make a new Arrow and/or Bow
  8. I see you are from germany.. So wenn du noch Hilfe brauchst dann melde dich bei mir und ich erklär dir den Fehler.
  9. I know.... Oh sorry here See: public class Boiler extends Block implements ITileEntityProvider { public static final PropertyInteger STATE = PropertyInteger.create("state", 0, 15); protected Boiler() { super(Material.iron); setUnlocalizedName("boiler"); this.setDefaultState(this.blockState.getBaseState().withProperty(STATE, 0)); } @Override public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumFacing arg4, float arg5, float arg6, float arg7) { TileEntity tile = world.getTileEntity(pos); if(tile != null) return ((TileEntityB
  10. I've programmed an Multiblock but my variable is empty public class Boiler extends Block implements ITileEntityProvider { public static final PropertyInteger STATE = PropertyInteger.create("state", 0, 15); protected Boiler() { super(Material.iron); setUnlocalizedName("boiler"); this.setDefaultState(this.blockState.getBaseState().withProperty(STATE, 0)); } @Override public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumFacing arg4, float arg5, float arg6, float arg7) { TileEntity tile = world.getTileEntity(pos); if(tile != null)
  11. If I test my Mod in eclipse the Server has to be in offline mode !? But, also in online mode this is not working.
  12. If I start Minecraft in eclipse everything works great, but if I connect to my server(in offline mode) I become an Error. ---- Minecraft Crash Report ---- // Oh - I know what I did wrong! Time: 14.07.14 17:50 Description: Ticking screen java.lang.NullPointerException at java.net.URLEncoder.encode(URLEncoder.java:205) at net.minecraft.client.multiplayer.NetClientHandler.urlEncode(NetClientHandler.java:336) at net.minecraft.client.multiplayer.NetClientHandler.sendSessionRequest(NetClientHandler.java:318) at net.minecraft.client.multiplayer.NetClientHandler.ha
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.