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


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About tt36999

  • Rank
    Tree Puncher
  1. I have confused between attribute and capability Should i add new custom attribute to vanilla entity? If i want add a custom attribute(e.g. add Mental state as a second Health Bar) to LivingEntity, whitch should i use? I want vanilla Effect system work with my custom attribute sorry for my english 😆
  2. My tileentity have two fluid tank and i want fill one of tanks when right click this block with fluid bucket. But when i test my tileentity, the sever side(when world.isRemote == flase)tank always null when block actived, client side working properly @Override public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { ItemStack itemHeld = playerIn.getHeldItem(hand); IFluidHandlerItem handlerItem = FluidUtil.getFluidHandler(itemHeld); if (handl
  3. OK,I don't want debate this with you, maybe you are right or maybe my, i will try your proposal and remove the common, i hope this can fix my issue.
  4. I don't think is no sense, in my mod most situation client need more code than server, and server proxy even hasn't any code then common. so i just make common to do what serverproxy do, and client extened it , so i can override it. for example if someone write code in proxy to getServerGuiElement and getClientGuiElement(i won't do that , just for example) in common it can return a container for server , and in clientproxy it can use common get container and return gui element. client proxy will become an extension of common, and sometime will different from common
  5. OK,I just don't like write all my code in main file , ClientProxy was extends from CommonProxy, I has a ServerProxy too, if one side need different code , i just override it from CommonProxy I removed it, and do this in client
  6. I have seen this error when using wrong Optifine version maybe you can try to use other version optifine or just delete it
  7. I'm working for my mod,and when i want to make a gui to my block i got this problem. When i right my block , onBlockActived method was run without any error.but my gui handler never called this is main file @Mod.Instance public static BrewingCraft instance; @Mod.EventHandler public void init(FMLInitializationEvent event) { proxy.onInit(event); } this is commonproxy(some potion,player event code in this file,i think it's no need to show them) @Override public void onInit(FMLInitializationEvent event) { NetworkRegistry.INSTANCE.registe
  8. I want create a item with gui, this gui will show inventory in this item. I use public ICapabilityProvider initCapabilities(ItemStack stack, @Nullable NBTTagCompound nbt) { return new ItemInventoryProvider(limit); } this to init capalities to my item, the "ItemInventoryProvider" Instantiation a ItemStackHandler in it's construct public class ItemInventoryProvider implements ICapabilitySerializable<NBTTagCompound> { public final ItemStackHandler inventory; public ItemInventoryProvider(int size) { inventory = new ItemStackHandler(size); }
  9. I have some problem whit item nbt. I created a item with some nbt data, but when i add tooltip and durability bar to the item , the tooltip and durability bar didn't update at all @Override public double getDurabilityForDisplay(ItemStack stack) { return (getDurable(stack) / getMaxDurable(stack)); } @Override public boolean showDurabilityBar(ItemStack stack) { return true; } @Override public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> tooltip, ITooltipFlag flagIn) { tooltip.add(I18n.format("tooltip.test") + ": " + getDurable(stack)); }
  10. Hello guys, I'm a beginer for minecraft modding,when i try to make some item ,i got this question. I want my item has two different "durable" (eg. One is the real durable , another show how many fluids this item contained, and when item contatined lava, this item will gradually melt down) what show i do for this item? Is there any way to draw two durable bar in one item? Or i should show fluid amount in item tooltip? I'm working for mc 1.12 forge 2705 thanks everyone whatevery you can help me or not
  • Create New...

Important Information

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