-
Posts
16559 -
Joined
-
Last visited
-
Days Won
156
Everything posted by Draco18s
-
You need to include your mod ID or the game will search the minecraft textures.
-
So what you need is a list of bound totems stored (in a capability) on each player.
-
[1.12.2] How should I be viewing vanilla code?
Draco18s replied to Opengbil's topic in Modder Support
-
There is no need to raytrace at all, you already know what block the player is looking at: they just broke it. You need to use a cross product to find the perpendicular vectors to that vector so that you can identify the four orthogonally adjacent blocks, and from there, you can identify the four diagonals.
-
[1.15.2] Help rendering semi-transparent textures?
Draco18s replied to SapphireSky's topic in Modder Support
No, that's a separate thing. That will render the entire texture with uniform transparency. -
What is it that you are trying to do? Describe it as what the player sees, not your attempt to code it.
-
Write a custom IRecipe implementation.
- 1 reply
-
- 1
-
-
Use the BlockBreakEvent Get the player's lookVec Do some vector math Break some more blocks (you may wish to do so by first firing off new BlockBreakEvents so that your pickaxe can't break blocks that are in protected areas (other mods cancelling the event, if so, don't break the block) and you will need to insure that when your own event handler is fired again for these positions that you don't do anything).
-
Your scale isn't a whole number, so yes, you're going to lose pixels. That's what happens when there is no interpolation. There is simply no way to smoothly scale something that is 5 pixels wide down to 4 pixels wide and still have aliased results (i.e. a given pixels is either fully transparent or fully opaque) and not look weird. The only value less than 1 that will produce "acceptable" results is 0.5 due to the fact that Minecraft uses a 2x2 pixel square "per pixel" of detail. But this will not scale to the small UI scale (as that removes the doubling effect present at the default scale).
-
This message exists for a reason.
-
Good programming advice: Learn to read your errors.
-
Minecraft Mod Editing Help (can't compile .java to .class)
Draco18s replied to qewer3322's topic in Modder Support
1) Install Forge 2) Import source 3) Change code 4) Run gradle build task -
-
You need to declare (with buildComponent and addComponentParts) the volume that that bridge occupies. I just don't know if you can do it in one part (I haven't delved deep enough into the system)
-
[SOLVED][1.15.2] Why does GUI button not display?
Draco18s replied to Slastic's topic in Modder Support
Pretty sure this is caused by not calling super.render(). -
Its passed in the addComponentParts method as a parameter. Well, the chunkpos is, but that's sufficient. And the point of buildComponent and addComponentParts is to figure out what chunks your entire structure is in. I'm not entirely sure what the limitations are (e.g. if a single part can be larger than a chunk, how rigidly you need to stay inside the chunk, etc) but that's what those methods are for: letting the game figure out which chunks need to be available on a single thread for feature decoration.
-
Because worldgen is threaded and just because you've been given access to one chunk does not mean you have access to another chunk. That's not a Forge class.
-
Creating new loot conditions isn't that hard. Vanilla has tons of examples, and while I haven't done a condition, I have done advancement triggers, which are pretty similar. If you don't know how to implement the interface directly, copy an existing implementation, find the test() method, modify to return true when you want it to be true (adding undefined variables for the conditions specified by the json file) and working backwards until the errors are gone.
-
[1.15.2] My custom recipe type is not working properly [Solved]
Draco18s replied to TallYate's topic in Modder Support
If you're still overriding getType, then you didn't really "fix" anything. -
By the way, there's a search feature. Here's all of the threads with "deprecated" in the title for the last six months. https://www.minecraftforge.net/forum/search/?&q=deprecated&type=forums_topic&search_and_or=or&search_in=titles&start_after=six_months&sortby=relevancy
-
I haven't messed with entity predicates before, unfortunately, but it looks like something in EntityHasProperty.test() is throwing a null pointer.
-
Global Loot Modifiers https://github.com/MinecraftForge/Documentation/blob/c07a887ab55063073494c8c5b99bcb599fea23c9/docs/items/globallootmodifiers.md