zenek1290
-
Posts
13 -
Joined
-
Last visited
Posts posted by zenek1290
-
-
Ok, locate function is working with my structure, but no blocks are added to the world.
-
-
-
Ok, this is what I came up to.
Good is that I finally was able to register my structure.
Structure is still not generating in overworld.
And I still got this Info in console,
[16:54:30] [Client thread/DEBUG] [ne.mi.re.ObjectHolderRef/]: Unable to lookup examplemod:cube_structure for public static net.minecraft.world.gen.feature.structure.Structure com.example.examplemod.world.gen.ModStructureTypes.CUBE_STRUCTURE. This means the object wasn't registered. It's likely just mod options.
-
So how can I register my structure?
- 1
-
Here is what i came up to, but my code isn't working, I started looking for some code examples on github but it's still wasn't enough.
CubePiece.java CubeStructure.java ModStructureTypes.java ExampleMod.java
-
Hi, recently I was looking for some Strucutre Generation Tutorial for 1.14.4, but sadly there is none. 1.14.4 Structure Generation is totally different from 1.12.2. Can You guys help me with this?
-
│ ├── assets
│ │ └── dungeons
│ │ ├── models
│ │ │ └── item
│ │ │ └── example_item.json
│ │ └── textures
│ │ └── item
│ │ └── example_item.png
-
1 hour ago, zenek1290 said:
Yes, this is nested folder
I was wrong, it was different folder, my error is gone. Thanks for Your support.
-
Yes, this is nested folder
-
53 minutes ago, Ugdhar said:
I believe it should be textures.item package, no s at the end.
I tried it, but sadly it's not a solution.
-
Hi Guys, I recently started making minecraft mods and came up to my first problem that I cannot resolve...
Problem is with loading texture of an item to the game.
Here is my code and file tree.
File Tree
. ├── main │ ├── java │ │ └── com │ │ └── zenek1290 │ │ ├── Dungeons.java │ │ └── ModEventSubscriber.java │ └── resources │ ├── META-INF │ │ └── mods.toml │ ├── assets │ │ └── dungeons │ │ └── models │ │ └── item │ │ └── example_item.json │ ├── assets.dungeons.textures.items │ │ └── example_item.png │ └── pack.mcmeta └── test ├── java └── resources
ModEventSubscriber.java
package com.zenek1290; import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.registries.IForgeRegistryEntry; @Mod.EventBusSubscriber(modid = Dungeons.MODID, bus = Mod.EventBusSubscriber.Bus.MOD) public final class ModEventSubscriber { @SubscribeEvent public static void onRegisterItem(RegistryEvent.Register<Item> event) { event.getRegistry().registerAll( setup(new Item(new Item.Properties()), "example_item") ); } public static <T extends IForgeRegistryEntry<T>> T setup(final T entry, final String name) { return setup(entry, new ResourceLocation(Dungeons.MODID, name)); } public static <T extends IForgeRegistryEntry<T>> T setup(final T entry, final ResourceLocation registryName) { entry.setRegistryName(registryName); return entry; } }
example_item.json
{ "parent": "item/generated", "textures": { "layer0": "dungeons:items/example_item" } }
Custom Structures Generation in 1.14.4
in Modder Support
Posted
I have no clue what can I do to make it work...
ExampleMod.java
ModStructureTypes.java
ModStructurePieces.java
CubeStructure.java
CubePiece.java