Everything posted by Draco18s
-
[1.7.10] How to make Multi-Layered Textures like Tinkers Construct?
There are only two passes: pass 0 and pass 1. Pass 2 will never happen.
-
[1.7.10] How to make Multi-Layered Textures like Tinkers Construct?
https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/item/ItemArtifact.java#L106-L108
-
[1.7.10] How to set NBT data for resulting itemstack
Also, stackTagCompound is null by default. You need to create one, then add attributes.
-
Instant Structure is that possible? (PAYED IF HELPED)
Yes. Structures are not magic.
-
Harvesting Multiple Blocks with normal Breaking Animation
I'd tell you to copy the calculation and do it "manually" but there's a slight problem: If the target block has a different break speed than the one the player is actually mining, it's either going to break and drop early, or not finish.
-
[1.7.10] How to make Multi-Layered Textures like Tinkers Construct?
Well, insert some debugging statements and figure out what the program is doing.
-
[1.7.10] modifying NBT in onUSingTIck prevents onPlayerStoppedUsing being called
I don't have enough of your code to know what you're doing with the NBT.
-
[1.7.10] How to make Multi-Layered Textures like Tinkers Construct?
Your code never sets the NBT tag to have a value for "icon"
-
[1.7.10] modifying NBT in onUSingTIck prevents onPlayerStoppedUsing being called
Writing to the NBT causes Minecraft to believe that the item stack is a new item stack and therefore interrupts any in-use actions.
-
[1.7.10] Configuration Comments not working
AFAIK you don't have to include the "Default: False" portion, as the config class supplies that on its own.
-
NBT for something other than Items
Encode the timer into the armor's NBT. Save the world time that the ability was used, then do if(world_time - saved_time > some_delay) { //ready }
-
ConcurrentModificationException error
Depending on what keyboard event your listening to, you're likely asking isKeyDown(key) which will be true for the entire duration that the key is pressed. Which as the code runs 60+ times a second* and a press lasts a tenth of a second...that's at least 6 calls. *Pretty much as fast as the program runs, not tied to game ticks in any way.
-
Initialize Ore Recipes with a list of items
That is the most funniest thing I have read in a loong while Here's a rebuttal.
-
[Solved] Formatting achievement text
Just double check that it compiles properly, too.
-
[Solved] Can't figure out git
Neither can most people. If that doesn't fix it, git.txt contains the phone number of a friend of mine who understands git. Just wait through a few minutes of 'It's really pretty simple, just think of branches as...' and eventually you'll learn the commands that will fix everything.
-
[1.7.10] How to make Multi-Layered Textures like Tinkers Construct?
https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/item/ItemArtifact.java#L111-L133
-
[Solved] Formatting achievement text
Well originally I was trying to display ♥ which is U+2665, and despite saving the lang file as UFT-8 it never worked properly. Kept showing up as two other characters. More recently I wanted ″ and ㎝ for WAILA info tips. Which, again, refused to work properly. Anyway, I was mistaken, those are still UTF-8. Point was, there were issues using characters from that set and I had to go to extra lengths to get them to display properly.
-
Eclipse Wont open the project
And did you tell Eclipse to use that workspace?
-
[Solved] Formatting achievement text
(UTF-16 does not save to UTF-8 While UTF-8 might be sufficient here, it is not a complete solution)
-
Eclipse Wont open the project
Just because that's where Eclipse is doesn't mean that's where it's looking for the project file. Its like saying, "Word can't open my doc file, but it's right there next to word.exe, but I run Word and nothing! Blank!"
-
[1.7.10] Getting virtual chest inventory
- [Solved] Formatting achievement text
Oh, that's handy.- Counter Minecraft's Air Drag
Air drag is 2%. That is, velocity is multiplied by 0.98 every tick.- Initialize Ore Recipes with a list of items
Most of the things you program in your life will be "dirty workarounds." Some of them (like this one) is called a "helper method." http://www.stilldrinking.org/programming-sucks- [Solved] Formatting achievement text
Newlines aren't supported in the language files. Extended character sets (like UTF) are also...less than supported. You'll find that it'll work fine in dev, then you'll compile, and it won't work. So the § symbol that Minecraft uses for colors likely won't work either. You'll have to find a substitution string to use in the lang file which you'll extract after translating the untranslated version, and replace with the desired symbol (e.g. EnumChatFormatting.WHATEVER ). I had to do this to get the degree symbol (°): //class initialization //translate from UTF-16 hex to a string of (8-bit) chars. int codePoint = 0x1D3C; char[] charPair = Character.toChars(codePoint); /*public static string*/ deg = new String(charPair); ... //waila tooltip method: currenttip.add(StatCollector.translateToLocal("description.temperature") + ": " + val + deg); And from another project where I wanted to let a symbol be used in the lang file, which was then formatted (this is closer to what you're doing): #Lang file #Comments in lang files are denoted by the # at the front of the line #{H} here will use a UTF heart symbol effect.Hearts={H} //Item tooltip String heart = StatCollector.translateToLocal("effect.Hearts"); heart.replace("{H}", EnumChatFormatting.RED + ((char) 0x2665)); par3List.add(StatCollector.translateToLocal("effect.Health Boost") + " " + EnumChatFormatting.BLUE + "+2.5 " + heart); § is the "section" character. ¶ is paragraph. - [Solved] Formatting achievement text
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.