Everything posted by Draco18s
- Playerdata how?
-
Custom Pillar Block Not Working
You need to include your mod ID or the game will search the minecraft textures.
-
Playerdata how?
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?
-
[1.15.2] Getting surrounding blocks from a player broken block (based on face block was broken from)
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?
No, that's a separate thing. That will render the entire texture with uniform transparency.
-
Playerdata how?
What is it that you are trying to do? Describe it as what the player sees, not your attempt to code it.
-
[1.14.4] Custom Crafting Handler
Write a custom IRecipe implementation.
-
[1.15.2] Getting surrounding blocks from a player broken block (based on face block was broken from)
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).
-
[1.14.4] Shrinking GUI Font Size
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).
-
help with NoSuchMethodError
This message exists for a reason.
-
AL lib: (EE) alc_cleanup: 1 device not closed
Good programming advice: Learn to read your errors.
-
Minecraft Mod Editing Help (can't compile .java to .class)
1) Install Forge 2) Import source 3) Change code 4) Run gradle build task
-
AL lib: (EE) alc_cleanup: 1 device not closed
- [1.15.2] Structure vs World.setBlockState
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] Is there a way to get the world and the player holding an item?
You can't do this. Items are singletons. What happens if there are two players?- [SOLVED][1.15.2] Why does GUI button not display?
Pretty sure this is caused by not calling super.render().- [1.15.2] Structure vs World.setBlockState
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.- [1.15.2] Structure vs World.setBlockState
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.- [1.15.2] Adding drops to mobs
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]
If you're still overriding getType, then you didn't really "fix" anything.- [1.15.2] [Solved] Dynamically create Item model from dynamically generated item texture
Yes, that's how generated item models work.- 1.15 deprecated
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- [1.15.2] Adding drops to mobs
I haven't messed with entity predicates before, unfortunately, but it looks like something in EntityHasProperty.test() is throwing a null pointer.- [1.15.2] Adding drops to mobs
Global Loot Modifiers https://github.com/MinecraftForge/Documentation/blob/c07a887ab55063073494c8c5b99bcb599fea23c9/docs/items/globallootmodifiers.md - [1.15.2] Structure vs World.setBlockState
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.