Jump to content

Foniks

Members
  • Posts

    4
  • Joined

  • Last visited

Foniks's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thanks for the reply. So I should have mentioned that I am on 1.18.2 - which means Place doesn't exist - I think PlaceFeature is the equivalent. What I am unsure about though - I already have structures correctly spawning as part of the world generation. They are of type StructureFeature. When I try to use the PlaceFeature command in the console - these do not appear in the list of potential features to spawn. So I'm wondering if that is going to be the right path to go down...
  2. Hi! I'm able to export and load a structure so that it is generated as part of the world generation. But I'm wondering how I would go about spawning the same structures from inventory. I'm thinking either creating an item that spawns the structure on right click, or placing a block and clicking on that. But what I am not sure about is how to actually spawn the structure from these events. Any thoughts would be welcome.
  3. Thanks for that - indeed, it compiles now. Do you know of any resources on understanding how to write custom AI for villagers? Seems like there is not much information about?
  4. Hi, I'm having a few issues finding any documentation or examples of how to extend the Villager. The issue I am having is the EntityType.Builder.of call is failing - as the parameters are incorrect. I'm not entirely sure what they should correspond to however. I can find examples of almost every kind... except Villager. Any help would be appreciated. public class TestVillager extends Villager { public TestVillager(EntityType<? extends Villager> pEntityType, Level pLevel, VillagerType pVillagerType) { super(pEntityType, pLevel, pVillagerType); } ... } public class ModEntityTypes { public static final DeferredRegister<EntityType<?>> ENTITY_TYPES = DeferredRegister.create(ForgeRegistries.ENTITIES, VillageShopper.MOD_ID); public static final RegistryObject<EntityType<TestVillager>> TEST_VILLAGER = ENTITY_TYPES.register("testvillager", () -> EntityType.Builder.of(TestVillager::new, MobCategory.AMBIENT) .sized(1.0f, 1.0f) .build(new ResourceLocation(VillageShopper.MOD_ID, "testvillager").toString())); ... }
×
×
  • Create New...

Important Information

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