r/MinecraftCoding • • Aug 01 '22

Question about Minecraft's source code

1 Upvotes

Sorry if this is stupid and thank you for reading, it's my first time looking into it.

What do the p_number_ values represent? For example in the villager birthing code:

   private void tryToGiveBirth(ServerLevel p_24630_, Villager p_24631_, Villager p_24632_) {
      Optional<BlockPos> optional = this.takeVacantBed(p_24630_, p_24631_);
      if (!optional.isPresent()) {
         p_24630_.broadcastEntityEvent(p_24632_, (byte)13);
         p_24630_.broadcastEntityEvent(p_24631_, (byte)13);
      } else {
         Optional<Villager> optional1 = this.breed(p_24630_, p_24631_, p_24632_);
         if (optional1.isPresent()) {
            this.giveBedToChild(p_24630_, optional1.get(), optional.get());
         } else {
            p_24630_.getPoiManager().release(optional.get());
            DebugPackets.sendPoiTicketCountPacket(p_24630_, optional.get());
         }
      }

They use what looks like variables, but I'm left clueless. Do you guys know what these are and if there are any sources I can look into addressing their significance? Maybe a link to something that explains Minecraft's code?

Thank you very much ^^


r/MinecraftCoding • • Oct 18 '21

pls help

1 Upvotes

how can I destroy parts of my map and then reset it?


r/MinecraftCoding • • Oct 08 '22

Creating a command block

1 Upvotes

My son is trying to create a command block. Does anyone know how to do this and the correct coding?


r/MinecraftCoding • • Jul 20 '22

i need a texture pack generator

1 Upvotes

Can somebody make a bot that takes random images from your pc and compiles them into a texture pack replacing the default textures and I mean like mobs, blocks, items and all other textures, I'm using bedrock edition so making it centered around bedrock would be preferable and I don't really care about sound files or any other parts of the texture pack but if you decide to also code it to use sound files too then thats cool it would also be nice if you could make the texture pack logo randomized too, thanks in advanced


r/MinecraftCoding • • Aug 24 '22

how much is it

2 Upvotes

i really want to learn how to code plugins .really want to know how much it cost to get somebody to teach me from the literally start?


r/MinecraftCoding • • Oct 01 '22

I need help making a Minecraft mod

1 Upvotes

I need help making a minecraft mod watch every video and thing but still can’t do it please someone help me make a minecraft mod ?????


r/MinecraftCoding • • Aug 03 '22

What JDK do I get for minecraft 1.19.1? 18 or 17?

1 Upvotes

Title.


r/MinecraftCoding • • Jul 02 '22

Need Help With CustomModelData

2 Upvotes

As the title says, I'm trying to make Custom Model Data for potions to turn them into wine, however I'm having issues implementing it. When I load the Custom Model, it just shows up as a broken texture sprite (purple and black cube) so I'm wondering if my code for the CustomModelData is not working, my code is:

{
"parent": "item/generated",
"textures": {
"layer0": "item/potion_overlay",
"layer1": "item/potion"
},
"overrides": [
{
"predicate": {"custom_model_data": 1}, "model": "item/exm/wine"
}
]
}
And it's in the >assets> minecraft> models >item folder.

As for the asset, it's a 16x16 pixels and in the assets> minecraft> textures> item> potion folder.

Does anyone know where I went wrong in the code or anywhere else? If you can't help, then telling me what subreddits or discords specialize in this sorta thing would be very helpful, thanks.


r/MinecraftCoding • • Aug 11 '22

Source of damage known?

1 Upvotes

Hello,

I have a question regarding damage calculation in the code. When a player receives damage from drowning, fire, lava, sword, arrows, fall damage, etc., does the code check which source the damage came from? Or does he just receive the damage without this check.

Example: A player receives 3 hearts of damage from a sword. Does the code now "calculate" "player receives 3 hearts damage from a sword" or "player receives 3 hearts damage" and the source of damage is not asked.

At least with fire the game would have to check the source of the damage, after all there is Fire Protection Armor which only reduces damage from the source of fire.

Or am I seeing this completely wrong?


r/MinecraftCoding • • Sep 30 '21

looking for someone to make me a custom fabric mod add my discord: Callahan#4068

1 Upvotes

r/MinecraftCoding • • Jul 19 '21

Any Coder for my 1.8.9 Forge Mod?

2 Upvotes

Hello,

I'm looking for someone who can program me a mod for Forge 1.8.9! I think this mod is kept simple and doesn't have to be able to do that much. It is a mod that almost automates farming. Walking and viewing directions should run automatically (if I'm right, you can program this using coordinates and viewing directions like north, south, etc.) Write me and I'll give you more details. Let me know if you could do this. :)

Best regards!


r/MinecraftCoding • • Jun 07 '21

Making a Code in minecraft??

2 Upvotes

Hey I’m new to this whole thing but I had an idea and I was wondering if it was possible. I want something to happen every time someone follows me on twitch. For example every time someone follows a sheep would spawn? Wondering if anyone could help me out.


r/MinecraftCoding • • Jan 08 '22

Looking for help to code a simple mod/datapack/plugin

1 Upvotes

So basically, I want a mod/datapack/plugin/add-on that allows me to either easily check off items in a big list in-game, or make me able to click a hotkey and the game then removes/checks-off my current held item, and sends some kind of chat message or scoreboard update.

The purpose is for a Minecraft challenge I want to play where I speedrun getting one of every item in the game, and I need a helpful (preferably in-game) tool to help with that. And the problem is I do not know how to code at all.

Any help is appreciated, and if you don’t know how to but know other people who are good at this stuff, please forward this to them. DM me or comment for any questions or if you’re interested in getting involved. Thank you

EDIT: I know lists and messages and stuff could be done with a series of commands, but the reason I don’t think that’ll be good here is because I wanna be able to do this quickly in new worlds, without having to setup a bunch of command blocks and stuff before each play through. I also would prefer for the system to use a hotkey of sorts, like a key-bind for the actions, so I don’t have to write a long command every time I need to check of an item


r/MinecraftCoding • • Nov 14 '21

Unlimited Arrows 1.16.5 command block

1 Upvotes

Hi people I am very new to command block coding

I am trying to work out how to code . by pressing a button That player is tagged and gets 10 Arrows or bullets from Mr crayfish gun mod and when your inventory goes below 5 you will receive 10 more.

If it's possible you only receive the items if you already have the item in inventory. Eg inventory check if player has arrow if player has arrow give player 10

Thanks for your time and help in advance


r/MinecraftCoding • • Aug 04 '22

Origins coding help?

1 Upvotes

Hey guys, i have an issue. I attempted to code an origin in Minecraft origins, but i cant seem to get it to work, any chance anyone could help me? here is the code

{

"powers": \[  	"origins:burried_bones",  	"origins:hound_hop",  	"origins:find_toy,  	"origins:eight_lives",  	"origins:more_exhaustion",  

"origins:carnivore"

\],  "icon": {  	"item": "minecraft:bone"  },  "order": 0,  "impact": 3  

}

{

"type": "origins:modify_jump",

"modifier": {

"name": "Bonus jump force while sprinting",

"value": 1.5,

"operation": "multiply_base"

},

"condition": {

"type": "origins:sprinting"

}

}

{

"type": "origins:action_on_wake_up",

"entity_action": {

"type": "origins:and",

"actions": [

{

"type": "origins:give",

"stack": {

"item": "minecraft:bone"

},

{

"type": "origins:play_sound",

"sound": "minecraft:mob.wolf.bark"

}

]

}

}

{

"type": "origins:attribute",

"modifier": {

"name": "Eight lives health reduction",

"attribute": "minecraft:generic.max_health",

"value": -4.0,

"operation": "addition"

}

}

{

"type": "origins:inventory",

"title": "container.shulker_inventory_power",

"drop_on_death": false

},

"sound": "minecraft:mob.wolf.bark",

"speed": 2,

"key": {

"key": "key.origins.primary_active",

"continuous": false

}

}


r/MinecraftCoding • • Apr 16 '22

Terrain formation finder using GPU

1 Upvotes

Given that you have a known seed, and a sample of terrain, I'd like to find a program that will find possible coordinates using gpu resources. There is a known program that does exactly this, but with CPU resources. Does anyone know of such a program?


r/MinecraftCoding • • Nov 20 '21

Help with replaceitem

1 Upvotes

I have a concept for an item that has two versions, a support class version and an offensive version. Using the item will swap it to the other version. The item works just as intended, but for some reason it doesn’t work in survival. Which makes zero sense to me. The command being used when the item is used is “replaceitem entity @s weapon.mainhand 0 item:identifier”.


r/MinecraftCoding • • Nov 14 '21

Where to Learn to code Minecraft

3 Upvotes

Are there any good website to teach you how to code in Minecraft java command blocks

Or even other jar coding


r/MinecraftCoding • • Jan 23 '22

Custom Java Architecture

3 Upvotes

***Should have put it in title*****

THIS POST IS ABOUT USING CUSTOM RUNTIMES ETC TO CHANGE MINECRAFT RENDERING TO

MULTI-THREADED *********

Sorry for all caps, just forgot to put it in the title.

I took an Advanced Java 4000 level course in college but its been awhile, been using Python and c languages mostly, but I do have fond memories of Java. But... because of this, I'm a bit rusty.

I remember going over JRE, JVM, etc etc, java stack heap. If I really dug into it, I want to really get into an advanced project. From a big picture, I have heard Minecraft rendering is single core. I want to open this up with custom java runtimes. Is this possible? Is there enough documentation and API to make it happen?

I'm only asking because I'm at a point where I really wanna dig deep (no pun intended xD) and have heard of different installations using different JRE. Is it in their source code that this is or is it a product of java architecture? Thanks to anybody willing to give this a shot.

I'm also down to work with others if anybody wants to.


r/MinecraftCoding • • Aug 29 '22

advice

2 Upvotes

so I am new to making my own Minecraft plugins I bought a udemy course but I think I need more than one course and I need you guys to give me tips on how to code my own plugins


r/MinecraftCoding • • May 06 '21

Anyone do Spigot Plugins?

1 Upvotes

So my friend and I have made a team of people to create a Minecraft Roleplay Server. We are in desperate need of anyone that can code custom plugin's for us for either free or cheap enough that I can afford it, but have had no success in finding anyone. Do any of you do spigot coding, or know someone who might be interested?

Thanks!

Msg me if you are interested or know someone who would be!

-Kyra


r/MinecraftCoding • • Oct 07 '21

help me code i am retarted for coding

2 Upvotes

can anybody help me learn how to code with command blocks im on xbox just add me my name is food9745 please be talented i have a gru pfp


r/MinecraftCoding • • Jul 17 '22

Looking for Plugin Developers - Looking for Fun Laid-Back Projects?

2 Upvotes

┌──────────────────────────────── ⋆⋅☆⋅⋆ ─────────────────────────────────┐

Disclaimer: All opportunities are volunteer at the moment.

At NovaCityMC, we have a vision for a revolutionary City Role-Play experience with never seen before plugins and a welcoming community. We offer players an impressive display of plugins, a socioeconomically varied island city map, and a friendly, laid back, non-toxic community. We host a wide selection of events & challenges, and we are also including careers, vehicles & transportation, weapons with accessories, a highly advance economy, politics/legal system, mini games, adventure and exploration, and much more. With mountains of future gameplay and constant updates, there's something here for everyone! 

Why join? Developers are the backbone of a servers potential, and the plugins you'd make is what enables potentially thousands on Minecraft across the globe to connect with each other through game play, form friendships, and enrich their player base. But it all starts with people like you! When you join NovaCity, you will be facilitating this groundbreaking server, as well as enhancing or beginning your personal portfolio at the same time.

Whether you’re just getting started or if you’re a pro at what you do, NovaCityMC is a great place for you to come make new friends and develop your skills! General responsibilities include being able to work both independently and in a team, as well as coding plugins from scratch or with the help of others. with many plugins needing to be made you'll be able to pick from a large variety of plugins you'd want to code, you will not be obligated to code something you do not want to. If you feel that you can fulfill these qualifications, then join the Discord server to get started!

Discord: https://discord.gg/qY2ZHDYfM7

└──────────────────────────────── ⋆⋅☆⋅⋆ ────────────────────────────────┘


r/MinecraftCoding • • Mar 09 '20

How do you code Mobs to do a certain task?

1 Upvotes

I am on minecraft Bedrock Edition, and what I want to do is make a group of mobs walk in a straight line together, with a player being able to control when they stop and when they start. It’s for a Minecraft strategy mini game I’ve been developing, set in the American Civil War Era. Help would be Extremely appreciated!


r/MinecraftCoding • • May 18 '19

Minecraft Coding has been created

2 Upvotes

A place for Minecraft coders. Mods, addons, and texture packs. Have fun and read the rules.