-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
Though, you should know what a constructor is and what classes are if you have some experience in C++. Also static initializer is when you initialize something when you declare it and it is static, or when you declare static {// Code}.
-
Do you know Java?
-
Don't initialize your blocks in a static initializer. .setHardness(Float)
-
In your blocks class constructor, or when you create your block instance.
-
Block#setHardness
-
It has a forge registry event.
-
Rendering code not running (Render box problem?)
Animefan8888 replied to MrJake's topic in Modder Support
This is true, but you should know about the offset for when you switch back to your own AABB. You should try stepping through your code with a debugger at your getRenderBoundingBox. -
Rendering code not running (Render box problem?)
Animefan8888 replied to MrJake's topic in Modder Support
You need to offset your bounding box to the coordinates of your te. You can see this in the super of getRenderBoundingBox -
How are you compiling your code? Just in case read this general issues #1.
-
It would be easier if you posted the whole error, but I believe this is an issue with sidedness.
-
LivingJumpEvent issues: Firing twice, not finding capability/NBT
Animefan8888 replied to Alekseyev's topic in Modder Support
You need to do a isRemote check, because the event is ran on both the client and server. -
PlayerEvent.Clone should be there I have forge version 1.12.2-14.23.4.2732 and it is still there. It is even on the forge github, so it hasn't been removed. It sounds like there is a problem with your workspace.
-
EntityPlayer.getName() returning null [1.12.2]
Animefan8888 replied to naturaGodhead's topic in Modder Support
You can keep the one with the EntityPlayer parameter, but there needs to be a constructor with no arguments. This is because when the world is loaded and the TE needs to be placed it doesn't have the EntityPlayer that placed it, or anything else. -
EntityPlayer.getName() returning null [1.12.2]
Animefan8888 replied to naturaGodhead's topic in Modder Support
Problematic code #11 Also you shouldn't be calling writeToNBT in your update method. -
[1.12.2] Persisting Player Capability Inventory Data
Animefan8888 replied to ChampionAsh5357's topic in Modder Support
Then it is pretty obvious what you have to do if this is an actual problem. Sync it when the player joins the world with a custom packet. -
Paste your json into this website. It will check if your json is valid.
-
This isn't completely true. The server may have less mods than the client, the only requirement is that the client has all the mods the server does.
-
You need to install chameleon
-
Is there a change in the crash? Also why aren't all of the mods in your .minecraft mods folder in your server's mods folder?
-
[1.12.2] Persisting Player Capability Inventory Data
Animefan8888 replied to ChampionAsh5357's topic in Modder Support
No, you cannot attach an CapabilityItemHandler.ITEM_HANDLER_CAPABILITY to the player as there is already one, but you can make your own capability that uses IItemHandler as its data(I believe. someone will correct me if I am wrong). And then attach this capability in AttachCapabilityEvent<Entity> to the player. Then reference it by EntityPlayer#getCapability