Everything posted by Beethoven92
-
[1.16.4] How to copy NBT between recipe ingredients and result?
I think you may want to take a look at SpecialRecipe class and its sub classes, to see how vanilla handles things like duplicating banners, cloning written books etc...
-
[1.16.1] Override Beacon/ Beacon TitleEntity
I don't have time to read through all your code but: 1) When you are having no-texture found issues it means that something in your jsons or textures files is not in the place where the game expects it to be, or the files are not correctly written. The game tells you where it tried to find the missing file in the logs. 2) Look at the properties of the vanilla beacon block. If you are replicating the vanilla block you most likely want to copy its properties (also remember to assign it to the correct render layer in your client setup) 3) Vanilla containers do a check to see wheter the player is in proximity in order to be able to open the container. That check i hardcoded for the vanilla block, in that case Blocks.BEACON. You would need to create a custom container extending the beacon container and override the method that does the proximity check to accept your custom beacon block
-
[1.16.4] [Solved] Ore generation using BiomeLoadingEvent
You can register features like you did it before, not sure where you are having troubles. Show the code you tried so far please
-
[1.16.4] [Solved] Ore generation using BiomeLoadingEvent
Events for your mod are fired on two main buses, the mod bus and the forge bus. BiomeLoadingEvent is fired in the latter. Make sure you are subscribing your event handler to the correct event bus
-
When opening my GUI hotbar isn't rendering
You @Override drawGuiContainerForegroundLayer but you make it do nothing (its usually the place where you would want to draw the title of your screen). Also your image is not blitted correctly, see the cut at the bottom?
-
[1.16.4] can i use TileEntityRenderer render item on my chest ?
That would be the purpose of the TileEntityRender...just retrieve the data stored in the tile entity and if you need it you can use it for custom rendering...or is that not what you were asking?
-
How to Open my GUI?
I think you can open you GUI with Minecraft#displayGuiScreen
-
How to make a value for an overrides predicate in a json file to change the model of an item?
You just created a new method called enqueueWork, what diesieben07 meant is to use FMLClientSetupEvent#enqueueWork, take a look inside the FMLClientSetupEvent class and its super classes
-
Villagers don't recognize special type of door as a door.
I think this has something to do with Tags...you should add your door to the WOODEN_DOORS block tag
-
How to make a value for an overrides predicate in a json file to change the model of an item?
You have to register a new property for your item, and make use of it in your item json (as you already saw in the trident json), you can find everything you need in orded to do that in the ItemModelsProperties class
-
Better way of registering Item to register then using ItemBase
You can just specify the item properties when you create the Item, that way you don't need to hardcode them into your custom item class constructor (which reduces flexibility)
-
[1.16] what approach should I take to implement a custom crafting system?
You would need to implement your own IRecipe, its IRecipeSerializer to write/read your recipes and define a new IRecipeType. Notice that you you need to register your recipe serializer, this can be done through registry events or a DeferredRegister<IRecipeSerializer<?>>. You can see an example on how vanilla implements recipes and seralizers by looking at the AbtractCookingRecipe and its subclasses, and the CookingRecipeSerializer class. There should be almost everything you would need in order to implement your custom recipe. Other interesting classes to look at are the SpecialRecipe class and its subclasses
-
[1.16] what approach should I take to implement a custom crafting system?
I guess you would have to make your own custom recipe type for this..could you describe how your custom crafting system would work?
-
[1.16.4] How to change the harvest level of ores
You can subscribe to the PlayerEvent.HarvestCheck and check for both the block that is about to break and the tool your player has in hand. If you decide that a specific tool should not be able to harvest that specific block then the success field of the event should be set to false
-
Minecraft Forge keeps on crashing
If that mod is causing the issue, yes, removing it will stop the issue
-
[1.15.2] How do I make it so you need a tool for logs?
Perhaps you could handle the PlayerEvent.HarvestCheck, check if the block you are about to break is a log block (there should be a block tag for logs) and check if the item you are holding is an axe tool
-
onItemRightClick
Its definitely possible to have an item requiring the player to hold right click for some time in order to use it. Think for example the bow, or foods. You would need to override the method getUseDuration and return the value you want. Then you would need to override the onItemUseFinish method to handle the logic of your item. As for the logic itself, if you want to stun entities in a certain radius from the player you could just use World#getEntitiesWithinAABB and do whatever you want with the Entities that you get from the method
-
[1.14.4] How do I override the Air block?
My bad, i did not even realize..i see you are working with 1.14.4, which, as you may not have noticed, is not supported anymore on this forum. I suggest you update at least to 1.15 if you want to receive support
-
[Solved]Need help rendering fluid inside tank 1.16.4
I am glad you solved the issue by yourself. You may want to share your solution, so other people seeing this post in the future may find it helpful
-
[1.14.4] How do I override the Air block?
Mmmm it seems to me that instead of messing with replacement of the vanilla air block, you could create your own custom "not oxygenized air" block (assuming vanilla air is the oxigenized one), and make that block generate in pockets in the world (replaceing air blocks), or whatever way you want it to generate in the world. I don not know if that solution is suitable for your needs though
-
Minecraft mod errors - Eclipse
Mmmm not sure where is the problem. you have to go inside the folder where your gradle is, open the powershell and run the command above
-
[1.14.4] How do I override the Air block?
How will those Oxygen mechanic reflect on gameplay?
-
Create Mutable Attribute - Entity Creation
GlobalEntityTypeAttributes is a class, take a look inside it. Also: @Override public IPacket<?> createSpawnPacket() { return null; } This should not return null
-
Create Mutable Attribute - Entity Creation
You have to put it inside the GlobalEntityTypeAttributes
-
Failure message: Missing License Information in file Mod File
Have you read what the logs say? If the message is the same as the other people above then solutions were already given. If the error message is not the same as above, i think you should make your own topic and provide debug logs
IPS spam blocked by CleanTalk.