Everything posted by Draco18s
-
[1.7.10][SOLVED]Is it possible to get the player who placed a block?
And only on servers not in offline mode. (Development dedicated server defaults to offline).
-
[1.7.10]Brewing recipes and anvil recipes
This is what I get for posting from my tablet from a friend's house while playing Pathfinder. \o/
-
[1.7.10] Picture not showing
Same with your items.
-
[Solved] [1.8] Allowing a function to run while not freezing up server ticking
Long story short, take this section: while(this.energyContained > 0 && RedstoneHelper.isPoweredByRedstone(this.worldObj, this.getPos())){ //this Energy.tryMoveEnergy(this, (EntityPlayer) entities.get(i), 1); try { //this TimeUnit.MILLISECONDS.sleep(1); //this } catch(InterruptedException e){} //this } Remove both the sleep and the loop. The "onUpdate" is already a loop and already causes a delay. That's what "onUpdate" does, it runs once-every-timeunit.
-
[1.7.10]Brewing recipes and anvil recipes
TileEntityAnvil in net.minecraft.tileentity
-
[1.7.10] Picture not showing
Then something doesn't match. Check those file extensions. PNG or png?
-
[1.7.10]Brewing recipes and anvil recipes
Note: Brewing recipes are not for the faint of heart. Anvil recipes on the other hand are stupid easy because the output is the (first) input and its class defines the second input.
-
[1.7.10] Picture not showing
public void registerIcons(IIconRegister reg){ this.itemIcon = reg.registerIcon("BetterArmourAndTools:modIngot"); } "BetterArmourAndTools" is NOT ALL LOWER CASE, like your folder is. Ditto the item name ("modIngot")
-
[1.7.10] Picture not showing
Spoilers, much?
-
[1.7.10][SOLVED]A few questions...
Did you spawn it client side or server side?
-
Use item from OreDictionary outside of Recipes?
You could also cache the result (which item slot and what item). If that item slot has the item, no need for an OreDict lookup. If not, check the rest of the inventory for that item. If that fails (or the cache was null), you OreDict check the whole inventory.
-
[1.8] Allocate more ram to mc
What on earth are you needing to do that for?
-
[1.7.10] [SOLVED]Get Light Level being cast upon block
Note: Getting the light value for the current block's location and the block is opaque will return 0 because the block is opaque. You will need to get the light levels for the six surrounding blocks instead.
-
[1.7.10] Crash when killing mobs with nothing in hands.
Null pointer exception on line 1.
-
NBTTagCompound and String Array
An array is a simple enough object that you can iterate over to access each element with a unique index and strings are savable. So yes.
-
[1.8] Rendering Tips & Tricks needed
I'll note that you might be able to get vanilla to render an item by creating an EntityItem and telling the rederer to render it. (No need to spawn it in the world). It'll have more overhead than some other solutions, but it's a straightforward way to get the existing systems to do what you want as long as you can supply the necessary object. It's how I did it for a display case like block in 1.7.10 and I'd wager that it'd still work in 1.8, due to the ease of creating an EntityItem and the fact that such entities need to be independently rendered (like all entities).
-
[1.6.4/1.7.10] help with modding a boss
Pretty sure every mob defines its own attack. Why don't you take a look?
-
[1.6.4/1.7.10] help with modding a boss
P.sure you need to do something like extend EntityMob and give it something to do ( tasks ).
-
[1.7.10] Add to variable on item pickup, then delete the item?
First attempt: You could just cancel the event (prevents the pickup) and kill ( setDead ) the entity. Second attempt: That is not how you compare item stacks. And also what I said about the first attempt.
-
[1.7.10]Modeling/Rendering problems
- Difference between EntityConstructing/EntityJoinWorld
Entities can be constructed and never spawned. But generally, yes.- Difference between EntityConstructing/EntityJoinWorld
EntityConstrcuting is fired during the Entity's constructor. EntityJoinWorld is fired when the Entity....joins the world.- Question about NBTTagCompound
The answer to your question is "yes." You just have to be aware that you're on the client side, not the server side. If the data is on the server, you'll need to transmit it with packets.- Question about NBTTagCompound
NBT files are not secure, by any means.- Question about NBTTagCompound
Yes, the question is: Why? - Difference between EntityConstructing/EntityJoinWorld
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.