-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
It returns a RayTraceResult. A Ray Trace is when you create a vector from one point to another and see what it collides with. The RayTraceResult tells you what it collides with. Don't call the method look at it's code to see how a ray trace is done in Minecraft.
-
Don't do this. Do World#destroyBlock. Take a look at Entity#func_213324_a it shows you how to ray trace. Then you just check the RayTraceResult to see if the type is BLOCK and if it is then cast to BlockRayTraceResult. Once it is casted use the "face" field to know the direction the block is being hit from. You can then use that to break the correct blocks.
-
That has to do with the scoreboard which is stored in the World. On the client you would access it via Minecraft#world.getScoreboard(). There isn't a specific event for when it is changed so you'll just have to check every tick. I would use ClientTickEvent but make sure the World isn't null
-
When must I set block state in world(call setBlockState).
Animefan8888 replied to AntonBespoiasov's topic in Modder Support
They might exist because there are two BlockStates for a bed. The pillow part of the bed and foot part of the bed. However, I don't know because you are looking at rather old code. -
Not to us. I don't have the power to lock threads and I don't have the power to stop the people that do have the power to lock it. They will lock it. I don't remember much about 1.8.9 in enough substance to help you.
-
[1.14.4] Making a Trident like item
Animefan8888 replied to MineModder2000's topic in Modder Support
The method is called getTagCompound the error was probably something along the lines ItemStack has no method getTag. -
[1.14.4] Making a Trident like item
Animefan8888 replied to MineModder2000's topic in Modder Support
if itemstack.getTag() == null setTag... -
What Minecraft version are you using?
-
I can follow both of their instructions. It's just that I think diesieben was using "Potion" because of 1.14.4 when you are using 1.12.2 If you mean create a Potion Item that uses your Potion instance. It should be automatic after you've registered your PotionType. Brewing them in another question.
-
What you have is fine, however you need to override createSpawnPacket in your Entity class and give it your own IPacket that spawns the entity in the handle method and basically does what SSpawnObjectPacket does. But for your Entities/Entity.
-
Post all of the related code.
-
Your Items must not be getting registered. Check to make sure your mod is being loaded and events are being fired.
-
When must I set block state in world(call setBlockState).
Animefan8888 replied to AntonBespoiasov's topic in Modder Support
Post your code. And explain what you are trying to do. -
ItemHandler - Allow player extract/insert
Animefan8888 replied to holst666's topic in Modder Support
Then where are you storing the Items? -
Help with porting BlockPhysics mod from 1.6.2 to 1.12.
Animefan8888 replied to st4s1k's topic in Modder Support
Please don't necro old threads. You could have DMed him. -
No he should use the RenderLivingEvent for this. Use Minecraft#getRenderManager() and EntityRenderManager#renderEntity.
-
Ok use the RenderTickEvent to render the entities. Use Minecraft#getRenderManager() then call EntityRenderManager#renderEntity
-
Block Textures not loading in inventory
Animefan8888 replied to OrangeySnicket's topic in Modder Support
Blocks also need to have an item model in assets/modid/models/item They can simply just parent their block model. Take a look at the vanilla block item models to get a better understanding if you need to. -
ItemHandler - Allow player extract/insert
Animefan8888 replied to holst666's topic in Modder Support
Store a NonNullList in your TE give that NonNullList to two IItemHandler instances. One that let's you interact with 0-4 and one that doesnt. Use the one that doesnt in getCapability and allow the one that does allow use in the Container with your own get method. -
[SOLVED] Mana game mechanic in 1.14.4 help
Animefan8888 replied to cinsiian's topic in Modder Support
I think Gui#blit expects the texture to be 256x256 -
Read the javadoc above the class.
-
[1.14.4] Making a Trident like item
Animefan8888 replied to MineModder2000's topic in Modder Support
For the love of christ. Why are you storing this field in your Item class? This isnt possible Items are singletons. They only exist once. You need to use the ItemStack's NBT data. Look at the ItemStack class for the method names to get and set the NBT. Should be something like getTag or getTagCompound and for set just replace get with set.