Everything posted by Animefan8888
-
Making a set of Armor give an effect
Wherever you want to put it...
-
Making a set of Armor give an effect
Go back and look at Choonsters test mod and read this again.
-
Making a set of Armor give an effect
Do you know java?
-
Making a set of Armor give an effect
In the same method that adds the potion effect.
-
Making a set of Armor give an effect
What I said will work in 1.12.2.
-
Animated Block not animating
I've made some progress, I guess. I got the problem hopefully narrowed down to my armatures file and the model file, but I don't see the problem with them. I have tested this by taking the forgedebugmodelanimation test files and using them along with my own code. I just can't seem to get my armatures file to work with everything or my model files.
-
I can't register items
Oh, I didn't know that it could be used like that. Very interesting. No, that is not how this forum works. Make your registerItems method a static method and then it should work. Also, you shouldn't initialize IForgeRegistryEntry instances in a static initializer.
-
I can't register items
This is not how you use this annotation. This needs to be a static method due to this
-
Minecraft forge 1.12.2 libraries will not download
Try reinstalling/updating java.
-
Minecraft forge 1.12.2 libraries will not download
Do you have Java installed?
-
Making a set of Armor give an effect
Check if the entity has the whole armor set equipped by comparing the items in the equipment slots. EntityLivingBase#getItemStackFromSlot(EntityEquipmentSlot)
-
Packaging up my mod (ANSWERED)
Forge will send emails to you about replies if you tell it to. Calling the command gradlew build will compile your mod for you.
-
Checking for potion effects on mobs
Oops, my bad, that is only used for flying mobs it turns out. Specifically used for flying. It turns out you might have to subscribe to PlayerEvent.StartTracking and "tag" the entity and "untag" the entity in PlayerEvent.StopTracking. And then in a tick event check if they have the potion effect and send the packet and mark that so you don't continuously send the packet. And then check if they don't have the effect and send another packet letting the client know. Honestly, you might even want to skip the Tracking section because it might work better.
-
Checking for potion effects on mobs
Are you specifically targeting the levitation potion effect? If so you could just retrieve it with Entity#hasNoGravity()
-
Checking for potion effects on mobs
Please post the actual code you have. And I believe your issue is that other entities never sync their PotionEffects to the client.
-
Changing the exhaustion level gained from doing actions
Diesieben beat me to it.
-
Animated Block not animating
I understand; it's sad that fry moved on to Mojang before properly documenting this system because I feel that it is secretly great. When I find the solution I will be sure to post here and hopefully provide some type of tutorial/guide/documentation of some sort that is more easily followed than the current stuff.
-
[1.12.2] Give Player an Item
ItemStack#itemDamage is truncated to a short value aka the max is 32767(thank you Draco18s). ItemStacks are considered empty if their itemDamage is greater than 65535 or less than -32767.
-
Changing the exhaustion level gained from doing actions
Create a new class that extends FoodStats and have the constructor take an instance of FoodStats from EntityPlayer in the event Diesieben mentioned.
-
Animated Block not animating
If you looked at the code it was ModItems.MATERIALS with meta 4, aka Shadow Shards. But it requires 4 of them to function. I have looked at the forge test of it, but I will try to look it over again and hopefully find something. I understand why it would be a problem and have already said I would fix it upon getting back to my workstation.
-
Automatic buildings
A standard that was used was schematic files, used in the Schematica mod. Which is open source on github.
-
Animated Block not animating
What does this have to do with anything? And I was just looking at this yesterday and going to make the change the next time I sat down and worked on this mod. Thank you.
-
[1.12] Armour problem (I think)
You can copy and paste code. And debug it if it doesnt work. But you should start from ground zero and write it all again.
-
Animated Block not animating
This is a fair, and good point. I will change. This is true as pointed out above by Aeronica, and was changed on the git hub code. When I originally wrote it I wasn't thinking about inter-mod compatibility with other TE Capabilities.
-
Animated Block not animating
Yes , I know this I even said that to you. I have taken care while looking at Vazkii's code, though I might have missed something. Here is the link to the github repo. if you notice anything else that is not related to this issue that may be problematic feel free to let me know.
IPS spam blocked by CleanTalk.