Everything posted by Draco18s
-
What am I supposed to name my texture files?
Post your block registration code, in full, along with JSON files.
-
[1.10.2][Solved] Custom block model and collision boxes
http://www.minecraftforge.net/forum/index.php/topic,41630.msg221131.html#msg221131
-
[1.10.2][Solved] Custom block model and collision boxes
That is the proper way. @Deprecated means "do not invoke this" not "this is not used."
-
[1.7.10]spawing entities create ghost entities
Why are you using Minecraft.getMinecraft().theWorld ? This is both client side only and unnecessary as a world object was passed to the method already: onItemRightClick(ItemStack item, World world, EntityPlayer player)
-
[1.10.2] Absolutely noobish Q.: How to properly register new Block?
Unlocalized names are purely for display, so yes, they still exist and don't point back to something else.
-
What am I supposed to name my texture files?
I think you mean 0. Yes. I typoed that.
-
[1.10.2][Solved] Custom block model and collision boxes
I believe there is another method you need to override, I know in 1.7.10 it was: getBlocksMovement I am not sure if the name has changed.
-
What am I supposed to name my texture files?
That int is the metadata value. For most things, this will be 1. For blocks with variants, you'll pass in the metadata equivalent of the state you want to register (cough, you'll have to call this multiple times for more than one state). https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/client/ClientProxy.java#L48-L57
-
Enchantments cannot be resolved or is not a field
I believe it changed in one of the more recent updates. Same as moving from Block.dirt to Blocks.dirt (and then again to Blocks.DIRT).
-
Custom Projectile still firing even when there is no ammo in inventory 1.10.2
You are currently doing this: 1) The player has right clicked with this item 2) We give the player instant health 3) World is the server, so we continue 4) Spawn a bullet entity and send it on its way 5) Subtract ammo from the player: oops it doesn't have any 6) Damage the item You create the bullet before ever checking if there's ammo. And in fact, you don't check. The two line snippet (that does basically nothing) does check, but isn't wrapped around anything important. You need to reorder these steps and wrap the subtract ammo line into an if statement.
-
[1.10.2+] [!UNSOLVED!] Custom World Generator does nothing or wrong stuff
I see it. Tee hee.
-
[1.10.2] Only render block if player holds a specified item
Right, just that vanilla isn't a reference point any more.
-
Write text in custom GUI.
override drawGuiContainerForegroundLayer Pretty much look at any vanilla GUI.
-
Custom Projectile still firing even when there is no ammo in inventory 1.10.2
I'm sorry, this is not a chat room, it's a forum. Don't bump your thread after an hour. Point is: Don't create the bullet entity unless the player has ammo.
-
Custom Projectile still firing even when there is no ammo in inventory 1.10.2
Lets work this out. Stepping through the method... 1) The player has right clicked with this item 2) We give the player instant health 3) World is the server, so we continue 4) Spawn a bullet entity and send it on its way 5) Subtract ammo from the player: oops it doesn't have any 6) Damage the item Think about it for a minute.
-
[1.10.2] Only render block if player holds a specified item
These don't actually exist anymore, the item override mechanic is used instead of the hardcoded texture classes. Ah, thanks diesieben07. I think I'd glimpsed that, but didn't look very far into it. Also, away from my dev environ.
-
[1.10.2][CLOSED]Creating Non Existing Blocks
Largely speaking, you need to look up how to use OpenGL / GL11. VertexBuffer's second paramter is the same one passed to GL11.Begin() (which typically you want to use GL11.GL_QUADS). Last time I tried using lines I had trouble.
-
Change minecraft right click speeds?
No
-
[1.10.2] Server doesn't send NBT data to client when they log in to server
This is a forum, not Stack Exchange. You don't. If you want to edit your original post and change the title so it says "[sOLVED]" that's sufficient, but not required. You're also free to click the "thanks" button if you want.
-
[1.10.2] Absolutely noobish Q.: How to properly register new Block?
Check out my Client/Common proxy files (linked above). I boiled it down to a nice, clean "proxy.registerBlock," "proxy.registerBlockWithItem," etc. which does the game registry stuff and the rendering stuff all at once, and if it needs an item, then it gets an item registered automatically. All that gets passed is the block (or item) and the registry name, so it looks very similar to 1.8 and prior.
-
[1.10.2] Inserter glitch
Look at the chunk of code and manually step through it. Use the debugger if you have to. The error it obvious.
-
[1.10.2] Server doesn't send NBT data to client when they log in to server
You need to override getUpdateTag()
-
Change minecraft right click speeds?
You can't change the hard coded number, no. You'll have to take a different approach.
-
Enchantments cannot be resolved or is not a field
Then either: You haven't imported the Enchantments class or You're using the wrong class. I don't have an environment set up at the moment to check.
-
[1.10.2] Inserter glitch
Run it and see.
IPS spam blocked by CleanTalk.