Jump 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.

muetakappaepsilon

Members
  • Joined

  • Last visited

  1. I have written a few simple mods for minecraft 1.7.10, but a lot has changed since then. I am under the impression that I have created the model class, the render class, and the entity class correctly, but I cannot figure out how to assign the renderer to the entity. In 1.7.10, this was a single line of code, but in 1.10, the factory method seems to be the standard. I have seen the following pattern several times: RenderingRegistry.registerEntityRenderingHandler(MyEntity.class, MyRenderer::new) However, according to the documentation within forge, this method is deprecated, and I am not sure how to render entities so that in future releases of forge my mod will be up to date.
  2. When you say store references to entities like that you are referring to the static list i am using in the EntityCommoner class?
  3. I have been working on a mod that includes an entity (EntityCommoner) that responds to custom user commands. To get started, I tried to get the commoner to go to the player's position at the time the "$come" command is issued. The AI task should change state to active when this happens. Sometimes it works fine and the entity moves to the correct location. However, the task state sometimes alternates every tick between active and inactive and the entity does not move or respond, and I have no clue as to why. In the output below, should ex should either be false or true for a while, not alternating on every tick. The target coordinates alter between what they should be (the player's coordinates when the command is issued) and what they were previously, if that helps anyone. Below is the relevant code and console output from a print staement in the entity's onUpdate function. Command Handler EntityCommoner EntityAIGoToPosition some console output

Important Information

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

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.