Everything posted by Draco18s
-
[1.8] [FIXED] Breaking my custom model blocks, purple particles show up
Show your JSON file.
-
Rendering textures through the LivingHurtEvent event handler
Particles are weird. You need a whole class for them. http://jabelarminecraft.blogspot.com/p/minecraft-forge-1721710-modding-tips.html
-
[SOLVED] Make block drop in creative mode
You can, but the better question is why? (Usually people want to know how to prevent the drops)
-
Changing texture of block while ingame?
In order to send the data from server to client (getDescriptionPacket) and to save the data to the hard drive and load it back again.
-
Rendering textures through the LivingHurtEvent event handler
I do believe this is why particles were invented.
-
[HELP ME] Mod creation - Lack of knowledge
Unrelated, please do not center your posts. It's annoying as fuck to read. Thanks.
-
[1.7.10] Different client player .posY in obf and deobf environment.
You could also have used instanceof . But worldObj.isRemote is probably the best method.
-
[1.7.10][SMP] Is it possible to get, clientside, a world the player is not in?
It can be done. Look at XCompWiz's Looking Glass mod.
-
[1.7.10] Colored Item Names
EnumChatFormatting
-
[1.8] Colormap Help
Just FYI, if you plan on using biome data (temperature and rainfall), make sure to clamp the values so you don't cause array index bounds errors when another mod modified those values (say...by making the nether hotter than a desert, etc)
-
Help with hashMaps
This is not true. Check Vec3i. Sorry, I was basing off the fact that it didn't work (implying that BlockPos was not overriding those functions).
-
Help with hashMaps
Long story short: BlockPos does not override Equals and HashCode, so it isn't (usefully) hashtableable. While this will return a value, this is not useful, because this fails: BlockPos pos = new BlockPos(0, 0, 0); currentRespawnLocs.put(pos, true); pos = new BlockPos(0, 0, 0); currentRespawnLocs.get(pos);
-
[1.7.10] Reading all data from NBT on Entities
Entities don't have NBT. NBT is their compressed save file format.
-
[SOLVED][1.8] How to add smelting recipes for only custom furnace
Create your own recipe list. It's just a class that holds the relevant information, which you would then call an addRecipe function for, just like vanilla.
-
specific nbt help
Define "later needs this data."
-
[SOLVED] How to use Byte Buddy with obfuscation?
Warning about pure ASM: While this is possible, be aware that Clay almost certainly does not have its own updateTick and onNeighborChanged methods, meaning that requesting them will cause a null return. These functions are instead handled by the Block superclass, which if you ASM those methods, will be called for all blocks. You will want to insert an static function call which lets you discriminate between blocks without having to write huge chunks of code in bytecode. That call can also fire Forge events. This repo is out of date, massively, and doesn't compile/run properly, but it shows what I mean by inserting a static function call. https://github.com/Draco18s/HarderStuff/blob/master/main/java/com/draco18s/cropcore/asm/CropPatcher.java#L85-99 I later had issues with the event call, and ended up calling the event constructor with Reflection. If you do that, just let your static function throw the exceptions; the try...catch block weirdly lags the simulation (Forge tps says "20 ticks per second" but it visibly takes closer to 20 seconds per tick*). *I'd love a good explanation as to why.
-
[SOLVED] InvocationTargetException for coremod
Careful with using ASM. Too much of it and you turn into a mere husk, housing something dark and evil.
-
Include cables in blocks without replacing them(really complicated topic)
#HereBeDragons Or: You've wandered too far off your known map of programming. You're exploring deep into territory you don't understand and which few people will help you with because it's violating a principle of how Minecraft works. You can do it, but you're going to be largely on your own to figure out how. A different approach would be to use Forge Multipart and have your cables be a "subpart" that can be added to every block.
-
specific nbt help
You don't need NBT data here. Just use a private float property.
-
[1.8] Silverfish Help
You can use ASM to modify the silverfish to recognize additional blocks. Is not clean or easy, but you can.
-
[Solved | 1.7.10] How to make item lose durability/take damage?
Well, you should use one of those and pass a type of damage and the entity repainted (the player, null with throw errors).
-
[1.7.10]Generic Item Creation while in-game
My factory is random, but it doesn't have to be. The important part is the Item class translating from NBT to effect.
-
[1.7.10]Generic Item Creation while in-game
This class may be of some help https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/item/ItemArtifact.java
-
Compare 2 blocks in 1.8
block == Blocks.log
-
[1.7.10] Item Icons are not working?
Your code is a mess. Remove this: private static final String __OBFID = "CL_00001777"; That line is for Forge to reobfuscate vanilla class. Remove: IIcon[] iconArray1; You're not using it. As for your actual problem: CaSe maTteRs. double check that your file names match eXacTLy.
IPS spam blocked by CleanTalk.