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.

Denis12345

Members
  • Joined

  • Last visited

  1. Denis12345 changed their profile photo
  2. ok so i do not know why it did not work but i just made it a patern and it is good now
  3. no i did not acctualy it was a clean log and yes i forgot to copy
  4. src/resources/data/denmod/recipes
  5. ruby_block.jsob "type": "minecraft:crafting_shaped", "pattern": [ "###", "###", "###" ], "key": { "#": { "item": "denmod:ruby_ingot" } }, "result": { "item": "denmod:ruby_block" } } ruby ingot from ruby block { "type": "minecraft:crafting_shaped", "ingredients": [ { "item": "denmod:ruby_block" } ], "result": { "item": "denmod:ruby_ingot", "count": 9 } } ruby from smelting { "type": "minecraft:smelting", "ingredient": { "item": "denmod:ruby_ore", "item": "denmod:deepslate_ruby_ore" }, "result": "denmod:ruby", "experience": 1, "cookingtime": 225 } ruby_ingot { "type": "minecraft:crafting_shaped", "pattern": [ "###" ], "key": { "#": { "item": "denmod:ruby" } }, "result": { "item": "denmod:ruby_ingot" } }
  6. { "type": "minecraft:crafting_shaped", "ingredients": [ { "item": "denmod:ruby_block" } ], "result": { "item": "denmod:ruby", "count": 9 } } The textures are right the name the drop from it but when i try to craft it back it dose not work
  7. I still dose not render the texture look { "parent": "item/generated", "textures": { "layer0": "den:item/ruby" } } the second { "item.den.ruby": "Ruby" } MAyeby i am doing something wrong agin
  8. ModItems package com.Denis.den.item; import com.Denis.den.den; import net.minecraft.world.item.CreativeModeTab; import net.minecraft.world.item.Item; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; public class ModItems { public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, den.MOD_ID); public static final RegistryObject<Item> RUBY = ITEMS.register("ruby", () -> new Item(new Item.Properties().tab(CreativeModeTab.TAB_FOOD))); public static void register(IEventBus eventBus) { ITEMS.register(eventBus); } } My .mod file package com.Denis.den; import com.Denis.den.item.ModItems; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; // The value here should match an entry in the META-INF/mods.toml file @Mod(den.MOD_ID) public class den { public static final String MOD_ID = "den"; // Very Important Comment public den() { IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); ModItems.register(modEventBus); modEventBus.addListener(this::commonSetup); MinecraftForge.EVENT_BUS.register(this); } private void commonSetup(final FMLCommonSetupEvent event) { } // You can use EventBusSubscriber to automatically register all static methods in the class annotated with @SubscribeEvent @Mod.EventBusSubscriber(modid = MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) public static class ClientModEvents { @SubscribeEvent public static void onClientSetup(FMLClientSetupEvent event) { } } } en_us.json { "item.den.Ruby": "Ruby" } Ruby.json { "parent": "item/generated", "textures": { "layer0": "den:item/Ruby" } } The png name is Ruby.png
  9. I did this but i forgot to inport itemstack so i thought it was wrong
  10. Sorry I forgot to make it java code
  11. This is the code package com.Denis.denmod; import com.Denis.denmod.init.BlockInit; import com.Denis.denmod.init.ItemInit; import net.minecraft.world.item.CreativeModeTab; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; @Mod("denmod") public class Denmod { public static final String MOD_ID = "denmod"; public static final CreativeModeTab Everything= new CreativeModeTab ("Everything") { public ItemStack makeIcon() { return new ItemStack(ItemInit.RUBY.get()); } } public Denmod() { IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus(); ItemInit.ITEMS.register(bus); BlockInit.BLOCKS.register(bus); MinecraftForge.EVENT_BUS.register(this); } } The error is Please insert ";" to complete The fiels Declaration Right at the closing Braket of this: Public static final Creative mode tab

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.