Everything posted by Draco18s
-
[1.10.2] Check if singleplayer and get the player
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).
-
Syncing Client/Server Gui Data in Container
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.
-
Correctly access nested sounds in sounds.json
Hmmm. Lets see... "name": "minecolonies:mob/barbarian/hurt1" I wonder if this name means anything... registerSound("minecolonies:mob/barbarian/hurt1"); Ooooh...it does!
-
[1.10.2] [SOLVED] JSON Subfolder
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
-
[1.8.9+] What is the current best tool for modeling?
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).
-
Custom mob can´t get Spawnegg name
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."
-
[1.10.2]TileEntity/Forge Energy Questions
I often forget as I'm accustomed to using basic trace statements for debugging. I have converted over to using the logger, generally, though.
-
[1.10.2]TileEntity/Forge Energy Questions
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"
-
[1.7.10] launcher to start game without showing main menu
Don't make your own launcher.
-
First Time Modder Need Help! Should be easy to answer!
Specify a different amount of ram in the gradle.properties file
-
First Time Modder Need Help! Should be easy to answer!
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.
-
[1.8.9] making blocks place based on orientation
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
-
[1.8] Item Model does not load
You need to specify it as an object, not an array: "inventory": [{ "texture": "varietytrees:items/door_apple" }],
-
[1.10.2]Strange shadows baked Model
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.
-
[1.10] IIcon replacement?
This is wrong. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/OresBase.java#L108
-
[1.10.2] Problems with TE and GUI
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.
-
[1.10.2][SOLVED] TESR not rendering entities
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)?
-
[1.10.2] Ragdoll type entity?
Move client only code into the client proxy.
-
[1.10.2] Ragdoll type entity?
Isn't that funny. The code being executed or not is irrelevant. It exists therefor it crashes.
-
[1.10.2] Ragdoll type entity?
Have you run it in Dedicated Server mode? I bet not. I bet you've been running it in Single Player mode.
-
[1.10.2] Ragdoll type entity?
The code being executed or not is irrelevant. It exists therefor it crashes.
-
[1.10.2] Ragdoll type entity?
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.
-
Is there a way to disable the Forge outputs on console?
There's already a JMV run flag to set an output level. I don't remember what it is, though.
-
[1.10.2] Ragdoll type entity?
1) You never call registerRender() 2) registerRender() is client side only code in a common location, this will crash the dedicated server.
-
[1.10.2] Updating mod -- Deprecated Functions
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.
IPS spam blocked by CleanTalk.