Everything posted by mnn
-
How to get username in server?
getEntityName?
-
How to get username in server?
getEntityName?
-
Glitches with TileEntitys
Glad to hear this. I might have judged you too quickly, my fault. (Also parts of my posts were meant in a general way. I'm probably not very good at expressing this sort of things in English.) And looking at posts I wonder if I shoudn't have picked a better nick, a lot of people is misspelling it . See you around and happy modding o/.
-
Glitches with TileEntitys
Glad to hear this. I might have judged you too quickly, my fault. (Also parts of my posts were meant in a general way. I'm probably not very good at expressing this sort of things in English.) And looking at posts I wonder if I shoudn't have picked a better nick, a lot of people is misspelling it . See you around and happy modding o/.
-
[solved] broken javascript on forum
Problem solved, I allowed DOM storage ("supercookies") for forum and now it works as intended.
-
[solved] broken javascript on forum
Problem solved, I allowed DOM storage ("supercookies") for forum and now it works as intended.
-
Glitches with TileEntitys
It's the same thing - he wrote that it magically uses some link. If he don't know what a "reference type" (or "static" or "value type" or "method" or "field") means, he should stop trying to mod and go back to learning Java. If he don't uderstand it and just copy-paste your code, he'll be back tomorrow with similar "learn java" issue. Also it will be frustrating for him, becuase in the end he ends up with code which is impossible to maintain - copied pieces together without any knowledge why it works. I did write that on the end of my post... I wonder how machines from BC, IC2 or computers from RP or CC wound react on this copying. *thinking about multiblock structures* I don't think that a lot (if any) modders were considering this when writing their TE.
-
Glitches with TileEntitys
It's the same thing - he wrote that it magically uses some link. If he don't know what a "reference type" (or "static" or "value type" or "method" or "field") means, he should stop trying to mod and go back to learning Java. If he don't uderstand it and just copy-paste your code, he'll be back tomorrow with similar "learn java" issue. Also it will be frustrating for him, becuase in the end he ends up with code which is impossible to maintain - copied pieces together without any knowledge why it works. I did write that on the end of my post... I wonder how machines from BC, IC2 or computers from RP or CC wound react on this copying. *thinking about multiblock structures* I don't think that a lot (if any) modders were considering this when writing their TE.
-
Any tutorials for custom block rendering?
This sounds rather interesting, do you know how it is done, and what dimensions and complexity the model needs to be? Also can they be used for entities? If so, how would texture mapping work? I haven't tried it yet, but it's used in EE3 (it's open source, code is available on github) or you can read this tutorial - looks nice. It can definitely be used for entities (not sure about blocks though, maybe just TE).
-
Any tutorials for custom block rendering?
This sounds rather interesting, do you know how it is done, and what dimensions and complexity the model needs to be? Also can they be used for entities? If so, how would texture mapping work? I haven't tried it yet, but it's used in EE3 (it's open source, code is available on github) or you can read this tutorial - looks nice. It can definitely be used for entities (not sure about blocks though, maybe just TE).
-
Techne Custom Block Model
I don't know how you register CampfireRender (also your code looks like a hybrid of forge and modloader so I could be mistaken), but if you don't force it a render id manualy it just takes it from: CampfireRender.java public int getRenderId() { return 0; }
-
Techne Custom Block Model
I don't know how you register CampfireRender (also your code looks like a hybrid of forge and modloader so I could be mistaken), but if you don't force it a render id manualy it just takes it from: CampfireRender.java public int getRenderId() { return 0; }
-
Glitches with TileEntitys
You asked about "glitch", but it's not a glitch - it's a feature of programming language you're working with. If you want to know how to do a deep copy of TE, I'm not sure that it's possible in some general way (like be compatible with TEs from all mods). And yes, when it's a basic Java question, you shouldn't be asking here (and I probably shoudn't have answered). I'm sorry if I'm underestimating you, but from the quesion it didn't seem that you know what a term "reference type" means. I wrote it before, it's not that I don't want to help, it's just that this forum is filled with basic modding questions described in detail on wiki and with basic java questions which are here offtopic (without decent OO background it's a terrible idea to learn Java by modding). It's just that more complex problems which needs more advanced modders in order to be answered are buried. And those advanced modders just stop going on the forum, because it's all trivial for them, just repeating same basic issues over and over again. PS: The question "how to clone a TE" is interesting, I'm curious about how it could be done. Maybe serialize wanted entity into NBT, modifying coordinates and recreating it on the other place?
-
Any tutorials for custom block rendering?
Recently has beeen added support for obj files into Forge, so you can use any 3d editor that can export to a wavefront obj format (maybe Blender?). For a tessellator usage you can take a look at net.minecraft.client.renderer.RenderBlocks class.
-
Any tutorials for custom block rendering?
try searching for ISimpleBlockRenderingHandler. it's a long time I used it, but I think you get a render id, implement that handler, register your handler and your block should return the registered render id. without TEs you'll have to implementent your block renderer via tesselator. not sure how much this post will help, but at least it's a start .
-
Custom Inventory?
wow, this would require tons of serious asm hacking
-
Getting serverside metadata
I don't think there is something like "registered metadata" - in your case damage values. It's on you, programmer, how you handle it. e.g. static final fields with hardcoded item dmg values for each item or enum. the method you're writing about is merely for a client to show stuff in creative gui, it does not limit you from using other damage values on item with same id.
-
Custom Gui Help
If you want a working example of a custom non-contrainer GUI, take a look at this post.
-
Glitches with TileEntitys
another "learn java" thread? http://en.wikipedia.org/wiki/Reference_type you'd have to do a deep copy.
-
[SOLVED] Custom tool, disable enchanting?
wouldn't overiding "getItemEnchantability" and returning 0 do the trick? (haven't tried it though)
-
Libraries with mods?
yep, you can. but your mod have to be a coremod.
-
Scala
It is. For quite some time it's even supported by (recommended version of) FML. But it doesn't seem that MCP supports it, so there are probably needed some modifications of build scripts .
-
Scala
Is there any "modding with Scala and Forge" tutorial? I saw some mods written in Scala, but I have no idea how to compile it with MCP... EDIT1: Short description of Scala from Wikipedia: more there.
-
Editing a vanilla feature
If you directly change any base class your mod will (probably) not be compatible with the rest of Forge mods. You can get around this limitation using reflection or ASM.
-
Simple teleportation
I had serious problems in multiplayer in 1.4.7 with moving a player like you posted. When I run that code it did teleport the player, but chunks weren't send to him so he could see massive holes in a world (had to relog every time to "fix" this). If you encounter this problem, use playerNetServerHandler.setPlayerLocation of EntityPlayerMP .
IPS spam blocked by CleanTalk.