Skip to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. event.getToolTip() is correct. The list returned is a reference, so adding to the list will work.
  2. That is not a motion problem. That is a entity tracking frequency problem. Show where you register your entity.
  3. motionX*motionX+motionY*motionY = 0.25 is a circle: http://www.wolframalpha.com/input/?i=x*x+%2B+y*y+%3D+0.25 That is, there are infinitely many values of motionX and motionY that satisfy that equation. Sure, it tells you that the speed that the entity is taking, but that's not useful here.
  4. That makes no sense. This does not help you. This is correct. Rotation is an angle, motion is a direction.
  5. @diesieben07 Sounds like another one for the common issues thread. We've had this one about three times in the last week.
  6. There is no "download" and "upload" here. JSON models are just resource assets (same as textures). You put them in the appropriate folders. For blocks, the blockstate is loaded automatically, for items you need to call ModelLoader.setCustomModelResourceLocation.
  7. Jesus Christ. ONE thread? :V The problem is, the 36 messages I didn't delete I want to keep forever. It's unlikely I'll ever actually need the information in it again (as it deals with ASM) but its such good information on the subject I don't want to lose it.
  8. Minecraft.getMinecraft().gameSettings.keyBindSneak.getDisplayName()
  9. If you're on the client you can always get access to the client player: Minecraft.getMinecraft().getPlayer()
  10. isRemote is the difference between the logical client and the logical server. Even single player there is still a server thread (the Integrated Server) with 1 player connected. PlayerLoggedIn only fires on the logical server.
  11. It doesn't show, it is. Motion is used to modify position.
  12. Position is position. Motion is velocity, the first derivative of position.
  13. Forge is on Github. https://github.com/MinecraftForge/MinecraftForge I believe the patching is done by ForgeGradle, though: https://github.com/MinecraftForge/ForgeGradle
  14. Not everything Bukkit does has a Forge equivalent and vice versa. You can add other tags and write your code to handle interpreting what they do, but each one will need separate code and possible their own event hooks. That is: making a critical damage stat and applying it to weapons and hooking into the right events, sure, its doable. It's just not two lines of code.
  15. A resource location is how Minecraft locates resources in the /assets directory. They are also used as the primary key in the registry to uniquely identify various objects (Blocks and Items have registry names which are used as the default Resource Location in order to load the corresponding models). Why entities use it like that, I don't know.
  16. Show your render registration code in your client proxy.
  17. That describes about 70% of the people who post here for the first time. You can see this thread if you really want to cringe over how bad it is sometimes. It isn't done that way any more due to the restrictions of the Minecraft EULA which states that no Vanilla code may be distributed. By modifying a vanilla class to insert a patch, then distributing the altered class file, falls under this restriction. Because of this, no one here will help you (learn how to) do that.
  18. Lore doesn't actually make the item any different. It's just text displayed in a tooltip. You can modify the text displayed by subscribing to the ItemTooltipEvent, but adding "Crit chance: 5%" won't actually make the item have a 5% crit chance. For actual effects, some of them can be handled via AttributeModifiers which can be applied via NBT tags on item stacks. But this is a very limited set of effects (namely, attack damage and attack speed).
  19. Are you... Adding lore to your own item? Or... Adding lore to a vanilla item? How you do this depends on the answer.
  20. Forge itself is built on Magic. Installation is a package that contains patch files (these are essentially text documents that tell the program how to identify parts of the original code and then what to change). This is done after deobfuscating the original source into something more functional (also called SRG names). How this is done, I don't actually know, but this is how Forge can distribute the changes it makes to vanilla code without requiring the user to do anything other than "download and run this program" and without distributing any of Mojang's code. SRG -> MCP is done at runtime. Runtime stuff is largely based around Class Loaders which are a kind of class that tells the JVM how to load other classes. If you are not familiar with any of these concepts, stop now. Mostly because folks here aren't going to teach you these things, one because its not our job, and two, because these kinds of things are dangerous.
  21. By not doing it. Seriously, you asked on the Forge forums how to mod without using Forge?
  22. @diesieben07 I went to send you a message to add an item to the "common problems list" (trying to reference Items in block constructors) and I was unable to send a new message because my "inbox is full, delete some messages then try again." I have reduced my PM count from over 180 down to 36 and I still cannot send messages. I attempted to contact Invsion Power Services about this problem, but apparently only the forum owner (the person who actually paid to use this software) can submit bug reports (what a load of crock). I assume that is Lex, but I have no idea, and can't ask him because my inbox is full.
  23. Yes, I had. If I misread something as well, I apologize.
  24. No, no I did not. This thread was about textures for the different slots, I said "I don't think I can do that" you said "I found a way." I asked how and you said "see, extends ItemArrow."

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.