Everything posted by AskHow1248
-
How to make a block that mobs of a certain type can't walk over?
Like I said, I only need my entity to path around the block since only my entity will be impeded. Thanks jabelar, I will look into that. Does anyone know of a tutorial about how the pathing code works, or will I have to figure it out for myself?
-
How to make a block that mobs of a certain type can't walk over?
How can I do that?
-
How to display tooltips in inventory
There is a method in the GUI class to draw an Icon. I just need to convert a ResourceLocation (the location of the image) into an Icon (the image). I could use an placeholder Item to register the icons in registerICons() (and then store them for latter use), but it seems that there should be a better way.
-
How to display tooltips in inventory
I know how to draw an Icon, but I need to get one from a ResourceLocation.
-
How to display tooltips in inventory
Also, how do you draw an icon from a ResourceLocation in you gui.
-
Entity Movement problems (moving a entity to certain cords by adding velocity)
That won't work, but I am doing something similar. I am approximating the equations with simple linear equations. When I use it though, it put noClip on.
-
How to display tooltips in inventory
I want a object in my gui (not an item) that will display a tooltip when hovered over. I also want you to be able to click and drag those objects. I am trying to make a gui like Ars Magica 2's Inscription table.
-
Entity Movement problems (moving a entity to certain cords by adding velocity)
Hi, I'm trying to make an item where when you right click on something (block or entity), it makes you jump to it. I have all the code to get the difference in cords from the target to the player, but I need to know how much velocity to add to the player to get them to land at those cords. It would also help if I could find the code that moves the entity (like gravity). Edit: Preferably, the launch angle would be 45 degrees. Edit 2: I could solve this with the Equations of Gravity if I new the units of an entity's motion and how minecraft's gravity works.
-
How to make a block that mobs of a certain type can't walk over?
I won't need to, since only my mob will need to path around it. I don't know anything about to to write Pathing code though.
-
How to make a block that mobs of a certain type can't walk over?
Never mind, I only need my mob to go around it. Where can I find the minecraft Pathing code? Also, does anyone no any tutorials for it?
-
How to display tooltips in inventory
I'm trying to get certain parts of my custom inventory to display a tooltip when I hover over them with the mouse. I want to be able to display the name, and then some info, just like if you hover over an item. I have no idea how to do this, so any help will be appreciated.
-
Wanting to make any non-flagged items not do anything on rightclick in dimension
Hi everybody, I'm making a new dimension, but I want only certain tools/items to work there. I was thinking I could just cancel any onRightClick or onLeftClick events if the player is in my dimension unless the item used is one of mine, but those events don't seem to exist. Any ideas will be greatly appreciated.
-
Problems adding new functional slots to custom furnace
watch this, it might help:
-
How to make a block that mobs of a certain type can't walk over?
Thanks guys, but if I want mobs to path around my block, how do I add that behavior to all the mobs, not just new ones I create?
-
How to make a block that mobs of a certain type can't walk over?
all I need is a bigger bounding box, no pathing or potion effects. I want it like thaumcraft's warding stones, but only blocking certain mobs.
-
How to tell when a piece of armor is unequipped?
but then if you have another method of flying, it will disable that. At least I think so.
-
How to tell when a piece of armor is unequipped?
that only gets called when you are wearing the armor
-
How to tell when a piece of armor is unequipped?
Hi everybody, I'm making a piece of armor that allows flight, but when someone wares it, and the takes it off, they can still fly. I am allowing flight by player.cappabilities.allowFlying = true, since I don't know any other way. I can disallow flight is there is a method that gets called when someone takes the armor off, but I don't know of any such method. Thanks in advance.
-
How to make a block that mobs of a certain type can't walk over?
I'm been trying to make a block that mobs of a certain type can't walk over, and I've tried using addCollisionBoxesToList() to add the collision box if the entity parameter should be blocked, but then, no matter what my bounds are, the wall only extends 2 blocks high. I also tried setBlockBoundsBasedOnState(), but then it blocks everything.
-
How to add data to a world
Do I need to do anything to register it?
-
How to add data to a world
Hi. I'm trying to add some additional data to the minecraft world, but I have no idea how. I looked for a class like IEntityExtendedProperties, but I couldn't find any. Any help will be appreciated. P.S. if it helps, i'm trying to make a wireless system
-
Inventory progress bar not working
I figured it out. In the updateEntity() for my tile entity, I had a if(!worldObj.isRemote) statement, which meant it didn't get updated on the client side. Thank you everybody how helped.
-
Inventory progress bar not working
Ok. I will work on it. I can give you my complete source code if you tell me how.
-
Inventory progress bar not working
Sorry, stupid mistake. It still doesn't work though (I cast both to double).
-
Inventory progress bar not working
Better? Container: TileEntity: Also, if I put print statements in the method, they print the correct value, but if I put the same statements in the gui, but using the return value of the method, they print 0 (wrong), even though the method prints (and returns) the correct value.
IPS spam blocked by CleanTalk.