• 0

    posted a message on Server-wide Resource Pack

    Follow up #2: I tried making a mine hut server with the same stuff (dropbox link and sha1) and it worked. The server prompted me and it downloaded correctly. This makes me think that its problem with the server? Anything anyone?

    Posted in: Server Support and Administration
  • 0

    posted a message on Server-wide Resource Pack

    Follow up: I've also tried a media fire link, neither of these seems to work either.


    https\://download1480.mediafire.com/w0ace4uwwykg/2gwgwy0eklkzewz/bubblys_custom_pack.zip


    http://www.mediafire.com/file/2gwgwy0eklkzewz/bubblys_custom_pack.zip/file

    Posted in: Server Support and Administration
  • 0

    posted a message on Server-wide Resource Pack

    Hey there, I was hoping someone could help me out here.


    I have a Minecraft server that I'm trying to add a resource pack to (server-wide) and initially got it working. I used a dropbox link and a sha1 on my server.properties file, and when you joined, the server would ask you to use the resource pack and download it correctly.


    Then, I tried changing the resource pack. I did the exact same things, but when I tried joining, it didn't ask me to download the pack. It didn't show up at all. Anyone know why, and how to fix this?


    Here's the link: https://www.dropbox.com/s/yapzx7eqa7kd9n4/bubblys_custom_pack.zip?dl=1


    Heres the sha1: 9521F0A5FD57EF9D3C234BACCAE37A83168FF805


    Please help!!

    Posted in: Server Support and Administration
  • 0

    posted a message on Errors... Please help!

    Does anyone know how to fix this? I'm still trying to figure this out.

    Posted in: Modification Development
  • 0

    posted a message on Modding Development Help!

    First off, thanks for the reply! It really means a lot.

    Second, I think you were right. I couldn't figure out exactly what the slipperiness should have been, so I just deleted that line. Now it works perfectly. Thanks for pointing that out.

    Posted in: Modification Development
  • 0

    posted a message on Errors... Please help!

    For my mod, I wish to create a block with a custom model, its just a Pebbles block. I've attached a picture showing how it should look like, I made it in MrCrayFish's Model Creator. This is a mod for 1.12.2.


    I'm trying to test out my mod, but whenever I run the game, all I see is pink and black. Can anyone tell me why? Here's any code I have linked to the block. Also, I'm trying to add a custom inventory art, 16 x 16 pixels, but it's not working, only pink and black shows up. If you can, please help! Thanks!


    Code:


    - Item Class Code

    package com.crimsonmatter.thisbubblyboi.objects.blocks;
    
    import com.crimsonmatter.thisbubblyboi.CrimsonMatter;
    import com.crimsonmatter.thisbubblyboi.init.BlockInit;
    import com.crimsonmatter.thisbubblyboi.init.ItemInit;
    import com.crimsonmatter.thisbubblyboi.util.interfaces.IHasModel;
    
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.block.properties.PropertyDirection;
    import net.minecraft.block.state.IBlockState;
    import net.minecraft.inventory.InventoryHelper;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemBlock;
    import net.minecraft.item.ItemStack;
    import net.minecraft.util.BlockRenderLayer;
    import net.minecraft.util.EnumFacing;
    import net.minecraft.util.math.AxisAlignedBB;
    import net.minecraft.util.math.BlockPos;
    import net.minecraft.world.IBlockAccess;
    import net.minecraft.world.World;
    
    public class Pebbles extends Block implements IHasModel {
    
    	public static final AxisAlignedBB PEBBLES = new AxisAlignedBB(0.125D, 0.0D, 0.125D, 0.812D, .062D, 0.938D);
    	
    	public Pebbles(String name, Material material) {
    		super(material);
    		setUnlocalizedName(name);
    		setRegistryName(name);
    		setCreativeTab(CrimsonMatter.CRIMSONMATTERTAB);
    		
    		BlockInit.BLOCKS.add(this);
    		ItemInit.ITEMS.add(new ItemBlock(this).setRegistryName(this.getRegistryName()));
    	}
    	
    	@Override
    	public BlockRenderLayer getBlockLayer() {
    		return BlockRenderLayer.CUTOUT;
    	}
    	
    	@Override
    	public boolean isFullBlock(IBlockState state) {
    		return false;
    	}
    	
    	@Override
    	public boolean isOpaqueCube(IBlockState state) {
    		return false;
    	}
    	
    	@Override
    	public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) {
    		return PEBBLES;
    	}
    	
    	@Override
    	public void registerModels() {
    		CrimsonMatter.proxy.registerItemRenderer(Item.getItemFromBlock(this), 0, "inventory");
    	}
    	
    	@Override
        public boolean canPlaceBlockAt(World worldIn, BlockPos pos)
        {
            return super.canPlaceBlockAt(worldIn, pos) ? this.canBlockStay(worldIn, pos) : false;
        }
    	
    	@Override
        public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos) {
            if(!this.canBlockStay(worldIn, pos))
            {
                worldIn.setBlockToAir(pos);
                InventoryHelper.spawnItemStack(worldIn, pos.getX(), pos.getY(), pos.getZ(), new ItemStack(BlockInit.PEBBLES));
            }
        }
    	
    	private boolean canBlockStay(World worldIn, BlockPos pos) {
            return worldIn.getBlockState(pos.down()).isSideSolid(worldIn, pos, EnumFacing.UP);
    	}
    
    }



    - .json File Code

    {
     "parent": "crimson:items/pebbles_inv"
    }
    
    {
     "textures": {
     "stone": "minecraft:blocks/stone",
     "base": "minecraft:blocks/base"
     },
     "display": {
     "gui": {
     "rotation": [ 90, 0, 0 ],
     "translation": [ 0, 1, 0 ],
     "scale": [ 0.625, 0.625, 0.625 ]
     }
     },
     "elements": [
     {
     "name": "Stone 1",
     "from": [ 3, 0, 3 ], 
     "to": [ 6, 1, 7 ], 
     "faces": {
     "north": { "texture": "#stone", "uv": [ 0, 0, 3, 1 ] },
     "east": { "texture": "#stone", "uv": [ 0, 0, 4, 1 ] },
     "south": { "texture": "#stone", "uv": [ 0, 0, 3, 1 ] },
     "west": { "texture": "#stone", "uv": [ 0, 0, 4, 1 ] },
     "up": { "texture": "#stone", "uv": [ 0, 0, 3, 4 ] }
     }
     },
     {
     "name": "Stone 2",
     "from": [ 7, 0, 8 ], 
     "to": [ 9, 1, 10 ], 
     "faces": {
     "north": { "texture": "#stone", "uv": [ 0, 0, 2, 1 ] },
     "east": { "texture": "#stone", "uv": [ 0, 0, 2, 1 ] },
     "south": { "texture": "#stone", "uv": [ 0, 0, 2, 1 ] },
     "west": { "texture": "#stone", "uv": [ 0, 0, 2, 1 ] },
     "up": { "texture": "#stone", "uv": [ 0, 0, 2, 2 ] }
     }
     },
     {
     "name": "Stone 3",
     "from": [ 10, 0, 3 ], 
     "to": [ 13, 1, 6 ], 
     "faces": {
     "north": { "texture": "#stone", "uv": [ 0, 0, 3, 1 ] },
     "east": { "texture": "#stone", "uv": [ 0, 0, 3, 1 ] },
     "south": { "texture": "#stone", "uv": [ 0, 0, 3, 1 ] },
     "west": { "texture": "#stone", "uv": [ 0, 0, 3, 1 ] },
     "up": { "texture": "#stone", "uv": [ 2, 11, 5, 14 ] }
     }
     },
     {
     "name": "Stone 4",
     "from": [ 10, 0, 11 ], 
     "to": [ 12, 1, 14 ], 
     "faces": {
     "north": { "texture": "#stone", "uv": [ 0, 0, 2, 1 ] },
     "east": { "texture": "#stone", "uv": [ 0, 0, 3, 1 ] },
     "south": { "texture": "#stone", "uv": [ 0, 0, 2, 1 ] },
     "west": { "texture": "#stone", "uv": [ 0, 0, 3, 1 ] },
     "up": { "texture": "#stone", "uv": [ 14, 0, 16, 3 ] },
     "down": { "texture": "#stone", "uv": [ 0, 0, 2, 3 ] }
     }
     },
     {
     "name": "Stone 5",
     "from": [ 2, 0, 12 ], 
     "to": [ 6, 1, 14 ], 
     "faces": {
     "north": { "texture": "#stone", "uv": [ 0, 0, 4, 1 ] },
     "east": { "texture": "#stone", "uv": [ 0, 0, 2, 1 ] },
     "south": { "texture": "#stone", "uv": [ 0, 0, 4, 1 ] },
     "west": { "texture": "#stone", "uv": [ 0, 0, 2, 1 ] },
     "up": { "texture": "#stone", "uv": [ 8, 7, 12, 9 ] },
     "down": { "texture": "#stone", "uv": [ 0, 0, 4, 2 ] }
     }
     },
     {
     "name": "Stone 6",
     "from": [ 7, 0, 14 ], 
     "to": [ 8, 1, 15 ], 
     "faces": {
     "north": { "texture": "#stone", "uv": [ 0, 0, 1, 1 ] },
     "east": { "texture": "#stone", "uv": [ 0, 0, 1, 1 ] },
     "south": { "texture": "#stone", "uv": [ 0, 0, 1, 1 ] },
     "west": { "texture": "#stone", "uv": [ 0, 0, 1, 1 ] },
     "up": { "texture": "#stone", "uv": [ 0, 0, 1, 1 ] },
     "down": { "texture": "#stone", "uv": [ 0, 0, 1, 1 ] }
     }
     },
     {
     "name": "Base",
     "from": [ 2, 0, 2 ], 
     "to": [ 13, 0.1, 13 ], 
     "faces": {
     "north": { "texture": "#base", "uv": [ 0, 0, 11, 0.1 ] },
     "east": { "texture": "#base", "uv": [ 0, 0, 11, 0.1 ] },
     "south": { "texture": "#base", "uv": [ 0, 0, 11, 0.1 ] },
     "west": { "texture": "#base", "uv": [ 0, 0, 11, 0.1 ] },
     "up": { "texture": "#base", "uv": [ 0, 0, 16, 16 ] },
     "down": { "texture": "#base", "uv": [ 0, 0, 16, 16 ] }
     }
     }
     ]
    }
    
    {
     "variants": 
     {
     "facing=up": 
     { 
     "model": "crimson:pebbles" 
     },
     
     "facing=south": 
     { 
     "model": "crimson:pebbles" 
     },
     
     "facing=east": 
     { 
     "model": "crimson:pebbles","y":270 
     },
     
     "facing=west": 
     { 
     "model": "crimson:pebbles","y":90 
     },
     
     "facing=north": 
     { 
     "model": "crimson:pebbles","y":180 
     }
     }
    }

    Also, I've attached my textures setup.


    All related pictures here


    Edit: I've changed the block to a Gravestone, but still want to know how to make a block such as pebbles. it would be great if you could help!

    Posted in: Modification Development
  • 0

    posted a message on Modding Development Help!

    Ok, so since I can't get any help on the Forge Forums since '1.12.2 is no longer a supported format', I came here. Hopefully, someone may be able to help me out. if not, oh well.


    Basically, for my mod that I'm making, I have a block called 'Fairysteel Block'. I've created a 'FairysteelBlock' class for it and set some stuff up, here it is:


    - BlockInit Code

    public class BlockInit {
        public static final List<Block> BLOCKS = new ArrayList<Block>();
        
        public static final Block FAIRYSTEEL_BLOCK = new FairysteelBlock("fairysteel_block", Material.IRON);


    - FairysteelBlock Class Code

    public class FairysteelBlock extends Block implements IHasModel {
    
        public FairysteelBlock(String name, Material material) {
            super(material);
            setUnlocalizedName(name);
            setRegistryName(name);
            setCreativeTab(CrimsonMatter.CRIMSONMATTERTAB);
            setHardness(60);
            setResistance(75);
            setLightLevel(10);
            setLightOpacity(1);
            setDefaultSlipperiness(0f);
            setHarvestLevel("pickaxe", 7);
            setSoundType(SoundType.METAL);
            
            BlockInit.BLOCKS.add(this);
            ItemInit.ITEMS.add(new ItemBlock(this).setRegistryName(this.getRegistryName()));
        }
        
        @Override
        public boolean isFullBlock(IBlockState state) {
            return true;
        }
        
        @Override
        public boolean isFullCube(IBlockState state) {
            return true;
        }
        
        @Override
        public void registerModels() {
            CrimsonMatter.proxy.registerItemRenderer(Item.getItemFromBlock(this), 0, "inventory");
        }
    
    }


    - .json Files code


    {
       "parent": "crimson:block/fairysteel_block"
    }
    
    {
       "parent": "block/cube_all",
       "textures": {
           "all": "crimson:blocks/fairysteel_block"
       }
    }   
    
    {
        "variants": {
            "normal": { "model": "crimson:fairysteel_block" }
        }
    }

    Normally, the block should work fine (Right?).

    But here, what happens is whenever the player walks or runs over or beside the block, they get pushed far away, kinda as if they teleported. Here's a video demonstrating. I've compared it to another block I have called Mystical Stone, although that block works on the BlockBase file I have, I haven't set up a specific class for it.


    https://streamable.com/rx2p3a


    Does anyone know how to fix this? It's really frustrating.



    P.S. I know that IHasModel isn't something you should use (I'm not sure why, though, if you could, please explain), and I'm working on removing it soon. I'm following TurtyWurty's modding tutorial, and he covers that later in the series.

    If you can help me out, thanks!

    Posted in: Modification Development
  • To post a comment, please or register a new account.