Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • grossik

grossik

Members
 View Profile  See their activity
  • Content Count

    86
  • Joined

    March 2, 2015
  • Last visited

    October 13, 2020

 Content Type 

  • All Activity

Profiles

  • Status Updates
  • Status Replies

Forums

  • Topics
  • Posts

Calendar

  • Events

Everything posted by grossik

  • Prev
  • 1
  • 2
  • 3
  • 4
  • Next
  • Page 1 of 4  
  1. grossik

    [1.16.1] Slider show "button" behind my text after update from 1.15.2

    grossik replied to grossik's topic in Modder Support

    Yeah. I had to change render...
    • July 8, 2020
    • 2 replies
  2. grossik

    [1.16.1] Slider show "button" behind my text after update from 1.15.2

    grossik posted a topic in Modder Support

    Hi. I update my mod from 1.15.2 to 1.16.1 and in 1.16.1 version I see "button" behind my text. I dont know how this solved Screen init: @Override public void func_231160_c_() { super.func_231160_c_(); this.func_230480_a_(new Slider(this.guiLeft + 84, this.guiTop + 26, 85, 10, new StringTextComponent("Red: "), new StringTextComponent(""), 0, 255, this.container.tile.red, false, true, slider -> { })); this.func_230480_a_(new Slider(this.guiLeft + 84, this.guiTop + 38, 85, 10, new StringTextComponent("Green: "), new StringTextComponent(""), 0, 255, this.container.tile.green, false, true, slider -> { })); this.func_230480_a_(new Slider(this.guiLeft + 84, this.guiTop + 50, 85, 10, new StringTextComponent("Blue: "), new StringTextComponent(""), 0, 255, this.container.tile.blue, false, true, slider -> { })); }
    • July 8, 2020
    • 2 replies
  3. grossik

    [1.15.2] Why my obj model is hollow?

    grossik replied to grossik's topic in Modder Support

    Yeah sorry https://github.com/grossik/FarmCraft/blob/master/src/main/resources/assets/farmcraft/models/block/boiling.blend
    • June 18, 2020
    • 7 replies
  4. grossik

    [1.15.2] Why my obj model is hollow?

    grossik replied to grossik's topic in Modder Support

    https://github.com/grossik/FarmCraft/blob/master/src/main/resources/assets/farmcraft/models/block/boiling.obj
    • June 17, 2020
    • 7 replies
  5. grossik

    [1.15.2] Why my obj model is hollow?

    grossik replied to grossik's topic in Modder Support

    I try recalculate outside (Mesh -> Normals -> Recalculate outside) but not work. I also tried to recalculate inside and set from faces but nothing worked.
    • June 16, 2020
    • 7 replies
  6. grossik

    [1.15.2] Why my obj model is hollow?

    grossik posted a topic in Modder Support

    Hi. I create Blender model, But I don't understand why it's hollow? And JSON is: { "parent": "forge:block/default", "loader": "forge:obj", "model": "farmcraft:models/block/boiling.obj", "flip-v": true, "transform": { "scale": [0.375, 0.375, 0.375], "translation": [0.4, -0.5, 0.4] } } This problem occurs when they start to change model in modeling tab in blender. And if I add a normal cube without changes so it works.
    • June 15, 2020
    • 7 replies
  7. grossik

    [1.15.2] Item texture layer is limited?

    grossik posted a topic in Modder Support

    Hi. I need to use more texture layers for my item, but only 5 layers will load. Minecraft minecraft = Minecraft.getInstance(); ItemColors colors = minecraft.getItemColors(); colors.register((p_210242_0_, p_210242_1_) -> { if(p_210242_0_.getItem() == ItemInit.LABEL.get()) { return ((LabelItem) p_210242_0_.getItem()).getColor(p_210242_0_, p_210242_1_); } return -1; }, ItemInit.LABEL.get()); Item json: { "parent": "item/generated", "textures": { "layer0": "realistic_beer_brewing:items/label/layer0", "layer1": "realistic_beer_brewing:items/label/layer1", "layer2": "realistic_beer_brewing:items/label/layer2", "layer3": "realistic_beer_brewing:items/label/layer3", "layer4": "realistic_beer_brewing:items/label/layer4", "layer5": "realistic_beer_brewing:items/label/layer5", "layer6": "realistic_beer_brewing:items/label/layer6", "layer7": "realistic_beer_brewing:items/label/layer7", "layer8": "realistic_beer_brewing:items/label/layer8" } } Is the number of layers limited or why doesn't it work for me?
    • June 14, 2020
    • 2 replies
  8. grossik

    [1.15.2] Tile entity container transferStackInSlot

    grossik replied to grossik's topic in Modder Support

    Nobody knows?
    • May 21, 2020
    • 2 replies
  9. grossik

    [1.15.2] Tile entity container transferStackInSlot

    grossik posted a topic in Modder Support

    Hello. I have transferStackInSlot method and use hasRecipe for find if itemstack is present in recipe. @Override public ItemStack transferStackInSlot(PlayerEntity playerIn, int index) { ItemStack itemstack = ItemStack.EMPTY; Slot slot = this.inventorySlots.get(index); if(slot != null && slot.getHasStack()) { ItemStack itemstack1 = slot.getStack(); itemstack = itemstack1.copy(); if(index == 2) { if(!this.mergeItemStack(itemstack1, 3, 39, true)) { return ItemStack.EMPTY; } slot.onSlotChange(itemstack1, itemstack); } else if(index != 1 && index != 0) { if(this.hasRecipe(itemstack1)) { if(!this.mergeItemStack(itemstack1, 1, 2, false)) { return ItemStack.EMPTY; } } else if(this.isBucket(itemstack1)) { if(!this.mergeItemStack(itemstack1, 0, 1, false)) { return ItemStack.EMPTY; } } else if(index >= 3 && index < 30) { if(!this.mergeItemStack(itemstack1, 30, 39, false)) { return ItemStack.EMPTY; } } else if(index >= 30 && index < 39 && !this.mergeItemStack(itemstack1, 3, 30, false)) { return ItemStack.EMPTY; } } else if(!this.mergeItemStack(itemstack1, 3, 39, false)) { return ItemStack.EMPTY; } if(itemstack1.isEmpty()) { slot.putStack(ItemStack.EMPTY); } else { slot.onSlotChanged(); } if(itemstack1.getCount() == itemstack.getCount()) { return ItemStack.EMPTY; } slot.onTake(playerIn, itemstack1); } return itemstack; } protected boolean hasRecipe(ItemStack stack) { return this.world.getRecipeManager().getRecipe(MaltingRecipe.RECIPE_TYPE, new Inventory(stack), world).isPresent(); } But hasRecipe return false for all itemstack, but i have recipe who works. Recipe: { "type": "realistic_beer_brewing:malting", "ingredient": { "item": "realistic_beer_brewing:barley" }, "result": { "item": "realistic_beer_brewing:barley_seed" }, "process_time": 200 } Recipe in this tile entity works.
    • May 19, 2020
    • 2 replies
  10. grossik

    [1.15.2] JigsawManager register new structure in village problem

    grossik replied to grossik's topic in Modder Support

    Oh... sorry Yes. If you use VillagerInit#init then it will work for you.
    • May 11, 2020
    • 5 replies
  11. grossik

    [1.15.2] JigsawManager register new structure in village problem

    grossik replied to grossik's topic in Modder Support

    https://github.com/grossik/FarmCraft/blob/master/src/main/java/cz/grossik/farmcraft/test/TestStructures.java
    • May 10, 2020
    • 5 replies
  12. grossik

    [1.15.2] Black shadows in my .obj model

    grossik replied to grossik's topic in Modder Support

    I wanted it over json, but ok... Any good way to split a model? Or will I have to do it for each file separately?
    • May 9, 2020
    • 4 replies
  13. grossik

    [1.15.2] Black shadows in my .obj model

    grossik replied to grossik's topic in Modder Support

    I use 1.15.2-31.1.63 forge version And the problem was that this obj files is too large and render for all 8 blocks... Can I change the start position from which it will be loading obj model?
    • May 9, 2020
    • 4 replies
  14. grossik

    [1.15.2] Black shadows in my .obj model

    grossik posted a topic in Modder Support

    Hello. I have multistructure tile entity with .obj model but If multistructure has created the model have black shadows. I tried to change RenderTypeLookup.setRenderLayer but it didn't solved.
    • May 8, 2020
    • 4 replies
  15. grossik

    [SOLVED] [1.15.2] Why my custom item entity not renderer?

    grossik replied to grossik's topic in Modder Support

    Sorry. I solved this problem. I had rotationPitch and rotationYaw from Entity class not PlayerEntity... Thank you for everything.
    • May 4, 2020
    • 26 replies
  16. grossik

    [SOLVED] [1.15.2] Why my custom item entity not renderer?

    grossik replied to grossik's topic in Modder Support

    float f8 = MathHelper.sin(location.rotationPitch * ((float)Math.PI / 180F)); float f2 = MathHelper.cos(location.rotationPitch * ((float)Math.PI / 180F)); float f3 = MathHelper.sin(location.rotationYaw * ((float)Math.PI / 180F)); float f4 = MathHelper.cos(location.rotationYaw * ((float)Math.PI / 180F)); float f5 = ((float)Math.PI * 2F); float f6 = 0.02F; itementity.setMotion((double)(-f3 * f2 * 0.3F) + Math.cos((double)f5) * (double)f6, (double)(-f8 * 0.3F + 0.1F * 0.1F), (double)(f4 * f2 * 0.3F) + Math.sin((double)f5) * (double)f6); This code drop item around player no in front of the player. Its from PlayerEntity drop
    • May 3, 2020
    • 26 replies
  17. grossik

    [SOLVED] [1.15.2] Why my custom item entity not renderer?

    grossik replied to grossik's topic in Modder Support

    Thank you. I have new problem... The position where item entity spawn is bad I need player position and if I drop item I'll take it back to inventory. (therefore onCollideWithPlayer is empty), and item entity not move like default item entity
    • May 3, 2020
    • 26 replies
  18. grossik

    [SOLVED] [1.15.2] Why my custom item entity not renderer?

    grossik replied to grossik's topic in Modder Support

    I update constructor with position. And I update github ass well. But render still not work
    • May 3, 2020
    • 26 replies
  19. grossik

    [SOLVED] [1.15.2] Why my custom item entity not renderer?

    grossik replied to grossik's topic in Modder Support

    https://github.com/grossik/FarmCraft/blob/master/src/main/java/cz/grossik/farmcraft/entity/FarmCraftItemEntity.java Item for this entity https://github.com/grossik/FarmCraft/blob/master/src/main/java/cz/grossik/farmcraft/item/ItemBarley.java
    • May 3, 2020
    • 26 replies
  20. grossik

    [SOLVED] [1.15.2] Why my custom item entity not renderer?

    grossik replied to grossik's topic in Modder Support

    Yes I know. I forgot send new registration. Sorry public static RegistryObject<EntityType<FarmCraftItemEntity>> ITEM_ENTITY = ENTITIES .register("item_farmcraft", () -> EntityType.Builder.<FarmCraftItemEntity>create(FarmCraftItemEntity::new, EntityClassification.MISC) .size(0.25F, 0.25F) .build(new ResourceLocation(Main.MOD_ID, "item_farmcraft").toString()));
    • May 3, 2020
    • 26 replies
  21. grossik

    [SOLVED] [1.15.2] Why my custom item entity not renderer?

    grossik replied to grossik's topic in Modder Support

    This item: package cz.grossik.farmcraft.item; import cz.grossik.farmcraft.entity.FarmCraftItemEntity; import cz.grossik.farmcraft.init.EntityInit; import net.minecraft.entity.Entity; import net.minecraft.entity.item.ItemEntity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class ItemBarley extends Item { public ItemBarley(Properties properties) { super(properties); } @Override public boolean hasCustomEntity(ItemStack itemstack) { return true; } @Override public Entity createEntity(World world, Entity location, ItemStack itemstack) { return new FarmCraftItemEntity(EntityInit.ITEM_ENTITY.get(), world); } }
    • May 3, 2020
    • 26 replies
  22. grossik

    [SOLVED] [1.15.2] Why my custom item entity not renderer?

    grossik replied to grossik's topic in Modder Support

    package cz.grossik.farmcraft.entity; import cz.grossik.farmcraft.init.ItemInit; import net.minecraft.entity.EntityType; import net.minecraft.entity.item.ItemEntity; import net.minecraft.item.ItemStack; import net.minecraft.network.IPacket; import net.minecraft.world.World; import net.minecraftforge.fml.network.NetworkHooks; public class FarmCraftItemEntity extends ItemEntity { public FarmCraftItemEntity(EntityType<? extends ItemEntity> p_i50217_1_, World p_i50217_2_) { super(p_i50217_1_, p_i50217_2_); } @Override public IPacket<?> createSpawnPacket() { return NetworkHooks.getEntitySpawningPacket(this); } @Override public void tick() { System.err.println("tick"); if(this.isInWater()) { System.err.println("water"); ItemStack newItemStack = new ItemStack(ItemInit.soaked_barley.get()); ItemEntity newItem = new ItemEntity(this.world, this.getPosition().getX(), this.getPosition().getY(), this.getPosition().getZ(), newItemStack); this.world.addEntity(newItem); this.remove(); } super.tick(); } }
    • May 3, 2020
    • 26 replies
  23. grossik

    [SOLVED] [1.15.2] Why my custom item entity not renderer?

    grossik replied to grossik's topic in Modder Support

    But still doesnt work
    • May 3, 2020
    • 26 replies
  24. grossik

    [SOLVED] [1.15.2] Why my custom item entity not renderer?

    grossik replied to grossik's topic in Modder Support

    This is correct? @Override public IPacket<?> createSpawnPacket() { return NetworkHooks.getEntitySpawningPacket(this); }
    • May 3, 2020
    • 26 replies
  25. grossik

    [SOLVED] [1.15.2] Why my custom item entity not renderer?

    grossik replied to grossik's topic in Modder Support

    Because I test this Ok this: package cz.grossik.farmcraft.entity; import cz.grossik.farmcraft.init.ItemInit; import net.minecraft.block.material.Material; import net.minecraft.entity.EntityType; import net.minecraft.entity.item.ItemEntity; import net.minecraft.item.ItemStack; import net.minecraft.network.IPacket; import net.minecraft.network.datasync.DataParameter; import net.minecraft.network.datasync.DataSerializers; import net.minecraft.network.datasync.EntityDataManager; import net.minecraft.network.play.server.SSpawnObjectPacket; import net.minecraft.world.World; public class FarmCraftItemEntity extends ItemEntity { private static final DataParameter<ItemStack> ITEM = EntityDataManager.createKey(FarmCraftItemEntity.class, DataSerializers.ITEMSTACK); public FarmCraftItemEntity(EntityType<? extends ItemEntity> p_i50217_1_, World p_i50217_2_) { super(p_i50217_1_, p_i50217_2_); } @Override protected void registerData() { this.getDataManager().register(ITEM, ItemStack.EMPTY); } @Override public IPacket<?> createSpawnPacket() { return new SSpawnObjectPacket(this); } @Override public void tick() { System.err.println("tick"); if(this.isInWater()) { System.err.println("water"); ItemStack newItemStack = new ItemStack(ItemInit.soaked_barley.get()); ItemEntity newItem = new ItemEntity(this.world, this.getPosition().getX(), this.getPosition().getY(), this.getPosition().getZ(), newItemStack); this.world.addEntity(newItem); this.remove(); } super.tick(); } }
    • May 3, 2020
    • 26 replies
  • Prev
  • 1
  • 2
  • 3
  • 4
  • Next
  • Page 1 of 4  
  • All Activity
  • Home
  • grossik
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community