Everything posted by scientistknight1
-
[1.20.1] Player capabilities wont save after death/when exiting the end.
There ought to be a Kaupenjoe video talking about how to do this, have you looked into that? If I remember correctly the video adds a "thirst" system but it ought to be trivial to adapt.
-
textures not working in my mod
If that's what's happening, then you've likely either misnamed your block (i.e. it's not actually named alotoblock:shaved_oak_planks) or messed up the JSONs. Check the logs, there should be a line somewhere about any missing/incorrect models/textures.
- [1.19.2] Black texture in transparent textures
- [1.19.2] Black texture in transparent textures
- Best logic to handle a block that is bigger than 1 block?
- Best logic to handle a block that is bigger than 1 block?
-
Variant of existing mob help (1.20.1)
As far as I know, it's impossible to get the animations of vanilla entities and use them for modded ones. However, you could try extending the class of the vanilla entity and using the same renderer with a different texture. That essentially tells Minecraft to reuse the same hardcoded animations.
-
[SOLVED] - [1.20.1] Render Custom Trident Item 3D in hand and 2D in inventory
https://www.youtube.com/watch?v=Ph50e-TSUVU
-
How would I add a tool without a recipe?
Simply don't add a recipe. It doesn't automatically generate one unless you put the tool/weapon's recipe in the datagen. The ingredient listed in the material type is just the repair ingredient.
-
How would I add a tool without a recipe?
Which tutorial are you using?
-
Cant figure out how to use a block as a fuel source
Yes, it's just an alternate way of registering blocks. For your example there, you'd just change it to: public static final RegistryObject<Block> Coal_Crystal_Block = registerFuelBlock("coal_crystal_block", () -> new Block(BlockBehaviour.Properties.copy(Blocks.COAL_BLOCK).strength(2f).requiresCorrectToolForDrops() .sound(SoundType.STONE).explosionResistance(4)), 16000); The parts in bold are additions. I hope this helps.
-
Cant figure out how to use a block as a fuel source
You'd just use this function to register your blocks that you want to be fuels, instead of registerBlock. That's all.
-
I feel stuck...
The star just means "import everything from this module", that's normal. Try adding unlockedBy triggers for your two juice recipes, like you have with the block. That will probably fix the problem.
-
Cant figure out how to use a block as a fuel source
You need to override the burn time of the corresponding BlockItem, like with this code to register a block that can be used as fuel: private static <T extends Block> RegistryObject<Item> registerFuelBlockItem(String name, RegistryObject<T> block, int burnTime) { return ModItems.ITEMS.register(name, () -> new BlockItem(block.get(), new Item.Properties()) { @Override public int getBurnTime(ItemStack itemStack, @Nullable RecipeType<?> recipeType) { return burnTime; } }); }
-
I feel stuck...
Can you post your recipe generation class? You might have forgotten to add the advancement trigger, that part is a bit tricky.
-
DataGen: Help with multiple items for a recipe.
Just add another .requires after the first one. You can even specify how many should be needed. In your case, that would look like: ShapelessRecipeBuilder.shapeless(RecipeCategory.MISC, ModItems.LEMON_JUICE.get(), 4) .requires(ModItems.LEMON.get()) .requires(Items.GLASS_BOTTLE, 4) .save(pWriter);
- [SOLVED] Custom Portal Works Correctly In Development Environment But Crashes In Production Environment
-
How do I make a drink item?
All I know is what I've told you; I can't help more without inspecting the entirety of your code, and I think you'd probably learn the most from working this problem out yourself at this point. If you're still confused, try finding some other tutorials for modding; if you don't understand what the code is doing, try looking for Java tutorials. I hope this helps.
-
How do I make a drink item?
To add the item to the creative mode tab, you'll need to reference the item you registered in ModItems ( ModItems.LEMON_JUICE.get() ). The ModDrinks class is only ever used when creating your item.
-
Need help on .setHealth [1.20.1]
To ensure that the entity drops resources in the usual way, try using the .kill() method instead of .setHealth(int); that should work better. Try making your class extend SwordItem to use all the standard sword infrastructure. Just make sure to add super calls at the top of all methods you override if you want to keep the existing behavior as well.
-
Need help on .setHealth [1.20.1]
It looks like you're only setting the health if the thing you are hitting is a player.
-
How do I make a drink item?
It sounds like you accidentally have two items that are both named "orange". Ensure that you give items unique names in the string when you register them. That's one of the more annoying errors to track down if you don't know what's causing it, though.
- Where is the jump boost class?
-
Item Equip animation plays when updating nbt
The method to override is shouldCauseReequipAnimation.
-
Export to zip not available
Try using the build task to compile it into a runnable mod, if that's what you want. If you just want to copy the entire mod into a zipped folder, you can do that in your computer's file explorer. If you're on Windows, just go to the directory you're using and zip up the whole folder. Name it whatever you want.
IPS spam blocked by CleanTalk.