Everything posted by Draco18s
- 
	
		
		[1.17.1] Attach capabilities to World
		
		So you can't go open the vanilla source files and poke around for a few minutes identifying functions that you know take a world object and see what it was renamed to?
 - 
	
		
		[1.17.1] Attach capabilities to World
		
		Maybe figure out what class name that is? Literally everything gets passed a world object at some point...
 - 
	
		
		a problem with getLastDamageSource() method
		
		
- How do I create a text GUI hud?
 In your IDE, under Referenced Libraries.- [1.16.5] How to get player isSneaking() ?
 I'm sure there are a host of places in the vanilla code where it checks for things like this, why not search around. Additionally, as EntityPlayer is a subclass, the method you want may be in one of its parent classes.- [1.16.5] Trying to change a vanilla items properties, however getting an permission error(Client sided mod)
 1) I am pretty sure you can't 2) Something something documentation.- [1.16.5] Possible to modify tags at runtime?
 You don't know how data packs work, do you? The tag json files are config files.- How can i fix Exception in thread "main" in 1.16.5?
 By the way, for next time, your error is not "exception in thread main," it is:- Help with drawning stuff into minecraft hud
 https://lmgtfy.app/?q=rgb+color+as+integer- [1.17.1] making a GuiComponent.blit with a custom texture Width and Height
 It always has, just that a handful of methods (mostly UI) would assume a 256x256 texture and take pixel based coordinates. It converted to 0-1 UV coordinates internally before doing the actual blitting, though.- Help with drawning stuff into minecraft hud
 Alright then. How would you express a color as an integer?- Help with drawning stuff into minecraft hud
 That's the name of the parameter, what's it's Type- Help with drawning stuff into minecraft hud
 What is the signature of the method you're calling. It should tell you.- Help with drawning stuff into minecraft hud
 Cough default: event.setCanceled(true); Cough- Issue with direction values (1.16.5)
 So... renormalize the vector... https://www.khanacademy.org/computing/computer-programming/programming-natural-simulations/programming-vectors/a/vector-magnitude-normalization- Issue with direction values (1.16.5)
 Or, more sensibly: vec = player.getLookVec vec.y = 0- Issue with direction values (1.16.5)
 No: Why are you pushing the Z and Y values in the wrong order?- Issue with direction values (1.16.5)
 👀- [Forge 1.16.5] item container/backpack
 Capabilities- [SOLVED] How do I get an item in a custom inventory that uses capabilities?
 This is basic OOP, you need a reference to the object that has the capability.- Event Handler doesn't work
 I don't know, maybe the client can't kill entities, because the server controls that?- Tags & conflicting forge docs
 IIRC the example is bad and won't actually compile. This worked, and should still be mostly valid for 1.16: https://github.com/Draco18s/ReasonableRealism/blob/033da26f8ba4bcd25b0911aa9775764f12d7dbbe/src/main/java/com/draco18s/harderores/HarderOres.java#L106- [1.16.5]Attaching an inventory to an item
 ItemStackHandler#insert and ItemStackHandler#Extract- [Solved][1.16.5] A question about Blockstates JSON files
 There are better ways of handling multiple properties now instead of listing them all out. https://minecraft.fandom.com/wiki/Model#Block_states https://mcforge.readthedocs.io/en/latest/models/blockstates/introduction/ { "when": { "east": "true" }, "apply": { "model": "oak_fence_side", "y": 90, "uvlock": true } }- EntityPlayer rotation units? [SOLVED]
 There's only two units when dealing with rotations: - Degrees - Radians Three, if you want to count degrees(-180,180) and degrees(0,360) as different. - How do I create a text GUI hud?
 
IPS spam blocked by CleanTalk.
									
    
    
								
								
							Important Information
By using this site, you agree to our Terms of Use.