Everything posted by Draco18s
-
Reduce lag when Rendering items
You could render the block as a baked model (which includes items, AFAIK) which would reduce the lag significantly as the quads only get "rendered" once, rather than every frame.
-
Reduce lag when Rendering items
Does your block need to animate?
-
BlockPos.MutableBlockPos
BlockPos objects, by default, are not modifiable (that is, their coordinates don't change). A mutable BlockPos object is one that can be modified.
-
Can't register more than one entity? [1.11]
For fuck's sake. Rename your fucking variables. What is this shit? (World itemStackIn, EntityPlayer worldIn, EnumHand playerIn)
-
Can't register more than one entity? [1.11]
1.10: if (!worldIn.isRemote && !playerIn.isSneaking()) 1.11: if (!itemStackIn && !worldIn.isSneaking()) Are you actually an idiot or are you just pretending?
-
GUI not opening on activation.
if (tileEntity instanceof TileEnityCrystallizer) { TileEntityCoalGenerator tileInventoryFurnace = (TileEntityCoalGenerator) tileEntity; if (tileEntity instanceof TileEntity) { TileEnityCrystallizer tileInventoryFurnace = (TileEnityCrystallizer) tileEntity; return new GuiCrystallizer(player.inventory, tileInventoryFurnace); } if (tileEntity instanceof TileEntity) { TileEntityCoalGenerator tileEntityCoalFurnace = (TileEntityCoalGenerator) tileEntity; return new GuiCoalGenerator(player.inventory, tileEntityCoalFurnace); }
-
PR Minecraft Forge Github Quick Question
One is unaltered, the other is altered? Like, it's not that hard. The Forge project is where Forge makes their changes. The clean one is clean.
-
GUI not opening on activation.
Try not returning true on the client. Remove that line entirely.
-
How to access Minecraft class files
You mean this?
-
GUI not opening on activation.
Annnnd your block code?
-
[1.10.2] Special effect on button press.
private ItemStack ItemStack; The fuck? public ItemStack getItemStackFromSlot(EntityEquipmentSlot slotIn) { return ItemStack; } Double da-fuck? The magic of packets.
-
Projectile With Continuous Block Destruction
Something something look out in front
-
[1.10.2] Special effect on button press.
This will not work on the dedicated server. The server doesn't necessarily know what a "keyboard" is, much less which player is pressing it.
-
[1.10.2] Special effect on button press.
There are two things that much be true for your keybind to do anything. 1) The key needs to be pressed 2) The player needs to be wearing the armor 3) the server needs to know about it You've got #1 at the moment, now do #2 and #3.
-
Projectile With Continuous Block Destruction
Well. For the entity to destroy a block that has the same coordinates as the entity, then the entity must be inside the block. If it is inside the block, then it must have impacted the block. If it has impacted the block, then the entity must be dead.
-
Projectile With Continuous Block Destruction
Your method "disrupt" is private and not called from anywhere, then calls super.onEntityUpdate
-
[1.10.2] Looking for an adjacent block.
That is not the correct hasTileEntity() method. You want hasTileEntity(IBlockState state).
-
How does having two mods installed with a same item name work?
(You should do both, just to be 100% safe)
-
1.11 No Code errors, but crash on start up (thrownentity) (-slvd fix pg2)
Eclipse can highlight syntax and semantic errors, but it can't predict very many runtime errors. Code can be faulty simply by trying to use a pointer before it points to something. Eclipse can sometimes warn you where that's likely, but not always (Eclipse can't predict that a method will return null). This kind of error is what the industry calls a runtime exception and is still an error. There are also logic errors where there is nothing wrong syntactically nor does a runtime exception occur, but the function does not performed the assumed duty that it has been given. Eg: Which is why there are things called unit tests. The fact that I, Jeffry, and D7 are all posting the posts we do in response to you says that you're wrong.
-
[SOLVED] Textures Not Working
If you're using Eclipse, go to the Eclipse market place and install JSON Editor Plugin.
-
How to testfor and set blocks relative to a block
It is surprising how much of this thread is relevant.
-
1.11 No Code errors, but crash on start up (thrownentity) (-slvd fix pg2)
I prefer calling it "declaration" as in "I declare that this variable exists" vs. "definition" as in "this is what this variable is." Instantiation need not be part of a variable definition, but often is. (e.g. it can be passed as a method parameter instead, or ignored (cough, dead code, cough)).
-
PR Minecraft Forge Github Quick Question
https://github.com/MinecraftForge/MinecraftForge/wiki/If-you-want-to-contribute-to-Forge
-
[1.10.2] Looking for an adjacent block.
int counter = 0; for each { if connected { counter++; } }
-
[1.10.2] Looking for an adjacent block.
You were already told. for (EnumFacing face : EnumFacing.values())
IPS spam blocked by CleanTalk.