Everything posted by Mazetar
-
Set/Get word on a GUI to/from NBT
Make the GUI set a String variable in your tile entity to the text input. If the text change send a packet containing the text to the server. The server then reads the packet, and updates the TileEntity's String on the server side to the same value. Then it should do something to mark the TE as updated so all players closeby it get's the update. Inside the TileEntity class implement the read and write to/from nbt methods. and save/load the string variable from NTB. For more info on GUI and syncing check out the Interface Courses by vswe on http://courses.vswe.sw NBT: There's some on the wiki. Heres one for items but it should give you the general Idea of how you store and read a variable from NBT www.minecraftforge.net/wiki/Item_nbt
-
Set the mob's target as path
Look into World, there you will find the path finding methods. Have fun
-
Need help with Crafting Handlers
Test it and check yourself?
-
[Solved]Question About attributes.
To make it better, and minecraft's code needs A LOT of work in that regard. Without changing over to the attribute system, the modding API would not be possible. These changes are towards a bigger goal, and to be honest the Attribute system isn't that bad once you are used to it. One at a time these changes may seem weird and just made to make a modders job tedious for no good reason, but if you look at it from a different standpoint the code is slowly being made into something which is easily expandable and therefore opens up a lot of possibilities for us as modders
-
[Solved]Question About attributes.
There's plenty of documentation for the Minecraft code, as well as proper names for everything and a lot of other things. All of this is provided by Mojang for the programmers working on the Minecraft project Because the "wip" state is not noticeable for the end users. The users will never see or know of how the code looks between 1.5 and 1.6 all they know are new features. Therefore I see no problem in doing things this way
-
[1.6.2] Is their a 1.6.2 Minecraft Forge Rendering obj Tutorial
There are serveral lecture number 1, each course starts at lecture one. The first course however is the one at the top of the list, you can find a direct link to it here: http://courses.vswe.se/?course=1 and the 2nd one: http://courses.vswe.se/?course=2 GL and Have fun learning the craft
-
Max Size world gen structures?
No with logic I meant, I fail to see any logical reason as to why it would have a significant impact on performance
-
[SOLVED] Gui won't display
"Also, I'm getting an error on the buttonList.add line: "Type safety: The method add(Object) belongs to the raw type List. References to generic type List<E> should be parameterized"" is a warning not an error
-
Change the HUD Position?
try looking into the two thhings mentioned by the two first replies. google the gltranslate and read up on it!
-
Max Size world gen structures?
Schematic to Java converter makes a class file full of stuff like thos: world.setblock(x+1,y,z, 1) world.setblock(x+2,y,z, 1) etc. but I can't imagine the computation of the addition would be the difference between an noticeable amount of lag for 6000 blocks?
-
[1.6.2] Is their a 1.6.2 Minecraft Forge Rendering obj Tutorial
Did you start with the first one? IF you start at the one about models, then you will have an impossibly hard time understanding anything
-
Max Size world gen structures?
I really don't see the logic here
-
[1.6.2] Passive mob attack player?
I'm sure you can find a workaround for that if you want to
-
How do i generate flowers in the overworld?
How do you generate other stuff in the overworld? Do you know for example how to generate ore's? By using the same principles you could place flowers. Or you could create a decorator for it but meh
-
[Solved]Question About attributes.
Keep in mind that the system is not only new, it's also a work in progress. This is one of many steps needed towards the API they are working on.
-
[Solved] Working with NEI in dev workspace MC1.6
That's weird it would seem the lib package is req. and missing I'd simply post in his thread and ask about that
-
[SOLVED] GuiContainer inventory bug in multiplayer [Dedicated server]
yes. I also find copy-pasting code quite against the whole point of using Java and any OOP language for that matter. If you want to copy paste code all day, you might as well be doing procedural programming lolz Also for new modders, you learn way better by writing what needs to be added and UNDERSTANDING the code. Than to copy-paste random meaningless (Obfuscated) code
-
Max Size world gen structures?
@Gotolink: For such massive structures, would using ExtendedBlockStorage to set he blockID's and meta's be better in order to prevent lags while it is being generated?
-
[Solved] Checking if the player has nothing in their hand
See http://www.minecraftforge.net/forum/index.php/topic,12010.0.html To get the correct method to use
-
Help with replacing existing GUI
Vswe has a two great courses about graphical user inerfaces Includs syncing, buttons, tabs and slider and much more
-
Is there a player.getCurrentItemOrArmor() for blocks?
Check for a similar method instead then, i know there is one!
-
Mob dropping multiple entities on death?
for loops.
-
[1.6.2] Configuration File
manually import it, by finding the Configuration class (CTRL+SHIFT+T helps!) and copy it's package name. Then write import package.Line.Here.Configuration; along with the other import statements.
-
Is there a player.getCurrentItemOrArmor() for blocks?
As i said before, nothing happens. That's not debugging, here's how you would debug it and TRUST me you would really want to KNOW this stuff else your life will be very hard instead of simple: http://www.vogella.com/articles/EclipseDebugging/article.html
-
Making custom vehicle
in case it's relevant to any of you two: KeyHandler: http://www.minecraftforum.net/topic/1798625-162sobiohazardouss-forge-keybinding-tutorial/ Packets! Read them both to get a understanding of packets Packet Handling 1: http://www.minecraftforge.net/wiki/Packet_Handling Packet Handling 2: http://www.minecraftforge.net/wiki/Advanced_Packet_Handling
IPS spam blocked by CleanTalk.