• Recently Browsing

    No registered users viewing this page.

  • Posts

    • After running the installer for client, I get an error message "These Libraries failed to download. Try again." I have already looked through other solutions like running it through command prompt, updating Java to the latest version, firewall settings and restarted my computer. Yet, it still doesn't work. ┬á Here are the contents of the log file. ┬á
    • try compile fg.deobf('org.squiddev:cc-tweaked-1.15.2:1.88.1') idk if that will work but i have mine set up as // at runtime, use the full JEI jar runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}") // Adds ProjectE as Dependency compile fg.deobf(curse.resolveID('projecte', project.projecte_file)) ┬á
    • Override Item#onUpdate┬á(which is called every tick if an instance of the item is in the player's inventory) and check if the isSelected parameter is true (which will be true if the player is holding┬áthe item). If true, the check if the player is crouching (PlayerEntity#isSneaking or something) and apply your effects.
    • I have been experimenting a bit and replaced grass_blocks an stone and it causes strange errors STONE: stone generates fine but caves don't spawn inside the stone GRASS: grass blocks don't generate instead there is just a lighting glitch and when updated spawns a non-textured block that behaves like grass yet the block still┬áshows up in the creative tab and can be placed like normal LEAVES: behaves normally when placed by player but will not be generated by growing trees ┬á this is the method I am using to register these blocks ┬á @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public class RegistryEvents { @ObjectHolder("minecraft:stone") public static final Block STONE_BLOCK = null; @ObjectHolder("minecraft:grass_block") public static final Block GRASS_BLOCK = null; @SubscribeEvent public static void onBlocksRegistry(final RegistryEvent.Register<Block> blockRegistryEvent) { blockRegistryEvent.getRegistry().registerAll ( new Block(Block.Properties.create(Material.ROCK, MaterialColor.STONE).hardnessAndResistance(5.0f, 6.0F).sound(SoundType.STONE)).setRegistryName("minecraft:stone"), new GrassBlock(Block.Properties.create(Material.ORGANIC).tickRandomly().hardnessAndResistance(1.5F).sound(SoundType.PLANT)).setRegistryName("minecraft:grass_block") ); } @ObjectHolder("minecraft:stone") public static final Item STONE_ITEM = null; @ObjectHolder("minecraft:grass_block") public static final Block GRASS_ITEM = null; @SubscribeEvent public static void registerItems(RegistryEvent.Register<Item> event) { event.getRegistry().registerAll ( new BlockItemBase(STONE_BLOCK, ItemGroup.BUILDING_BLOCKS).setRegistryName("minecraft:stone"), new BlockItemBase(GRASS_BLOCK, ItemGroup.BUILDING_BLOCKS).setRegistryName("minecraft:grass_block") ); } } This is the┬á definition of BlockItemBase package com.Blocks; import net.minecraft.block.Block; import net.minecraft.item.BlockItem; import net.minecraft.item.Item; import net.minecraft.item.ItemGroup; public class BlockItemBase extends BlockItem { public BlockItemBase( Block blockIn, ItemGroup itemGroupIn) { super(blockIn, new Item.Properties().group(itemGroupIn)); } } ┬á It seems to me that there is another step in registration that I am missing, unless minecraft's generation┬ácode┬ásurrounding these blocks is inflexible which I hop isn't the case
    • I've already created a custom ore but i want it to generate in the world like other ores would. How would i do this?
  • Topics

  • Who's Online (See full list)