Everything posted by Asweez
-
Metadata Blocks
Do you know a tutorial for that?
-
Metadata Blocks
Ok so I have a metadata block that works fine. But whenever I take the block out of the creative inventory and place it down, it just puts the block with metadata 0 there. But if I use setback, it works fine? What am I doing wrong? Block with metadata Registry:
-
Rendering Walls
So how do I use that? I know how to do the name part but what do I put in the itemstack param? Just new ItemStack etc. or is there some variable to put in?
-
Rendering Walls
Ok so I have some walls that I want to be subblocks of the first wood wall. I've got everything worked out except for when you put any wall down(diamond, iron, gold, etc) it always reverts back to the original (wood) wall. The rendering is correct, however, because when I middle click it into my inventory in creative, it shows me that the block is just the original wood wall. This wood wall is metadata 0, while everything else is a subblock of that one. Wall Code: I think it may have to do with the registry. EDIT: I can see that the GameRegistry only registers one name, and that means only one block. How do I make it register the blocks with individual names based on metadata?
-
Client Chat Viewing
Ok so i want to use my PlayerExtendedProperties to edit how that player's client views chat. How would I get those extended properties?
-
Client Chat Viewing
Yes, I just couldn't find that one. Thanks!
-
Client Chat Viewing
Hi, I want to edit how a player sees the chat from other players. Is there any way I can do that?
-
[1.7.2] How can I make a Item that only does stuff when wearing certain Armor?
In the Item right click method, you must use the player variable to check for the armor in a certain slot (player.getCurrentArmor I think? Not sure). If the player DOES have the armor on, then you spawn the entity. I think, like what Jacky said, 0 is helmet and 3 is boots.
-
Vec3
I want to know some cool things I could do with the players look vec.
-
Vec3
Hi so I was looking around and I saw the player had a method called getLookVec, which returns Vec3. What is a Vec3 and how do I use it?
-
Scattershot projectiles
So I was wondering what I would use to make a scattershot gun, like a shotgun. Would I use set throwable heading and add some random values?
-
Using NBT in a KeyHandler
How would the packet modify the nbt of the item though?
-
Using NBT in a KeyHandler
I have a key handler that I want to change nbt tags of the item in the player's hand whenever I press the key. How would I do so?
- Projectile Rendering Problem
-
Projectile Rendering Problem
Ok so I have a problem. The EntityArrow doesn't use getGravityVelocity or on impact, both of which I need. It also makes you stick in the ground and you pick it up. But i think I can fix those last two.
-
Projectile Rendering Problem
Ok I'll try that
-
Projectile Rendering Problem
I think it has to do with the client and the server not in sync
-
Projectile Rendering Problem
Ok so I have my projectile that has no gravity. When I shoot it with 6.0f velocity, it renders way to the side of where the actual entity is. The actual entity still works, however, because it hurts mobs that I shoot it at, even though the render is way off. How do I fix/prevent this?
-
Health Boost Not Regenning
Ok you were right. Here's my solution if(!player.isPotionActive(Potion.(health boost field, can't remember))){ (Add potion effect) (Add regen to make up for the lost hearts) } That way the effect is applied once and waits until the player doesn't have it again, then applies it again.
- Health Boost Not Regenning
-
Health Boost Not Regenning
In PlayerTickEvent
-
Health Boost Not Regenning
What do you mean? That's the only line that I use for the Health Boost
-
Health Boost Not Regenning
player.addPotionEffect(new PotionEffect(Potion.field_76434_w.id, 175, 2, true));
-
Health Boost Not Regenning
Does anyone know?
-
Health Boost Not Regenning
I put a health boost potion effect on the player but the extra hearts won't regen, they just stay empty. Why is this happening and how do i fix it?
IPS spam blocked by CleanTalk.