Everything posted by Draco18s
-
[1.7.10] Messing with stack sizes
I meant a helper for the specific purpose of overwriting vanilla items. It's a "relatively" common task, but there's no explicit helper function.
-
[1.7.10][Solved]New rail recipe only works when playtesting in Eclipse.
Item.getItemFromBlock(some_block)
-
[1.7.10] Messing with stack sizes
Reflection can do anything. Problem is: you have to know how to do reflection. I don't believe there are any helper functions for this.
-
[1.7.10][Solved]New rail recipe only works when playtesting in Eclipse.
All you did was wrap his parameters in a new Object[] {} which is already done by the compiler. http://www.minecraftforge.net/forum/index.php/topic,25202.msg128448.html#msg128448
-
Multiple custom CreativeTabs for custom item/block
Wasn't:
-
Multiple custom CreativeTabs for custom item/block
I don't think so. Looking at the functions involved it does not appear so.
-
Problem with buckets (1.7.10)
setContainerItem(Items.bucket); in your bucket class.
-
[1.7.10][SOLVED]Using multiple Guis with the IGuiHandler?
See that spot that says "switch(ID)"? That's where you add more IDs.
-
[1.7.10] Custom Tab Background?
try .setBackgroundImageName(MODID + ":" + "creativeTab") And if that doesn't work, check your console for errors, it will tell you if it failed to load an image. Copy that error and post it.
-
[1.7.10][Solved] Sending custom data to Client GUI.
I'd create a static class that all it does is hold onto the data received and then the GUI can just read those variables when it draws. Short answer: yes.
- [1.7.2]Spawn block
-
[1.7.10] Custom dim folder
I know Mystcraft does it (it names them MYST_xxx) but yeah, why? Mystcraft is really the only dimension adding mod I can think of that would need that.
-
Help with full bright block
Did you register it?
-
[Sovled] [1.7.10] Strobe Light Effect
Don't even need a tile entity. world.scheduleBlockUpdate(x,y,z,this,1) in the block's update function will suffice.
-
[1.7.10] Messing with stack sizes
Remove and replace its recipe so that it craft "I can't believe it's not a diamond sword" instead of a diamond sword.
-
[1.7.10]onImpact not called when using onUpdate method?
...and if there's some part of super.onUpdate() you don't want, go look at it and find the bits you DO want and copy them.
-
Adding particles
Try this out: https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/client/RadarParticle.java
-
Drop set not working
If i do this it still drops its self Negative. CDrop is of type Item and Items don't drop Items, Blocks drop Items (or Blocks, but Blocks are also Items).
-
Improving my crafting bench
Those slots can already, natively, hold items. Apply damage to the item stack. The whole bench would then be a TileEntity that has an internal inventory (like a chest) to hold and contain those items.
-
[Sovled] [1.7.10] Strobe Light Effect
So congradulations on writing an infinite loop. This is basic programming and you have failed it.
-
[1.7.10] Enchanted books not working in anvil
Right, because the book itself is not enchanted, but rather it contains an enchantment (you can do both!)
-
[1.7.10] Change vanilla recipe output
As an example... GameRegistry.addShapeedRecipe(new ItemStack(Items.cake), "mmm", "ses", "www", 'w', flour, 's', Items.sugar, 'e', Items.egg, 'm', Items.milk_bucket); varargs mean "and whatever other parameters were passed." varargs supports an infinite number of arguments. Edit: Sorry if this isn't 100% correct, my recipes right now all use the oredict.
-
[UNSOLVED] Fluids - setViscosity does nothing (1.7.10)
Fluid myFluid = new Fluid("myFuid"); myFluid.setViscosity(1000).setDensity(1000).setTemperature(295); ?
-
[1.7.10] Make Balance NBT?
Should be one more than you need to get started then, no?
-
minecraft crash
Also, public BlockFirestone(int par1, Material par2Material){ You can drop the "int par1" as you're not using it. That used to be the block ID, but as block IDs are no longer A Thing, you don't need it.
IPS spam blocked by CleanTalk.