Everything posted by Animefan8888
-
[1.12.2] Item data + Gui screen slots without container
Expose your capability of choice either custom or one of the provided ones. Via Item#initCapabilities or AttachCapabilitiesEvent Update the client when the capabilities data changes via a custom packet. Do what ever you want with the data from the capability via an ItemStack instance. ItemStack#getCapability/ItemStack#hasCapability
-
[1.12.2] Item data + Gui screen slots without container
Well then what exactly is the problem you are having? Not being able to display the Capabilities data on the client? Is it there on the server? If so you just need to sync it with a packet.
-
[1.12.2] Item data + Gui screen slots without container
It is pretty simple if it is your own Item you wish to add capabilities to it. Override the method initCapabilities in your Item class and handle it exactly like you would a TE. And in your case it sounds like you could just use the IItemHandler capability you do not need to create your own.
-
Check if blocks is in MainHand and OffHand
ItemBlock extends from Item ItemStack is something that holds an item and all the various other information like stack size and metadata. ItemStack also has a method called getItem() which will return the item it is holding.
-
Help with TileEntity/Container communication?
Lol Dont do this use the IItenHandler capability instead.
-
How to create GUI with scroll view?
Yup. That is how all scroll wheels work. But you will also want to stop drawing objects at a certain point so they dont go off of your gui.
-
Crash When I open GUI
Don't implement ITileEntityProvider instead override hasTileEntity(IBlockState) and createTileEntity(World, IBlockState). Post your TileEntity.
-
[Solved][1.12.2]How to get a model for a block
He switched over to not using PropertyDirection and instead using BlockHorizontal.FACING instead. So this isn't the problem.
-
[Solved][1.12.2]How to get a model for a block
Minecraft declared a lot of Block metadata and state methods deprecated and some IDEs yell at you about using deprecated methods so you suppress the warning so you can't see the notification. @_Cruelar_ I am not sure what is causing your problem to be honest have you tried refreshing your workspace and restarting your IDE?
-
[Solved][1.12.2]How to get a model for a block
Post the newest log, and remove everything else that is also causing a texture/model error.
-
[ 1.12.2 ] Where are the chest models??
I don't quite understand what you are saying.
-
[Solved][1.12.2]How to get a model for a block
EnumFacing#getHorizontalIndex() and EnumFacing.HORIZONTALS
-
[ 1.12.2 ] Where are the chest models??
It depends, do you want the top to be animated?
-
Unable to set item in main hand when item breaks
@Override public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer player, EnumHand handIn) { ItemStack stack = player.getHeldItemMainhand(); damageTrinketInHand(stack, player); if (stack.isEmpty()) { stack = new ItemStack(ModItems.BROKEN_TRINKET); } return new ActionResult<>(EnumActionResult.SUCCESS, stack); } private void damageTrinketInHand(ItemStack stack, EntityLivingBase entityLiving) { stack.damageItem(1, entityLiving); }
-
[Solved][1.12.2]How to get a model for a block
@_Cruelar_ The problem is with your getMetaFromState and getStateFromMeta. You need to change these to only use the horizontal values.
-
[ 1.12.2 ] Where are the chest models??
The Chest is rendered in a TESR, which is called TileEntityChestRenderer.
-
[Solved][1.12.2]How to get a model for a block
Post the error instead of adding extra unused variants.
-
[ 1.12.2 ] Where are the chest models??
The Chest is rendered in a TESR not a normal block model.
-
[Solved][1.12.2]How to get a model for a block
This also has a UP and DOWN variant. Also post a picture of your file paths for your textures.
-
[Solved][1.12.2]How to get a model for a block
Post your blockstate json and your updated block code.
-
Features of ore generation in 1.12.2
You will have to make your own version of WorldGenMinable(not necessarily a subclass) that looks for lava pools and then generates your block.
-
Unable to set item in main hand when item breaks
Try setting stack to the new stack instead of setting it via EntityLivingBase#setHeldItem.
-
[Solved][1.12.2]How to get a model for a block
It isn't that it isn't possible, its that it is a bad idea. A TESRs code is called every frame it is rendered and sent to the GPU every frame as well. While a normal model is hatched together with the rest of them and sent to the GPU. Greatly reducing the burden on the machine. Well it is obviously made of cubes since you are using ModelBase. Why not just use a json format for your model. There are plenty of programs to do this and it isn't hard to do yourself. I personally use cubik studios. Blender is an obj model creator if you can use it. And there is obviously Google for this question.
-
How make custom furnace?
TileEntity.register(modis + ":" + name. TileEntityClass)
-
How make custom furnace?
You need to register your TileEntity with TileEntity.register
IPS spam blocked by CleanTalk.