Everything posted by Animefan8888
-
Custom GUI show when world is created [Solved]
Create a capability that simply stores a boolean of hasConnected or whatever and in the EntityJoinWorldEvent check that capability and if it is false then open a gui via EntityPlayer#openGui
-
[1.12.2]How to sync WorldSavedData
Depends on what you are saving, it might be more efficient to sync the data as primitives. IE ByteBuf#writeInt or ByteBuf#writeShort. You will need to have a packet either way.
-
Suggestion for a few small changes
It could, but why you can do a simple addition yourself. I meant why do you need the health prior to the last damage. I'm not sure I understand why you are going about doing this. What is causing a problem about the vanilla implementation.
-
Annotation not allowed here in @SidedProxy
Instead use an interface called IProxy, the idea of a CommonProxy is illogical. Your "CommonProxy" is your @Mod class.
-
[1.12.2] Custom status/potion-like effects not bound to any potions?
You just need to create and register a PotionEffect instance via the Registry Event Register<PotionEffect>
-
Game Crashes
1.7.10 isn't supported on this forum anymore, update if you wish to receive assistance.
-
Suggestion for a few small changes
This will not happen, this is to ensure that potion effects are not changeable client side, for obvious reasons(it can and will be exploited). It is protected because Mojang had no use for it to be public, aka it wasn't intended to be used outside of an Entity. What is it that you are getting this for? This will not happen as this requires too much editing for a feature that will not really be used for much.
-
Creating rotated block in Y-Axis
Read it try to understand it, ask specific questions to try to understand it.
-
1.12.2 Horse armor textures
I believe so, also the first string you pass in to the EnumHelper.addArmor will point to the name of the armor at "textures/entity/horse/armor/horse_armor_" + name
-
1.12.2 Horse armor textures
Well then you could simulate that if you wanted to, most likely, but you could also as an alternative.
-
1.12.2 Horse armor textures
Define animated if you mean like fire, return a different texture based on world time, if you dont you will have to manually render this in RenderLivingEvent.
-
minecraft 1.12.2 modded server issue
Try running it with only forge, also post your debug.log file. For the server and if you can get it the debug.log of one of your friends that time out.
-
Block hitbox made of several parts possible?
This isn't that hard actually. Just subscribe to DrawBlockHighlightEvent and render the lines of the bounding box you can look at how vanilla does it for an example.
-
1.12.2 Horse armor textures
public String getHorseArmorTexture(net.minecraft.entity.EntityLiving wearer, ItemStack stack) Which exists inside the Item class.
-
Creating and rendering a loot table everytime you kill a entity
You can use a capability to store the loot box and a timer and you will have to sync this to all players within a certain distance. And use the RenderPlayerEvent to render the box/plane.
-
[1.12.2] [SOLVED] GUI Renders only one color of texture
Gui#drawModalRectWithCustomSizedTexture
-
[SOLVED] [1.12.2] Restrict item to certain slots
This is not true, openContainer is always the container the player has open, it seems to default to inventoryContainer instead of null. Try stepping through your code in the debugging when you are replacing the slots and when you are trying to put the item in the slot.
-
Creating and rendering a loot table everytime you kill a entity
Define render, do you want it to be a gui, an overlay on to the HUD, or an entity that only renders for the person who killed it?
-
[SOLVED] [1.12.2] Restrict item to certain slots
Is it ever calling the super method, is that returning false?
-
[SOLVED] [1.12.2] Restrict item to certain slots
Minecraft.getMinecraft().player
-
[SOLVED] [1.12.2] Restrict item to certain slots
Try removing the stack.isEmpty || part. If this is the case also use GuiOpenEvent and interact with EntityPlayer#openContainer, but only if it is not inventory container.
-
[SOLVED] [1.12.2] Restrict item to certain slots
Doing what I said if you do it correctly will not cause incompatibility with other mods. Edit: Also. Either way you would have to determine if the container had the hotbar. In case of my way all you would have to do is subscribe to the ContainerEvent.Open (might have the name wrong) and apply the search and change the slots.
-
[1.12.2] How do I make a Potion? (Not Potion Effect)
Make your own class and override the methods that allow you to drink it and apply the potion effect.
-
[SOLVED] [1.12.2] Restrict item to certain slots
You could modify Container#inventorySlots to change the mainInventorySlots to your own slots. Do this in EntityJoinWorldEvent by using the EntityPlayer#inventoryContainer field.
-
EntityPlayer.inventory null? (1.12.2)
Sadly not true. It doesn't fire for the players own inventory gui, at least in survival mode. You will need to modify EntityPlayer#inventoryContainer directly. Do this obviously, reflection is pricey. Not true, at least for the ContainerPlayer. It just doesn't allow you to shift click into the slot, but you can do so out of it. However this is true do to other mods messing with this Container. There should be some form of forge implementation around this as a proper method of doing this. @SuperKael If you do wish to do this Use OnEntityJoinWorldEvent to modify EntityPlayer#inventoryContainer and GuiScreenEvent.BackgroundDrawnEvent to render more onto the Gui if it can happen before the original gui is rendered, and if it needs to be after use GuiScreenEvent.DrawScreenEvent.Pre/Post
IPS spam blocked by CleanTalk.