-
IItemHandler capability restrict slot access like ISidedInventory
Ok its working thanks.
-
IItemHandler capability restrict slot access like ISidedInventory
How do i restrict access to certain slot with the new IItemHandler capability Before you would have @Override public int[] getSlotsForFace(EnumFacing side) { return new int[]{0,1,2,3,4}; } to allow hopper or other blocks accessing only certain slots and still be able to access all of them as a player with the gui and container. Now with IItemHandler i can restrict some slot but it restrict them for player and blocks.
-
[1.10.2] TESR makes texture dark.
To render dynamic fluid level
-
[1.10.2] TESR makes texture dark.
Just found a solution : int li = t.getWorld().getCombinedLight(t.getPos(), 15728640); int i1 = li % 65536; int j1 = li / 65536; OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float) i1, (float) j1); With the opaque set to true so it doesnt let the light pass through
-
[1.10.2] TESR makes texture dark.
The problem is with isOpaqueCube in the block class. When you set it to true it make the things you render in theTESR dark. Its linked to ambient occlusion. Setting it to false make the TESR fine but the problem is that i want my block to be opaque for it to not let light pass through.
-
[1.10.2] TESR makes texture dark.
allready tried with GlStateManager.disableLighting() or GL11.glDisable(GL11.GL_LIGHTING), it make the quad rendered a bit less dark but still really dark.
-
[1.10.2] TESR makes texture dark.
I have the same issues do you have any new clue about the issue?
-
[1.10.12] Disable swappinp hand (F key) on item
Yeah but its not a safe state solution . I just watched in the minecraft code there is no event fired or function called maybe forge guys should add a hook.
-
[1.10.12] Disable swappinp hand (F key) on item
Is there a function or an event to handle the swapp of an item when you press f ? I have an item that you sould not be able to swapp between hand depending on nbt data.
-
[1.10] Rendering model variant Gui transformation
I have a block with this block state { "forge_marker": 1, "defaults": { "transform":{ "gui":{ "rotation": { "x":120 }, "translation": [ 0, 0.2, 0], "scale": 1.2 } }, "textures":{ "#inductor-base": "sfartifacts:blocks/inductor-base", "#inductor-staff": "sfartifacts:blocks/inductor-staff" }, "model": "sfartifacts:inductor-base.obj" }, "variants": { "normal": [{ "submodel": { "staff": { "model": "sfartifacts:inductor-staff.obj" } } }], "inventory": [{ "submodel": { "staff": { "model": "sfartifacts:inductor-staff.obj" } } }], "type_tech": { "basic": { "submodel": { "staff": { "model": "sfartifacts:inductor-staff.obj" } }, "textures": { "#inductor-staff": "sfartifacts:blocks/inductor-staff" } }, "advanced": { "submodel": { "staff": { "model": "sfartifacts:inductor-staff.obj" } }, "textures": { "#inductor-staff": "sfartifacts:blocks/inductor-staff1" } }, "basicenergized": { "submodel": { "staff": { "model": "sfartifacts:inductor-staff.obj" } }, "textures": { "#inductor-staff": "sfartifacts:blocks/inductor-staff2" } }, "advancedenergized": { "submodel": { "staff": { "model": "sfartifacts:inductor-staff.obj" } }, "textures": { "#inductor-staff": "sfartifacts:blocks/inductor-staff3" } } }, "all_facing": { "down": {"x":90}, "up": {"x":270}, "north": {}, "south": {"y":180}, "west": {"y":270}, "east": {"y":90} } } } The issue is the gui in inventory rendering. I try two method to register the 4 differents variants (basic , advanced, basicenergyzed, advancedenergyzed). First one : Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(..itemFB.., 0, new ModelResourceLocation(Ressources.MODID+":ul_block_name", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(..itemFB.., 1, new ModelResourceLocation(Ressources.MODID+":ul_block_name", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(..itemFB.., 2, new ModelResourceLocation(Ressources.MODID+":ul_block_name", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(..itemFB.., 3, new ModelResourceLocation(Ressources.MODID+":ul_block_name", "inventory")); This method register 4 item with the gui transformation right but they are all with the same textures Second one Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(..itemFB.., 0, new ModelResourceLocation(Ressources.MODID+":ul_block_name", "all_facing=up,type_tech=basic")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(..itemFB.., 1, new ModelResourceLocation(Ressources.MODID+":ul_block_name", "all_facing=up,type_tech=advanced")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(..itemFB.., 2, new ModelResourceLocation(Ressources.MODID+":ul_block_name", "all_facing=up,type_tech=basicenergyzed")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(..itemFB.., 3, new ModelResourceLocation(Ressources.MODID+":ul_block_name", "all_facing=up,type_tech=advancedenergyzed")); This method register 4 item with the right textures but the gui transformation are not take into acocunt. Am i doing something wrong or is there a way that i dont know to have all you desired variant with the textures you want and the right gui transformation ?
-
[1.8.9] rotation submodel in TESR or other solutions?
Woops literaly just found it 10sec after posting https://gist.github.com/RainWarrior/964ed4692f4da1fd4964 lol.
-
[1.8.9] rotation submodel in TESR or other solutions?
Do you have any link or any ideas on how the formating of the parameters section works? "parameters": { "world_to_cycle": [ "/", "#cycle_length" ], "round_cycle": [ "compose", [ "R", "#cycle_length" ] , "#click_time" ], "end_cycle": [ "-", "#round_cycle" ] } im guessing that "round_cycle" is a cycle where it apply a rotation of "#cycle_length" during "#click_time" on the model, iam maybe totaly wrong that is why i need a documentation.
-
[1.8.9] rotation submodel in TESR or other solutions?
i have a this model.json : { "forge_marker": 1, "defaults": { "textures":{ "#t-base": "mymodid:blocks/t-base", "#t-staff": "mymodid:blocks/t-staff" } }, "variants": { "all_facing=up": [{ "model": "mymodid:t-base.obj", "submodel": { "staff": { "forge_marker": 1, "model": "mymodid:t-staff.obj" } }, "x":270 }], .... } } This model is attach to a block with a tile entity. I want the submodel staff to rotate depending on a value stored in my tile entity so i use a TESR, but i dont know how to select only the quads from the staff submodel or maybe there is another way than using TESR to do that?
-
[1.8.9] variants rotations on OBJ model
thanks it works perfectly!
-
[1.8.9] variants rotations on OBJ model
I have a block with facing state and cutom OBJ model, i cannot figure how to rotate the different variants, i tried to put "y"=angle everywhere and its not working, btw my block is not a tile entity. { "forge_marker": 1, "defaults": { "textures": { "#None": "mymodid:blocks/controlpanel" }, "model": "mymodid:controlpanel.obj" }, "variants": { "facing=north": [{"y":180}], "facing=south": [{"y":90}], "facing=east": [{"y":0}], "facing=west": [{"y":270}], "facing=up": [{}], "facing=down": [{}], "normal": [{}], "inventory": [{ "transform": { "translation": [ 0, 0, 0], "scale": 1.0 } }] } } I don t know if there is another method to specify variants rotation ?
IPS spam blocked by CleanTalk.