-
Posts
444 -
Joined
-
Last visited
-
Days Won
5
Posts posted by kiou.23
-
-
"pattern": "minecraft:block/essence_block_darkness"
I don't think the minecraft namespace has block/essence_block_darkness
-
you didn't change anything on the build.gradle?
group = 'com.yourname.modid'
change this to be your package name, which by the classes you posted looks to be dmd.dmd.anubis (which isn't a proper package name, you can refer to the comment in the build.gradle to see how to properly name your packages, i.e.: my package name is io.github.jvcmarcenes)
archivesBaseName = 'modid'
change this to be the mod id, and then change every instance of "examplemod" to be your modid
after that refresh the gradle project (intelliJ should show you a symbol of an elephant with a blue reload next to it), and try runData again
-
5 minutes ago, DMD_ said:
Wdym by repo? Extremely sorry for the hassle
a git repo, usually on github
but okay, the last place I can think that the error is in, is in your build.gradle, so if you could post that I can check it
if the problem is not in the build.gradle than you'll need to do some research on how to get a git repo up so that you can share it here
-
looks correct, can you post a repo so we can inspect it and try to replicate the problem?
-
3 minutes ago, DMD_ said:
Ok, sorry for the misunderstanding, here's my code
package dmd.dmd.anubis.data; import dmd.dmd.anubis.AnubisMod; import dmd.dmd.anubis.data.client.ModBlockStateProvider; import dmd.dmd.anubis.data.client.ModItemModelProvider; import net.minecraft.data.DataGenerator; import net.minecraftforge.common.data.ExistingFileHelper; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.GatherDataEvent; @Mod.EventBusSubscriber(modid = AnubisMod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) public class DataGenerators { @SubscribeEvent public static void gatherData(GatherDataEvent event) { DataGenerator gen = event.getGenerator(); ExistingFileHelper existingFileHelper = event.getExistingFileHelper(); gen.addProvider(new ModBlockStateProvider(gen, existingFileHelper)); gen.addProvider(new ModItemModelProvider(gen, existingFileHelper)); } }
looks correct, can you post the ModBlockStateProvider and ModItemModelProvider?
-
1 minute ago, DMD_ said:
yes, but the files don't generate even after checking my code is 100% correct. Also, I don't know why is keeps stopping at "Holder lookups applied: minecraft:worldgen/tree_decorator_type". But then again, I'm awfully new to coding.
if the files aren't generating then I can assure you that your code isn't 100% correct
-
that message is just the process ending, but if your files aren't generating you must be doing something wrong with the data generators, that's why I asked to see your code
-
7 minutes ago, DMD_ said:
I've debunked that I don't believe that this is an error with the code. I believe that IntelliJ is cant fully access something to generate the files.
and how did you "debunk" this?
if you think the problem is with intellij, you can run the runData command from the command prompt to be sure of that
-
post the debug log
how do you expect us to figure out what's your issue from just that?
-
-
On 12/27/2020 at 12:17 PM, Drachenbauer said:
@OnlyIn(Dist.CLIENT)
do not use @OnlyIn, there's no reason for it, it is only meant for the vanilla classes to say what classes don't exist on a distribution
On 12/27/2020 at 12:17 PM, Drachenbauer said:@Mod.EventBusSubscriber(Dist.CLIENT)
I'm pretty sure you need to pass your modid and the event bus to the eventBusSubscriber annotation aswell
also, your issue has more to do with eclipse than forge
-
that's definetelly not how you ask for something
-
Forge 1.10.2 is no longer supported, please update to a modern version of minecraft to receive support
-
54 minutes ago, perromercenary00 said:
<code>
this is not how you post code in the forums (or at least not anymote? perharps it once was, I wouldn't know since I'm quite new here)
55 minutes ago, perromercenary00 said:are NBT reimplemented can i use them to control animations to items and do complicated stuf ?
were NBT ever removed? I don't see why you wouldn't be able to use them
56 minutes ago, perromercenary00 said:what happen to the capabilities system ¿ was discarted
the capibility system is still there, check the documentation for it: https://mcforge.readthedocs.io/en/latest/datastorage/capabilities/
-
36 minutes ago, DMD_ said:
Sorry for the late reply, but no they're not yet generated.
can you post your code, or a repo to it?
-
58 minutes ago, DMD_ said:
it gets stuck at a part and then it says "An existing connection was forcibly closed by the remote host" after a few seconds
are the data files being generated?
-
4 hours ago, Noxxous said:
Hi, sorry I didn't get back to you. I have already created a GUI that isn't great but it opens on right click and I have even put on some redstone detection to allow to charge (repair my item) and I think I want a container because this explanation says that it has progress bar which I assume means it is tickable... I haven't been doing coding a for a while because I have had things going on
https://greyminecraftcoder.blogspot.com/2020/04/containers-1144.htmlyou can use of a tile entity to hold the items and handle the ticking logic, a container just handle the inventory slots and the interface
-
54 minutes ago, blinky000 said:
this post has gone strange.
you sent me to https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe12_item_nbt_animate
I have been working off of that.
what i want to do is: item first click save position && facing , send click get the new position , execute code using those positions.
I'm starting over from the top trying to understand TheGreyGhost code.
Ty for you patience
I think I understand now what you're trying to do, but correct me if I'm mistaken:
you want to store a position in a nbt on an ItemStack when that Item is used, andafterwards, use of the stored values?
you could store a boolean that holds the "state" of the nbt in it, in one state you would store a position, and in the other you would execute something now that you have a position.
I don't know what you can do to clear the nbt when the world is reloaded however, as that's not a common behaviour to expect
-
16 minutes ago, wintermaker said:
Ok, so I have a question about these functions in 1.16.5. I'm trying to do world.setBlock() commands from within an Item use() override. No matter what function I use (setBlockAndUpdate, setBlock with Constants.BlockFlags.DEFAULT, etc) the blocks appear in the client but disappear when interacted with (apart from collusions). If I quit and restart, none of the changes were saved. Blocks replacing other blocks (like grass) go back to the previous block. This is launching from the Forge MDK runClient configuration.
you should make your own threads
16 minutes ago, wintermaker said:Are there contexts from which you're not supposed to update the world? Are you supposed to queue updates for some worker thread/task to handle? Mark things for update?
no
16 minutes ago, wintermaker said:It's almost like a problem passing in immediate variables that get deleted when they go out of scope ... but the few examples I find are using defaultBlockState() and aren't calling new or anything... ?
I can use the ModBlocks.MYBLOCK blocks normally within the game otherwise... as in, place them as in game blocks from creative/survival mode, etc.. they only misbehave from the Item.use() override...
we need to see your code. but don't post it here, make a new thread
-
57 minutes ago, blinky000 said:
Its at the top of the post
this is the top of the post:
On 4/15/2021 at 10:01 PM, blinky000 said:anybody know of some good nbt examples for 1.16
please be clearer
also, if your issue with "nbt examples" has been solved, and now you're facing a different issue, you should make new thread
-
1 hour ago, Galicidious said:
How did you fix it, im also having that problem
make your own thread, post your errors and logs there
-
2 hours ago, blinky000 said:
kiou.23 how could i have the data from the first click if i don't save it?
I have absolutely no clue what it is that you're trying to accomplish
-
IIRC java 8, which is the one needed for Minecraft 1.16.5 and forge, does run on windows XP. however it no longers has official support
I believe you can check this stack overflow topic to see how to get a jre 1.8 on windows xp: https://stackoverflow.com/questions/44401911/window-xp-and-java-8
-
53 minutes ago, blinky000 said:
bad phrasing , when i reload the world, the data from the tag is still there from the last session. Is the a way when a new session is started to have the tag deleted
you could simply not store the data in the first place? then there will be no data when the world loads
[Self Solved] Forge won't create "src/generated" sub-folders and won't load any textures.
in ForgeGradle
Posted
post your build.gradle
also, downgrade to java 8, that's the version that minecraft uses