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


  • Content Count

  • Joined

  • Last visited

Everything posted by DF_Waffle

  1. I think I implemented the getDescriptionPacket and onDataPacket but nothing happened the same thing is still happening. @Override public Packet getDescriptionPacket(){ NBTTagCompound data = new NBTTagCompound(); writeToNBT(data); return new SPacketUpdateTileEntity(this.pos, 1, data); } @Override public void onDataPacket(NetworkManager net, SPacketUpdateTileEntity pkt){ readFromNBT(pkt.getNbtCompound()); worldObj.markBlockRangeForRenderUpdate(this.pos, this.pos); }
  2. Ok so I added 2 lines to print both the reading and writing and its printing both but not sure if its actually doing it. [00:27:16] [server thread/INFO]: [com.waffle.to.tileentity.TOTileEntity:writeToNBT:208]: WRITING NBT DATA [00:27:10] [server thread/INFO]: [com.waffle.to.tileentity.TOTileEntity:readFromNBT:185]: READING NBT DATA
  3. Ok thanks, going to try and figure it out but not really sure because this is my first tile entity not really sure how to call these
  4. My tileenetity is not saving its items. I can place items in the slots but once I leave and save the world and go back in the items are deleted. TileEntity: package com.waffle.to.tileentity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.text.ITextComponent; import java.util.ArrayList; public class TOTileEntity extends TileEntity implements IInventory{
  5. I want to make a recipe for a certain player like my self that I can craft a Dev item. like if playername = waffle then recipe is.....
  6. How can I give only me a Dev item. How can I call it so its only searching for my name and no one else unless specified.
  7. Is there any way to give my character a item when I'm in game? like if player .... then give item ....
  • Create New...

Important Information

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