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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Yes, that part. Stop doing that.
  2. ResourceLocation key = new ResourceLocation("cooking_meal"); This does not look like it is specifying a domain, which defaults to "minecraft" and throws the "dangerous alternative prefix" error.
  3. Draco18s replied to Ghten's topic in Modder Support
    You have to cancel the harvest event.
  4. Draco18s replied to Ghten's topic in Modder Support
    What version of Minecraft are you working with?
  5. You can do this just fine. All you will have to do is tell your IDE the new location of your project.
  6. Does the function return a hardcoded value or does it reference a field? If it references a field you can use reflection to modify it. If not, you'll have to make your own Minecart entity class. Keep in mind however, that any subclasses of EntityMinecart that already exist will not see your adjustment.
  7. The whole point of the proxy system is so that each side only ever calls code that applies to that side. Its not the "common proxy" that's the problem, but the reference to the client and server proxies directly that's the problem.
  8. While that may be true, you should never, ever need these: https://github.com/Oeku/RPG-Mod/blob/master/java/net/zeldadungeons/ZeldaDungeons.java#L42-L43
  9. You CAN use nbt data, but my point is, the item needs to have a custom mesh definition registered to use the nbt data to determine its model. It is not a generic thing you can do to any item.
  10. TiC items are based on NBT data. You can't change the output's texture/model with a recipe, not unless that model definition already exists and you're modifying the data that describes the item (e.g. you add 1 to the metadata on a wool block to make it cycle colors).
  11. The difference is that one has access to more information. For example, Choonster uses getCraftingResult to determine part of his iron->gold helmet recipe. Keep in mind you can always extend an existing recipe class as well and override only what you need to. The two things you need to be aware of are: 1) You need a factory that can deserialize the JSON objects into a IRecipe object. This is fairly easy, anything you'd ever want to parse can already be done with a helper object (JsonUtils and CraftingHelper will do 95% of what you need). 2) You need a _factories.json file to tell the game where to find your IRecipe factories.
  12. It should be "minecraft:crafting_shaped" You need your own IRecipe implementation.
  13. Some people are and they still use the apostrophe wrong.
  14. Your item's and block's what?
  15. This is wrong. If you extend a class that uses the Side Only annotation you can annotate your override if you wish, but you don't have to. What Choonster is saying is that the annotation does nothing as far as a mod developer is concerned. It's there to let you know that the method/class/whatever won't be available on the other side.
  16. No that only makes it more confusing for players to install.
  17. In a surprising twist of events, the client is fully responsible and in control of the player position and rotation. This is because the player should never experience input lag (send packet to server...get position update back from server...) when moving or looking around. All the server does is put limits on how fast the player can move and that the movement was legal (which is why in client-side-only explosions you get bumped out of the hole).
  18. I can't tell. You have your code redirecting things all over the place and while it looks fine, I can't spot the issue. Use the debugger. One of the things that might make things easier is to not let Item classes handle their own models. There is nothing that requires access to protected values. For example, if I look at my code...and ignore lines 181 to 196 (those lines handle custom state mappers and custom mesh definitions, which DO require access to protected values) you'll see that I can register all the models I need without doing anything fancy. I do use a wrapper object for the array (due to having migrated the code from 1.10 where the ModelRegistryEvent didn't exist and I was registering items and models at the same time).
  19. LOGGER = event.getModLog();
  20. Correct. Also, you should be concerned about logical sides, not physical. Copy and paste the method into your own code, assuming it does not reference further client-side-only code. In all likelyhood it forwards a call off to World#rayTrace (or similar name) and you can use that.
  21. This event: https://github.com/Dragonwhisper92/FF7/blob/master/main/java/com/finalfantasy7mod/proxy/ClientProxy.java#L44. Runs after this event: https://github.com/Dragonwhisper92/FF7/blob/master/main/java/com/finalfantasy7mod/proxy/ClientProxy.java#L21 Problematic Code problem numbers 2, 7 Code Style issue number 1
  22. Right, I forget that it is separate from getWorldTime() which uses a different counter (which should also never reset unless you edit the save / use the command). The Javadoc on...one of them...says that the value is modulo 24000, but it actually isn't. Edit: That said...is getWorldTotalTime effected by sleeping? That may influence what TheAwesomeGem is looking to achieve.

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.