-
Posts
54 -
Joined
-
Last visited
Posts posted by Boy132
-
-
Hello!
I'm trying to overwrite the vanilla recipes for the wooden tools. I have this "wooden_sword.json" inside "resources/data/minecraft/recipes", for example. When checking ingame the recipe hasn't changed. (wooden sword is still crafted with wood instead of the new dirt)
I'm also overwriting the recipe for bread the exact same way (created a file "resources/data/minecraft/recipes/bread.json") and for bread it works.
I also tried it with the stone tools and it also didn't work.
No errors or hints in the logs. I'm using Forge 43.1.1. If you need more information let me know.
Thanks in advance.
-
5 hours ago, urbanxx001 said:
The darkness is associated with ambient occlusion, in your block class you can modify this with:
@Override public float getAmbientOcclusionLightValue(BlockState state, IBlockReader worldIn, BlockPos pos) { return (some float); }
I've found that small values (usually around 0.1F) reduce the dark. Alternatively in your block model json you can disable or enable occlusion with:
"ambientocclusion": true/false
Thank you for your answer! Sadly none of that worked for me, I tried it with 0f, 0.05f, 0.1f and 0.2f (and editing the model json) and the result were the same as before.
-
-
-
-
So I've made a multiblock structure (and basically followed this video: https://www.youtube.com/watch?v=GQRxeJSoUI4) and everything works fine but there are some lighting problems because the model of the controller is bigger than one block (it is 2x2 blocks):
I know that you used to fix this by overriding isFullBlock and later getRenderLayer but both of these methods don't exist anymore. Using
RenderTypeLookup.setRenderLayer(block, RenderType.getCutout())
didn't work either.
-
I have the same problem on 1.16.3 with nearly the same code. Did you find a solution?
-
Figured it out: my custom structures caused the crash. Disabling the structure registration solved the problem.
-
2 minutes ago, poopoodice said:
For me both of your pastes are empty.
Hmm, thats weird...
The logs are attached now.
-
On 9/11/2020 at 10:31 PM, Danebi said:
Show your code and the full debug.log.
-snip-
Full log: https://hastebin.com/kahuqizofe.pl
-
Hello,
I am currently updating my mod from 1.15 to 1.16. Minecraft starts without erros but as soon as I try to join a world or click on "create world" it crashs:
https://hastebin.com/dirihipifo.sql
Is this a minecraft/ forge problem? Or my mods fault?
-
-
25 minutes ago, Scholler said:
So what should I use? Basically every other events work perfectly in that class, except for that one.
There are basically two buses to choose from: https://mcforge.readthedocs.io/en/1.15.x/events/intro/
You can figure it out.
-
First of all this is the wrong section. You would need to post this under "Modding Support".
2 minutes ago, Weirdo said:So i followed a tutorial for custom items for 1.15 (whish is the version i use) and he said to do this in the en_US text file under the lang package:
{
"item.testmod.test_item": "Test Item"
}Make sure it's a .json file and not a normal .txt file. Check if you modid is really testmod and that the registryname of your item is set to test_item.
-
I guess you need to make the constructor public with an access transformer.
-
40 minutes ago, Minecraftian14 said:
So, it would be nice to share how you fixed your problem please. i am also facing similar issues.
This thread is from 2018... please make a new thread for your problem instead of bumping this one.
-
2 minutes ago, Scholler said:
@SubscribeEvent public void onKb(LivingKnockBackEvent e) { System.out.println("event called atleast");
Show your whole class and/ or where you register the event.
-
9 minutes ago, Miqhtie said:
sounds.json which is located in resources/assets/memesounds
{ "giornos_theme": {"category": "ambient","sounds": [{"name": "giornos_theme","stream": false}]} }
You need to put your modid in front of name. ("name": "memesounds:giornos_theme")
9 minutes ago, Miqhtie said:Code to play sound:
player.addChatMessage(new ChatComponentText("New Message >> " + message));
You play your sound by adding a chat message? Okay
-
The interface is just called Command now.
-
Just to be sure: your block of the crop breaks when it turns mature?
Also your spoiler in the post above seems to be broken. (at least for me it says "Advanced issue found")
-
12 minutes ago, DavidM said:
Please don’t post copy-pasta code like this in the future. Others will just copy it without learning anything.
I totally agree with you. I thought in this case it's fine because the code isn't complex at all and there is no real vanilla reference to look at. ^^
-
What do you mean by "change my pseudo"?
-
7 hours ago, superminerJG said:
However, do you have an example (maybe from an existing mod) that I can look at?
This should work:
@Override public boolean hasContainerItem() { return true; } @Override public ItemStack getContainerItem(ItemStack itemStack) { ItemStack stack = itemStack.copy(); if(stack.attemptDamageItem(1, random, null)) { stack.shrink(1); stack.setDamage(0); } return stack; }
EDIT: And of course set the max damage in your item's properties. (maxDamage)
-
Listen to LivingDamageEvent or AttackEntityEvent and apply your logic there.
[1.19.2][Solved] Recipes that overwrite vanilla tools aren't loaded
in Modder Support
Posted
Thank you! Changing the ordering did the trick.
Don't worry. I'm going to use conditional recipes and config values later. The example above was basically just for testing.