Everything posted by Draco18s
-
[1.7.10] Not-Vanilla ItemStack instance
Could methods: 1) Ask 2) Decompile the mod and look 3) Print out every god damn block name in the block list
-
[1.7.10] Not-Vanilla ItemStack instance
unlocalized name != block registry name GameRegistry.registerItem((new Item()).setUnlocalizedName("iron_nugget")), "my_iron_nugget");
-
[1.7.10] Not-Vanilla ItemStack instance
Only call the code if ExtraUtils is loaded.
-
[Solved] Map and functions
sifterRecipes.entrySet().iterator() ?
-
[1.7.10][SOLVED] EventHandler not working; Enchantment
Have you tried printing out what the IDs on the item are and comparing them to the ID you're looking for?
-
[1.7.10][SOLVED] EventHandler not working; Enchantment
Checking the stack for null after you reference it isn't going to do anything useful.
-
[1.7.10][SOLVED] EventHandler not working; Enchantment
Actually, I bet it would crash. You didn't check to make sure that the item in the currently equipped slot isn't null, and then you access its stackNBT.
-
Questions about multiplayer (1.7.10)
If you start doing any packet-sending code, then it could be your fault. Just remember not to send a packet all the time every time ten times over and you'll be fine.
-
[1.7.10][SOLVED] EventHandler not working; Enchantment
Let me guess: if you punch a zombie, it crashes. ItemStack stack = player.getCurrentEquippedItem(); //what value does stack contain when you punch a zombie? //what value does stack contain when a zombie punches you? NBTTagList ench = stack.getEnchantmentTagList();
-
Is there a way to destroy a region?
With Java, you can do anything. new File(DimensionManager.getWorldSaveDirectory()+"/region/r.0.0.mca").delete();//warning: will probably do bad thigns
-
Replicate Grass Block Colour Overlay
As for the bottom: you need to not render the bottom in the second pass.
-
[1.8] Two EventHandler crash
ConcurrentModificationException: You are modifying an array while another thread is trying to iterate through it.
-
[1.7.10][Solved] Mod Crashing Regular Client
That's the Item renderer, show also the TileEntitySpecialRenderer class.
-
[solved][1.8] Problem with TileEntities
It's not sided. But it gets sent any time the server sees that it needs to be sent. You'll want to call worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); if you make any changes to the data and it needs to update right away.
-
[solved][1.8] Problem with TileEntities
You need to save the data in an NBT tag (read/write to/from NBT methods) and then add: @Override public Packet getDescriptionPacket() { NBTTagCompound nbtTag = new NBTTagCompound(); writeToNBT(nbtTag); return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, nbtTag); } @Override public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity packet) { readFromNBT(packet.func_148857_g()); } So that the data is passed from server to client.
-
Non-Standard UnlocalizedName
You're welcome.
-
Non-Standard UnlocalizedName
http://1.bp.blogspot.com/_D_Z-D2tzi14/S8TZcKXqR-I/AAAAAAAACwg/F7AqxDrPjhg/s320/ALOT13.png[/img]
-
[1.7.10] Meta-data items?
You haven't overriden public void getSubItems(Item item, CreativeTabs tab, List list)
-
player.setSneaking() Not setting sneaking.
Well, the class-level variable will turn sour as soon as you have multiple copies of the item and a server with multiple players. Second, you should check that the entity is of the desired type before casting. Third, I'm not sure that setting sneaking like that works. Mostly because it's a state that gets updated all the time based on your keyboard input.
-
[1.7.10] Trying to render a Techne Model, error in code?
Lang files.
-
[1.7.10] Fast/Fancy Textures
If the log is printed to the console, then the error is not in that snippet. QED.
-
[1.7.10] Trying to render a Techne Model, error in code?
You need to supply a material. Look at all the other blocks: blockRegistry.addObject(20, "glass", (new BlockGlass(Material.glass, false))... public BlockStone() { super(Material.rock); //here this.setCreativeTab(CreativeTabs.tabBlock); } As for invisible, that has nothing to do with BlockContainer. You registered a renderer for your block, and likely, it isn't rendering anything.
-
[1.7.10] Trying to render a Techne Model, error in code?
Nah, everyone else calls me an asshole because they're too [lazy|stupid|assholish] to go to the effort of helping themselves.
-
[1.7.10] Trying to render a Techne Model, error in code?
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityJohnnyBlockRubble.class, render);
-
Replicate Grass Block Colour Overlay
Long story short: you're going to find this almost impossible. I don't know how grass actually renders its sides (last I checked, it cheated), but the problem you're seeing has to do with the fact that the color multiplier applies to the whole texture. Best guess, you could try a transparent overlay texture which has the grass portion and is color multiplied, and the dirt underlay portion which is not. You'll have to look up two-pass rendering on your own.
IPS spam blocked by CleanTalk.