Everything posted by HighFox
-
When to use capabilities for Entities
Okay thanks!
-
When to use capabilities for Entities
So there's no need to use them unless you want other mods to be able to access your extra data?
-
When to use capabilities for Entities
Hey all, Just wondering what capabilities should be used for in terms of entities. Are they meant to replace Data Parameters or variables that change a lot? Thanks!
-
When to use world.isRemote
Ok i've got it now, thanks so much!
-
When to use world.isRemote
Ahhhhh okay thanks! So for things like entities and blocks i should be checking if it is true if i want to, for example, add some particles to the world?
-
When to use world.isRemote
Hey all, I've recently realised that I haven't been using world.isRemote at all. I was wondering where exactly I need to be checking for it, because it seems a little inconsistent when looking at vanilla code. Thanks!
-
[1.16.1] Structure separation
Hey all! Anyone know how to go about adding separation settings to custom structures? Thanks!
-
structure spawning on air
You could try checking that all the blocks below the structure are solid before generating it.
-
Line of Particles
Thanks so much! This is super helpful!
-
Line of Particles
Hey all. Just wondering how I would go about adding a line of particles between two points for a short period of time, if at all possible. Thanks!
-
[SOLVED] Weird Smoke Particle
It may be the Advanced Chimneys mod. I am not completely sure though. Check it's config file to be sure.
-
[SOLVED] Weird Smoke Particle
I mean, it's most likely one of the installed mods. I'll look through them and see if I can find the culprit
-
Event for when an entity's body disappears
Thanks for the info! Would I go about it like this? @SubscribeEvent public static void onAttachCapabilities(AttachCapabilitiesEvent<Entity> event) { if (event.getObject() instanceof LivingEntity) { event.addListener(new Runnable() { public void run() { } }); } }
-
Event for when an entity's body disappears
I am looking to spawn special particles at the position of an entity's corpse after it has disappeared and made the poof particles. Currently the LivingDeathEvent, LivingDropsEvent and LivingExperienceDropEvent all trigger as soon as the entity dies, meaning the position of the entity supplied to the event is different to where its corpse lands and turns into smoke particles. Is there an event I can use that would give me the position of an entity's corpse AFTER it has disappeared? Or is there a way to get this position from the events i already mentioned? Or did I miss one?
-
Large, random structure generation
That's fine! Anything helps haha. It shows me how to generate multiple components which is super helpful.
-
Large, random structure generation
Thanks Draco18s! Your code is a lot smaller than that of Mineshafts, Strongholds etc. so it should help me a lot.
-
Large, random structure generation
So I want to create an underground structure that is randomly generated with multiple different templates that all connect, like a mineshaft or a stronghold. I've tried looking at the vanilla code for structures like this that are already in the game, however I can't get my head around how it all works or how I would go about implementing similar techniques. Does anyone know roughly how it works and how I could generate a structure like this, or if there are any examples somewhere I can look at? Thanks in advance!
-
What do the Placement entries do?
Thank you! I'll look into it more then I guess!
-
What do the Placement entries do?
I've been experimenting with making custom biomes lately. I've made custom structures, trees and others. However whenever i need to add a feature to a biome, i need to specify a Placement setting and a config. I have no idea what these are for and what each one does, even after trying to look through them and the calling classes. I think it would be beneficial to know what they do, and which one to use when. Thanks!
-
Help Creating Block Variants
So where would i put that?
-
Help Creating Block Variants
How would I implement a for loop?
-
Help Creating Block Variants
I would much rather not have to register a whole different block for each colour, as I will likely be making a lot more blocks with all the colour variants.
-
Help Creating Block Variants
I've been trying to make a version of the normal bricks with different colour variants, but the best I have been able to do is this: As you can see, it isn't working as intended. The blocks don't seem to work at all in the inventory or when placed. Please help? Log: Block File: Event Subscriber: Client Event Subscriber: Blockstate:
IPS spam blocked by CleanTalk.