MFMods
Members-
Posts
370 -
Joined
-
Days Won
13
Everything posted by MFMods
-
yes, you can use bfs. what are you trying to do?
-
did you examine NearestAttackableTargetGoal? it seems to me that it uses follow range, but i'm not going to do deep investigation instead of you.
-
If you need to loop through positions in world, use a single BlockPos.MutableBlockPos, not a bunch of BlockPos objects. there should be player.blockPosition method.
-
if you want a vanilla book and quill, just with prepared text, that just NBT attached to an itemstack. itemstack has getOrCreateTag method. use it to get the tag, then add data into it. if you want pictures, etc. it's best that you use existing mods as a dependency/library. for example guidebook mod (looks best, a little iffy when you change gui size) or patchouli (i don't like the visuals - too "computery" - but it's quite robust).
-
i'm not 100% sure, but try setting FOLLOW_RANGE attribute to a different value when you set attributes.
-
(1.16.5 MCP) spawn my entity looking at me or the opposite
MFMods replied to ElTotisPro50's topic in Modder Support
i don't know what's it called in mapping you use. sorry. go to boat entity class and look inside the method that matches passenger rotation to boat rotation (about two thirds into the file). -
(1.16.5 MCP) spawn my entity looking at me or the opposite
MFMods replied to ElTotisPro50's topic in Modder Support
when you activate the item, print out yBodyRot value into console. -
(1.18.1) How do I get goals to trigger more often
MFMods replied to yeetsche420's topic in Modder Support
before anything else, EatCropGoal should have higher priority than MoveToCropGoal. if both could theoretically execute, main goal should execute. -
[1.16.5] How to change item texture of custom block?
MFMods replied to J3ramy's topic in Modder Support
some vanilla blocks have a 2d item image. look at brewing stand. -
in a recent thread, @diesieben07 said: can you please provide a short explanation? first of all: why? second: all entities or under some conditions? related: why do my custom entities seem okay without it? i'm asking because we do not have proper instructions for custom entities, so this might me a moment to clarify this bit.
-
How can i initialize the moment, when item collises fire block.
MFMods replied to Trahatron3000's topic in Modder Support
if you make your own ItemEntity, you can control how it behaves when it takes fire damage - cancel the damage and do your recipe thing... so, how do we make an instance of ItemEntity for an item being dropped or otherwise created in world? depends. if it's your item, just override createEntity and you're done. parameter defaultEntity is an entity that would normally be created - get position from it, maybe movement too (DeltaMovement). if it's not your item you need to use an event to make your own ItemEntity. it's not too difficult. but it will conflict with other mods doing the same thing. for example mods that make items lie flat on the ground, etc... those stupid mods will rudely break your mod's functionality, but for start just document that as incompatibility and move on. -
if you're lucky, you just forgot a row saying "shade": false, in one of the model jsons. check that first.
-
pehkui mod forge 1.16.5 Bug Or Something?
MFMods replied to Zombee852's topic in Support & Bug Reports
contact the mod author, then. -
sorry, setting up modded minecraft is not just "double click a weird file you downloaded and everything works on its own". what file did you download? what is the output when you run it through command prompt? (look up how to run a jar through command prompt) do you have mojang account or a microsoft account (having purchased the minecraft java edition)?
-
try the magnesium mod. i know it's in alpha, and i know some people here heavily frown upon performance mods but on 1.16 (i haven't played 1.18), performance mods tripled my fps with zero issues. your mileage may vary. give it a try. other than downgrading to 1.16, i'd have no other ideas.
-
there is a "dependencies" section in build gradle. did you update that? if not, download MDK for the new version, compare two build.gradle files and update old one.
-
Making Custom Mobs (Entities like Zombies) help!
MFMods replied to IngeniousCoders's topic in Modder Support
there is 1.16 to 1.18 translation below the main part. -
react to neighbour change in your block class. check the block below. if it's the same block, set the opened/closed state to the state of the block below. on use (right click) do not change state right away - iterate down and change state of the bottommost block.
-
[1.16.5] Why won't my mobs spawn properly/at all?
MFMods replied to SapphireSky's topic in Modder Support
category is what we want 90% of the time. if event.Category==SWAMP then event.spawner.add(new thingy) result is - mob spawns in all swamps, even those added by other people. if you want the opposite, to spawn a bird in single exact type of a forest, BiomeLoadingEvent has a name field. -
What kind of ripoff POS did I download?!!?!?
MFMods replied to LunarAntic's topic in Support & Bug Reports
uninstall 32bit java (unless you need it and you know why you need it) and install 64bit java (java 1.8 for mc 1.16). https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u302-b08/OpenJDK8U-jre_x64_windows_hotspot_8u302b08.msi -
What kind of ripoff POS did I download?!!?!?
MFMods replied to LunarAntic's topic in Support & Bug Reports
try giving the game more memory (since you decided you need hundreds of mods from the start). in multimc, click settings button, then java page. also try without fairy lights and see if that fixes the problem. -
[1.16.5] Why won't my mobs spawn properly/at all?
MFMods replied to SapphireSky's topic in Modder Support
great, but you should have used this to clean up the mess you made while trying to figure things out. one example - BiomeLoadingEvent - don't iterate through all biomes; you have an exact biome in the event object.