Everything posted by Animefan8888
- 
	
		
		[1.14.4] Modifying Vanilla Content
		
		Override their loot table files. data.minecraft.loot_table.blocks I believe.
- 
	
		
		RenderLivingEvent never runs.
		
		You didnt answer my question.
- 
	
		
		[SOLVED] [1.12.2] Rendering GUI breaks food bar render
		
		Use the event.
- 
	
		
		[1.14.4] Modifying Vanilla Content
		
		Look at the item class because you can set the ToolType of an item.
- 
	
		
		[1.12.2] How can I make a crafting recipe where the output's durability matches the input's durability?
		
		You would need a custom IRecipe implementation and a custom IRecipeFactory/IRecipeSerializer. Because all recipes should be loaded from JSON.
- 
	
		
		[SOLVED] [1.12.2] Rendering GUI breaks food bar render
		
		Once you're done rendering you need to bind the ICONS resource because it expects it.
- 
	
		
		RenderLivingEvent never runs.
		
		How did you register your event class if you used EventBusSubscriber you need to make your method static.
- 
	
		
		How to make a custom mob such that only one can naturally spawn in the world at a time?
		
		Unless you override the equals method checking if a list contains an entity whom we will call instance a when instance b is already there will always return false. You need to iterate through the list of entities and check if one is an instance of your entities class. And if it is say it cant spawn.
- 
	
		
		[1.12.2] Checking if a player is looking at another player
		
		Yeah and every player tick using the PlayerTickEvent you'll have to update the values.
- 
	
		
		[1.12.2] Checking if a player is looking at another player
		
		You could track it by storing values yes.
- 
	
		
		[1.14.4] Trying to use world capabilities
		
		What have you tried?
- 
	
		
		[1.12.2] Checking if a player is looking at another player
		
		The problem is that the data isn't always the same between clients and the server. Ping an all. You will either have to keep with what you have and have that little leading thing or trust the client with no way to know if they are being cheaty unless you add some sort of check like if the rotation on the server is definitely not what the client says it was.
- 
	
		
		how do i update a mod from 1.7.10 to 12.2
		
		I use Eclipse and I like it. Some others on here use InteliJ IDEA. It's ultimately up to you which IDE you use.
- 
	
		
		[1.14.4] Modifying Vanilla Content
		
		event.getState() will give you the BlockState
- 
	
		
		[1.14.4] Modifying Vanilla Content
		
		Well you know how to get the Item and the ItemStack the player is holding. You can check. Look at the tool Items in Items.class. They have methods you might be able to use. Or you can use instanceof checks.
- 
	
		
		[1.14.4] Modifying Vanilla Content
		
		Does it really matter? Why would they make a mod where you can't progress?
- 
	
		
		[1.14.4] Modifying Vanilla Content
		
		Then you'll want to check if they have a tool that can break the block.
- 
	
		
		[1.14.4] Modifying Vanilla Content
		
		Oops my bad. Use ItemStack#isEmpty so event.getEntityPlayer().getHeldItem(Hand.MAIN_HAND).isEmpty()
- 
	
		
		[1.14.4] Modifying Vanilla Content
		
		Instead use ItemStack.isEmpty(event.getEntityPlayer.getHeldItem(Hand.MAIN_HAND))
- 
	
		
		[1.14.4] Modifying Vanilla Content
		
		It should still work what version are you modding for?
- 
	
		
		[1.12.2] Checking if a player is looking at another player
		
		No I am asking why are you doing this it might not be that complicated. Plus if the player hits another player with damage that isn't potions or an entity like an arrow. They had to have been looking at the player in question unless they are using hacks.
- 
	
		
		On packet send/recieve events
		
		Huh I wonder who gave you advice you just ignored.
- 
	
		
		How to create a custom drink [1.12.2]
		
		
- 
	
		
		[1.14.4] Modifying Vanilla Content
		
		event.getEntityPlayer().getHeldItem(Hand.MAIN_HAND).getItem() == SOME_ITEM_FIELD
- 
	
		
		[1.14.4] Determining if an ItemStack can be smelted (blasted or smoked)?
		
		Agreed that is disgusting. Though I feel that the only viable alternatives at this point is also disgusting. One being to use reflection to access the recipes field or RecipeManager#getRecipes(IRecipeType<?>) in the RecipeManger so you can access the specific list/map of the recipe type you want. Or use the collection given by RecipeManager#getRecipes() and cache the recipes that you have already come across in a separate list/map so as to not iterate over every last recipe ever.
IPS spam blocked by CleanTalk.
									
    
    
								 
				 
					
						 
					
						