-
Posts
687 -
Joined
-
Last visited
-
Days Won
10
Everything posted by Beethoven92
-
[1.16.4] How to copy NBT between recipe ingredients and result?
Beethoven92 replied to bajtix's topic in Modder Support
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
Beethoven92 replied to Luis_ST's topic in Modder Support
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
Beethoven92 replied to GenElectrovise's topic in Modder Support
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
Beethoven92 replied to GenElectrovise's topic in Modder Support
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
Beethoven92 replied to RelativeCommand's topic in Modder Support
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 ?
Beethoven92 replied to zlappedx3's topic in Modder Support
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? -
I think you can open you GUI with Minecraft#displayGuiScreen
-
Villagers don't recognize special type of door as a door.
Beethoven92 replied to ken2020's topic in Modder Support
I think this has something to do with Tags...you should add your door to the WOODEN_DOORS block tag -
Better way of registering Item to register then using ItemBase
Beethoven92 replied to SaltBeard's topic in Modder Support
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) -
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.4] How to change the harvest level of ores
Beethoven92 replied to TK_4217's topic in Modder Support
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
Beethoven92 replied to asahiazumane's topic in Support & Bug Reports
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?
Beethoven92 replied to TK_4217's topic in Modder Support
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 -
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
-
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
Beethoven92 replied to tigres810's topic in Modder Support
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 -
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
-
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
-
How will those Oxygen mechanic reflect on gameplay?
-
Create Mutable Attribute - Entity Creation
Beethoven92 replied to GamingTiger101's topic in Modder Support
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
Beethoven92 replied to GamingTiger101's topic in Modder Support
You have to put it inside the GlobalEntityTypeAttributes -
Failure message: Missing License Information in file Mod File
Beethoven92 replied to arkeN's topic in Modder Support
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