Everything posted by thebest108
-
[Solved]Transferring itemStack on shift click without loosing items
You could try checking the stack size with stack.stackSize, and check if it equals 1, otherwise subtract 1 from the stack, and add a new stack to the slot, then check if there is an empty slot and if there is, the repeat Hope this helps, I'm still newbish to modding
-
[Fixed]Why isn't my mod working?
Source please
-
Was working but not now..
That's like saying a car is broken and you need help. Help with what, your not telling us anything!
-
[Solved] Custom Tools aren't working
You're doing it the hard way, just use enum helper to register a new enum(in 1 line of code) in your mod files init
-
Timers,Biomes,and Music Disks(oh my!)
Add the time variable as an nbt uniquely saved to the entity/whatever, otherwise it won't work with 2 or more objects
-
.itemID not working.
You forgot to add the +256 to the .itemID, remember item are shifted
-
Veldra Team! PEOPLE NEEDED!
What is this project about?
-
The first website evar!!!
The 1st website ever on the Internet was Info.cern.ch Nuff sed
-
Make universal mod or crash on the server
Yes, the mod
-
Make universal mod or crash on the server
Source please
-
Optifine and Forge Decompile
Why do you need to decompile optifine?
-
Spawning mobs
My bad. There are 3 steps to spawning an entity. Step 1: declare the entity EntityChicken derp = new EntityChicken(world); Step 2: set the position and stuff (I don't know the exact name but it's something like) derp.setPostionAndSomethingElse() Step 3: now all the data has been set, so just do world.spawnEntityInWorld(derp); NOTE: before spawning the entity, do if(!world.isRemote) otherwise it'll spawn 2 entities. 1 that behaves normally, and 1 that doesn't move Took me a couple hours to figure this out so I hope I saved you some time
-
NBT noobieness
How would I write/read an nbt to an item?
-
Spawning mobs
world.spawnEntity(entity, other stuff)
-
How do I use "itemInteractionForEntity"?
par1ItemStack.Id = somethingElse +256; Also, is this.isFull just a standard Boolean, because that would cause multiplayer issues
-
How to add a Bow with Different Modes?
I don't exactly remember the methods to use but it is possible
-
Registering Entity Server Crash
Register the mob rendering in a client proxy, servers don't render
-
Grabbing all Blocks with one integer?
I'm pretty sure there's an onUpdate method for blocks. You could check if there are any nearby blocks and then spawn an explosion. You could also try using a forge event
-
Detecting fire to open a portal
Look into forge events, they should give you what you need
-
So clay soldiers isn't working, did I install forge wrong?
YOU DON'T USE MC PATCHER!!!!
-
how do i make my forge mod multiplayer supported?
It's universal by defualt
-
setBlockWithNotify() coordinates issue
Why not world.setBlock() ?
-
How can I milk cows with a custom bucket?
Don't use the buckets code for reference, it's overcomplicated. Instead, add the method itemInteractionForEntity() in your bucket class, and then do ItemStack.id = filledgoldenbucket.id+256
-
ItemStack entity
I'm using getArmorTexture(ItemStack itemstack) but that's all it gives
-
ItemStack entity
Is there something like ItemStack.getEntityHoldingStack ?
IPS spam blocked by CleanTalk.