Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Krissy

Members
  • Joined

  • Last visited

  1. I have been reading in this forum, and often the suggestion is to look at how minecraft made it.... But how do I get the code? Right now Im interested in how the torch was made...
  2. I have been making a custom block - but when I place it in the world, then it gets xray effect, so I can look through the buttom and into the world. What do I need to do for it to not do that?
  3. A shame, since Im playing with a mod only made to 1.12.2 - and the owner dont have the time to update it to 1.15.... Is the other places, where I can ask abut 1.12?
  4. I have been following an tutorial on adding a custom block to a mod. But when the game starts I cant see the block and /give doesnt work either.... My code: package com.krissy.tutorial.blocks; import com.krissy.tutorial.Main; import com.krissy.tutorial.init.ModBlocks; import com.krissy.tutorial.init.ModItems; import com.krissy.tutorial.util.IHasModel; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.block.material.Material; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import java.util.Objects; public class BlockBase extends Block implements IHasModel { public BlockBase(String name, Material material){ super(material); setUnlocalizedName(name); setRegistryName(name); setCreativeTab(CreativeTabs.BUILDING_BLOCKS); ModBlocks.BLOCKS.add(this); ModItems.ITEMS.add(new ItemBlock(this).setRegistryName(this.getRegistryName())); } @Override public void registerModels() { Main.proxy.registerItemRenderer(Item.getItemFromBlock(this), 0, "inventory"); } } package com.krissy.tutorial.init; import com.krissy.tutorial.blocks.BlockBase; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import java.util.ArrayList; import java.util.List; public class ModBlocks { public static final List<Block> BLOCKS = new ArrayList<Block>(); public static final Block ARTWORK_BLOCK = new BlockBase("artwork_block", Material.CLOTH); } package com.krissy.tutorial.util.handlers; import com.krissy.tutorial.init.ModBlocks; import com.krissy.tutorial.init.ModItems; import com.krissy.tutorial.util.IHasModel; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraftforge.client.event.ModelRegistryEvent; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; @Mod.EventBusSubscriber public class RegistryHandler { @SubscribeEvent public static void onItemRegister(RegistryEvent.Register<Item> event){ event.getRegistry().registerAll(ModItems.ITEMS.toArray(new Item[0])); } public static void onBlockRegister(RegistryEvent.Register<Block> event){ event.getRegistry().registerAll(ModBlocks.BLOCKS.toArray(new Block[0])); } @SubscribeEvent public static void onModelRegister(ModelRegistryEvent event){ for (Item item : ModItems.ITEMS) { if(item instanceof IHasModel) { ((IHasModel)item).registerModels(); } } for (Block block : ModBlocks.BLOCKS) { if(block instanceof IHasModel) { ((IHasModel)block).registerModels(); } } } } blockstates/artwork_block.json: { "variants": { "normal": { "model": "tutmod:artwork_block" } } } models/blocks/artwork_block.json: { "parent": "block/cube_all", "textures": { "all": "tutmod:blocks/artwork_block" } } models/item/artwork_block.json: { "parent": "tutmod:block/artwork_block" }
  5. I like playing with the mod TekTopia and it crashes the game, if you have placed beds from other mods in a "tektopia structure"... So I would like to find all Beds in all mods (except vanilla beds) and disable, that minecraft sees it as a bed.... Can you help med with how I search though mods and check (change) the blocks....

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.