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. That still doesn't tell you if the player is playing single player. It only tells you that you're on the client (which can be playing single player, open LAN, or multiplayer).
  2. No, the purpose of proxies is to allow for code that only exists on one side to have a place to live. Predominantly you need: CommonProxy: contains empty stub methods that do nothing ClientProxy: contains all client-side-only code The "server proxy" has no reason for existing at all because anything you might ever want to do there must happen on the client during SSP which in your proxy setup, won't happen. The methods that ITileEntityProvider declares are already declared in the Block class.
  3. Hmmm. Lets see... "name": "minecolonies:mob/barbarian/hurt1" I wonder if this name means anything... registerSound("minecolonies:mob/barbarian/hurt1"); Ooooh...it does!
  4. You don't need META_LOOKUP at all. All you need is an interface that supplies a getFromMeta(int v) method and then use the Enum's own values[] array. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/blockproperties/EnumOreType.java#L61-L63
  5. There's also MrCrayfish's Model Creator. No animation support, but it is a solid program and conforms to the specifications required by the JSON model system (that is: you can't do anything in the modeler that Minecraft won't support with the JSON system).
  6. I just want to say that this post says: "I saw A so I put down B=C. I don't know why it didn't translate."
  7. I often forget as I'm accustomed to using basic trace statements for debugging. I have converted over to using the logger, generally, though.
  8. Unless you print out a pure number. System.out.println(someInt) will print "4" while System.out.println(someInt + " energy") will print "[time] [client] [package and class name:line#]: 4 energy"
  9. Specify a different amount of ram in the gradle.properties file
  10. You need about 1.6GB from my experience. Let's see...I've got access to my files now...oh, much less than I remembered. I have "org.gradle.jvmargs=-Xmx1134m" in here. Mind, I had the maximum possible amount of ram for a 32 bit machine (3.25gb) and I had to close down everything else. Fiddle with the number until you find a value that works.
  11. Step 1: use metadata to encode facing. Look at any vanilla block to see how this is done. Step 2: in your blockstate file provide rotation based on block state. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/resources/assets/harderores/blockstates/axel.json#L31-L43
  12. You need to specify it as an object, not an array: "inventory": [{ "texture": "varietytrees:items/door_apple" }],
  13. You don't need a baked model class to make ore glow in the dark. You can do that with the json models just fine by setting "shade":"false" in the elements{} tag of the faces you don't want shaded.
  14. This is wrong. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/OresBase.java#L108
  15. You need to include more code than just that one line. The whole method at a minimum. I looked at your git repo and it does not contain any of your block classes.
  16. Put a breakpoint here: https://github.com/Janellope/DigiCraft/blob/master/src/main/java/janellope/digicraft/client/render/blocks/PedestalTESR.java#L99 Is the item stack ever not null (at this point in the client side code)?
  17. Move client only code into the client proxy.
  18. Isn't that funny. The code being executed or not is irrelevant. It exists therefor it crashes.
  19. Have you run it in Dedicated Server mode? I bet not. I bet you've been running it in Single Player mode.
  20. The code being executed or not is irrelevant. It exists therefor it crashes.
  21. This is still true because your main class is still loaded on the server, it still contains a reference to client-side only code, which will still be located in order for the JVM to validate your class. This will still crash the dedicated server.
  22. There's already a JMV run flag to set an output level. I don't remember what it is, though.
  23. 1) You never call registerRender() 2) registerRender() is client side only code in a common location, this will crash the dedicated server.
  24. GameRegsitry.registerBlock/Item(...) -> GameRegsitry.register(...). Note: you will need to register an ItemBlock separately. The rest probably are ones that went from (int x, int y, int z) to (BlockPos pos) What diesieben07 said. I misread.

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.