-
Content Count
367 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout BeardlessBrady
-
Rank
Diamond Finder
- Birthday 03/19/1887
Converted
-
Gender
Male
-
Location
Canada
-
Personal Text
Computer Science Student, Modder N00b.
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Ok that makes sense. Last question: What format do I include data into the packetBuffer for the client? For instance if I want to include the BlockPos? https://github.com/Beardlessbrady/Currency-Mod/blob/master-1.16/src/main/java/com/beardlessbrady/gocurrency/blocks/vending/VendingBlock.java#L51-L52
-
I got the new way of registering things working. I want to send the tile entity through my container so I have access to the BlockPos in the container (for sending packets). I'm just not sure how, if I add the tile to the constructor of the container how do I add the tile to the register? https://github.com/Beardlessbrady/Currency-Mod/blob/master-1.16/src/main/java/com/beardlessbrady/gocurrency/init/CommonRegistry.java
-
I am trying to change some stateData via a button in the containerScreen. What is the best way to do that? Should I be using packets to send to the client whenever stateData is changed and back to the server when the client changes it?
-
Ah.. Thats what I get for stopping half way through and not double checking, thanks!
-
While trying to open a gui in my block my console returns with this error: https://pastebin.com/XNYzf9pe Its basically saying that something is null on line 51. I am checking if namedContainerProvider is null and its doubtful the player is null so that means the NetworkHooks is returning null? How does one fix that issue. Below is a link to the line the error is referring to: https://github.com/Beardlessbrady/Currency-Mod/blob/master-1.16/src/main/java/com/beardlessbrady/gocurrency/blocks/vending/VendingBlock.java#L51
-
Ah there ya go! Thanks.
-
Hello, I am having issues registering my tile entity. Here is my code as well as a link to the code in my github. The IDE is complaining that 'TileEntityType.Builder.create' has invalid arguments // Tiles public static final DeferredRegister<TileEntityType<?>> TILE_ENTITY_TYPES = DeferredRegister.create(ForgeRegistries.TILE_ENTITIES, GOCurrency.MODID); public static final RegistryObject<TileEntityType<VendingTile>> TILE_VENDING = TILE_ENTITY_TYPES.register("vending_te", () -> TileEntityType.Builder.create(VendingTile::new, BLOCK_VENDING.get()).build(null)); https://github.com/Beardlessbrady/Currency-Mod/blob/95230ca4ee2d290b3e5f3ef81810a27f73137625/src/main/java/com/beardlessbrady/gocurrency/handlers/CommonRegistry.java#L42-L43
-
I am trying to create a resource pack on mod load. I have everything but creating the default assets, Is there a way to grab an asset file and copy it to the config folder without going through the jar and copy/pasting it?
-
Im looking to generate a resource pack on startup if it hasen't been generated before. There must be a way to generate files in the running environment as thats what the config files are. I assume its fileIO stuff but I am not sure if there is anything special to do it through forge and to get the resourcePack folder location.
-
[1.16.4] Creating Sub items through NBT from config
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
Oh, well that is great information! Thanks for the help. -
[1.16.4] Creating Sub items through NBT from config
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
So is it possible to re fill the item group later on during the FMLCommonSetupEvent like you said? -
[1.16.4] Creating Sub items through NBT from config
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
It seems even isolating it in the #fillItemGroup still has the config coming out null. -
[1.16.4] Creating Sub items through NBT from config
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
Alright, I will abstain from doing any config stuff in the constructor. -
[1.16.4] Creating Sub items through NBT from config
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
To make them appear in the creative menu?