Posted April 6, 20187 yr Hey, how do i make a multitexture that isnt limited on 1 block? I have tried some diffrent methods but i just haven't figured it out. Here is how it is https://gyazo.com/4c755034151dded847383d4f81ed4f5b And i want it to be like this https://gyazo.com/e925553a02116011cdf0c21ac1f2d48b instead of this https://gyazo.com/3c22cb5d185fc5ecd527096e709833d9, is it even possible to code that? Here is my block class, have not anything special there atm package com.studiomaker.poweredelements2.blocks; import java.util.EnumSet; import java.util.List; import java.util.Random; import java.util.Set; import javax.annotation.Nullable; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import com.studiomaker.poweredelements2.init.ModBlocks; import com.studiomaker.poweredelements2.util.IHasModel; import net.minecraft.block.Block; import net.minecraft.block.BlockObserver; import net.minecraft.block.BlockRedstoneDiode; import net.minecraft.block.BlockRedstoneRepeater; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyEnum; import net.minecraft.block.properties.PropertyInteger; import net.minecraft.block.state.BlockFaceShape; import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block.state.IBlockState; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.BlockRenderLayer; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumParticleTypes; import net.minecraft.util.IStringSerializable; import net.minecraft.util.Mirror; import net.minecraft.util.Rotation; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.MathHelper; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class Screen extends BlockBase implements IHasModel { private final boolean isOn; public Screen(String name, Material material, boolean isOn) { super(name, material); setSoundType(SoundType.GLASS); setHardness(0.5F); setResistance(0.5F); setTickRandomly(true); this.isOn = isOn; if (isOn) { this.setLightLevel(1.0F); } } }
April 6, 20187 yr So there's this thing called block states and you need to use them to determine which texture frame to display. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
April 6, 20187 yr Author Yeah i know that but then the texture has to be in diffrent timezones or something depending on where they are placed because all animation textures are synced but idk
April 6, 20187 yr Timezone? You can change the blockstate in a tick handler, and I think that would give you a resolution of 1/20 of a second. Not all blocks need to change at once as I believe that block state is working with the block metadata, not the main block instance.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.