Everything posted by Niprow
-
[1.14.4] What is the best way to remove vanilla recipes?
As far as I know, recipes are inserted into the recipe book by advancements. You just need to "replace" this json file as well.
-
Render model from JSON
obviously not check out: net.minecraftforge.client.model.ModelLoader#addSpecialModel net.minecraft.client.renderer.model.ModelManager#getModel
-
Render model from JSON
Check net.minecraft.client.renderer.tileentity.PistonTileEntityRenderer It should help
-
[1.15.2] RecipeBook stuff
I have my own RecipeType, my own block who can craft the new recipes but now I want them seen in the recipe book in my own container. But when I look at the code for example RecipeBookCategories says "I am an enum and private, looser" and I am not very confident about easy implementation. Do I have to write my own RecipeBook with new Gui and stuff now or is there a clever way?
-
[1.15.2] Render Item on Block
check net.minecraft.client.renderer.ItemRenderer#renderItem out you can get it with Minecraft#getItemRenderer and the minecraft instance just with Minecraft#getInstance
-
[1.15.2] How to get my special Models
And now I have realized that I just called ModelManager#getModel too early. It also works via the ModelManager
-
[1.15.2] How to get my special Models
oh it was so easy: ModelLoader#instance() instead of ModelManager
-
[1.15.2] How to get my special Models
yes, at first they were not, I got an error that the models cannot be loaded. But unfortunately that is not the problem.
-
(1.14.4) Trying to Right-Click Water with an Item to turn it into Ice
have you checked with "System.out.println(<block_state>.getBlock())" or the debugger if you are realy aiming the WaterBlock with the BlockPos? If so try to use <block_state>.getBlock() == net.minecraft.block.Blocks.WATER
-
[1.15.2] How to get my special Models
I have registered my models during the ModelRegistryEvent: @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public static class RegistryEvents { @SubscribeEvent public static void onModelRegistry(net.minecraftforge.client.event.ModelRegistryEvent event) { /* * special models for TileEntityRenderers and other Renderers */ ModelLoader.addSpecialModel(Constants.MDL_SIMPLE_MAGIC_GENERATOR_BASE_ON); ModelLoader.addSpecialModel(Constants.MDL_SIMPLE_MAGIC_GENERATOR_BASE_OFF); } } It is called! And now I want to get the IBakedModel from my models but how? I tried it with the Model Manager and it didn't work: ModelManager manager = Minecraft.getInstance().getModelManager(); base_on = manager.getModel(Constants.MDL_SIMPLE_MAGIC_GENERATOR_BASE_ON); base_off = manager.getModel(Constants.MDL_SIMPLE_MAGIC_GENERATOR_BASE_OFF); if(base_on != manager.getMissingModel()) { //this will not be executed } thanks for help
-
What slot for items is the beacon selector slot?
Do you have access to the corresponding BeaconScreen or BeaconContainer?
-
What slot for items is the beacon selector slot?
So either the containers synchronize this by themselves or it is only displayed and not saved. You can check this by moving items via mod. Then out of the world and back in again. If the items are where you moved them, everything is fine. Sorry for the ambiguity
-
What slot for items is the beacon selector slot?
first: you need access to the server to put items into slots. second: If you're looking for the item it should be stored somewhere in the TileEntity of the beacon.
-
[SOLVED][1.15.2] Strange Lighting with Cutout block
try: @Override public boolean propagatesSkylightDown(BlockState p_200123_1_, IBlockReader p_200123_2_, BlockPos p_200123_3_) { return true; } and please anybody tell me how to insert code in a extra-window
-
[1.15.2] [SOLVED] transparent Block
works - thanks
-
[1.15.2] Custom Entity doesn't spawn
Try the FMLCommonSetupEvent QQ.java
-
[1.15.2] [SOLVED] transparent Block
What do I have to do to get transparent textures into the game? I have overwritten "isTransparent" and "isVaiableOpacity" but it remains grey where it should be transparent. It is a SixWayBlock that I have overwritten. Blockstate and models load normally.
IPS spam blocked by CleanTalk.