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. That seems pretty self explanatory to me. The only issue is that Block's toString method goes based on its registry entry, which failed, so it returns AIR. You have a block that doesn't have a registry name.
  2. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/network/PacketHandler.java#L12 Namely you just say "here's my packet class's constructor, toBytes, fromBytes, etc." You can call those methods whatever you want as long as they have the right signature.
  3. Its not. Its just a comment that your code was unnecessarily verbose. My guess as to which line is line 28 is this one, as its the only one that appears to reference a function in the ItemStack class: You should probably be using attemptDamageItem I think its called. Its the one that takes Unbreaking into account.
  4. Speaking of, where did the high-altitude snowfall logic get moved to?
  5. else is sufficient here, by the way. It is impossible for both of those to be true at the same time or false at the same time.
  6. Note that the more items and blocks you create the more model and blockstate JSON files you'll have to update to reflect the change.
  7. This is a Gui class. You call this class FROM the event handler, you don't MAKE it the event handler.
  8. TheGreyGhost/MinecraftByExample Choonster-Minecraft-Mods/TestMod3 Draco18s/ReasonableRealism (not intended as a "by example" but there are things I do in my mods that I use as reference regularly)
  9. ...and you have 64 characters of length to play with.
  10. Its part of the Event parent class.
  11. You'll need a custom recipe for this. For example, I have something similar for crafting: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/hardlib/api/recipe/RecipeTagOutput.java Furnace (blasting, smelting, cooking) recipes use a similar system, I believe the class to look at is AbstractFurnaceRecipe and its subclasses.
  12. Agreed, but I never saw the method there either.
  13. Looks good. Just wanted to make sure there wasn't anything there that might've been a problem too.
  14. Again, that's not what side only does. If you want an event to only be registered on one side, you use the value=Dist.CLIENT parameter in the @EventBusSubscriber annotation. Also, its not called SideOnly any more. Its OnlyIn now. .
  15. Uh... public abstract class MobEntity extends LivingEntity { //... public final GoalSelector goalSelector; and protected void addSpawn(EntityClassification type, Biome.SpawnListEntry spawnListEntry) { //... } Forge build 1.14.4-28.0.45
  16. You haven't set up the state container. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/block/WindvaneBlock.java#L33-L36 Also, show where you create and register your blocks
  17. This does not do what you think it does. Adding this to the Gui class will just cause a class not found exception in another place. Omitting it and registering the gui only from the client proxy, meanwhile, works just fine.
  18. Well, your block is telling the game that it is a block that completely fills its space and is opaque. This is default behavior. As such the game culled all the faces on its neighbors.
  19. Are we sure about that? Because he's never posted the full class. Or even the method signature of where his code is located. And there's NO way he could get an infinite loop unless he was firing a BreakEvent from within a BreakEvent.
  20. You shouldn't be making your item work from inside an event. You don't need an event, you can just override the method in the class....
  21. https://github.com/xWhatsherfacex/Testing/blob/master/java/com/rnh/home/Init/ModItems.java#L26 Problematic Code #14
  22. Yes, but you aren't passing in an event handler class, you're passing in an event.
  23. sorry, had the order wrong.
  24. This doesn't do what you're trying to make it do.

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.