Everything posted by Draco18s
-
Getting activ potion from particle or other.
You're still converting from an EntityLiving to a UUID and back.
-
Getting activ potion from particle or other.
So you get the entity (yay! you have the entity!) then get it's unique ID, so you can pass that to getEntityFromUuid , and get the entity. Wha?
-
[1.11] Custom Particle
Try looking at how vanilla blocks do it. Mind, it'll be a few calls down the method chain hierarchy, but it should at least be similar to what modders need to do.
-
Weird Visual Bugs with model
Possibility: Your model's vertices aren't quite lined up with each other, so the front face and the side face are ever so slightly offset in one direction from each other (ie. their edges are not congruent) so floating point math makes you see between them sometimes.
-
[Solved]Custom Recipes with meta
You mean about 32,000? Feed The Beast runs up against that limit all the time.
-
Getting activ potion from particle or other.
No.
-
[1.11.2 Solved] GuiButton over an other GuiButton + question aboute Note Blocks
I would make a custom button class for the large keys (1,3,5,7 in your image) that only check the lower portion of their bounds for mouse-inside. You wouldn't be able to click inside the narrow bits between the black keys, but it would prevent the double-press.
-
[1.11]Getting active potion from entity
You've hit the age old question of "how do I send data from one computer to another?" Packets.
-
[1.10.2] Make player not eat
This @SubscribeEvent public void InteractItem( PlayerInteractEvent.RightClickItem event) { if (ConfigHandler.noEating) event.setCanceled(true); } In no way knows if the player's died recently. All it does is say "is the config option to disable eating after death enabled? yes? ok, no eating." public EnumAction getItemUseAction(ItemStack stack) { return EnumAction.EAT; } And this doesn't go there. This is an ItemStack method you've thrown into your event handler because....why?
-
[1.11] Small item render glitch
Check to make sure that the pixel adjacent to that one in your texture is actually 100% transparent.
-
[1.11.2] [SOLVED] Textures problem
No, it just treats them as identical. To change x.JSON to x.json you first have to change it to x.notjson so that it thinks that it actually changed.
-
[1.11] Trouble creating TileEntity with inventory.
Yes. That said, these: ItemStack.stackSize and ItemStack.loadItemStackFromNBT() Got tweaked a bit. StackSize is now modified through getter and setter methods and loadItemStackFromNBT was renamed.
-
[1.11] Gui crashes if I click outside of Gui with NullPointerException
Looks like a crash in pure vanilla code. I don't see anything in your code that could do that either. Could be a vanilla or Forge bug.
-
[1.11.2 - Solved] rayTrace never returns an Entity
It does, but that doesn't mean that method that returns a RayTraceResult checks against entities (or vice versa).
-
Renamed: Figured out most of villagers, need help ironing out bugs
- [1.8] Can't launch my mod
While that may be, you're still not going to get help here, as help here is offered for Forge, not Bukkit, not raw MCP, and not coremodding.- [1.8] Can't launch my mod
Then why are you here? These are the Forge forums, not the MCP forums.- Forge mods do not generate whenever I use Multiverse-Core
What?- How to run minecraft from Eclipse?
You have to import it.- [1.11] How figure out if an entity is entity part?
Maybe you should check for instanceof before casting.- [1.11] Disabling enchantments
reverse your if statement. All you're doing is asking if the book has Mending, Unbreaking, or Fortune, and allowing the whole book to go through. You need to ask if it contains an enchantment that is not one of those.- need help w/ textures block and item
try new ModelResourceLocation(item.getRegistryName, lookup.variantnames()); although you may have to reconfigure your json files.- [1.11] Disabling enchantments
This took me oh so long to find. /** * Allow or forbid the specific book/item combination as an anvil enchant * * @param stack The item * @param book The book * @return if the enchantment is allowed */ public boolean isBookEnchantable(ItemStack stack, ItemStack book) { return true; } By which I mean I opened up the Item class and searched for "Enchantment" and it was the first result.- Renamed: Figured out most of villagers, need help ironing out bugs
Storing the information and syncing with the client. getEntityData() is not a good use for what you are doing.- need help w/ textures block and item
new ModelResourceLocation(Reference.RESOURCE.RESOURCE_PREFIX + name + lookup.variantnames()[i], "inventory"); You know... items have a getRegistryName() method... new ModelResourceLocation(item.getRegistryName + lookup.variantnames()[i], "inventory"); - [1.8] Can't launch my mod
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.