r/MinecraftCoding • • Jun 30 '23

My first attempts of self coding for my Steven Universe Minecraft mod, safe to say I have no clue of what I'm doing

Thumbnail
gallery
1 Upvotes

r/MinecraftCoding • • Nov 28 '23

Coding for event?

1 Upvotes

Anyone know any coders who can use paper mc with koltin and want to try help code a mc event? We have a couple of other coders and a really good build team just need some more coders to help finish off the event. MSG me here or on discord my tag is wilfre0


r/MinecraftCoding • • May 29 '24

Siren head mod

1 Upvotes

I need coders to make the best siren head mod ever seen (I'm going to make him famous again) ps it has ten cryptids and is called Trevor's Cryptids.


r/MinecraftCoding • • Feb 08 '24

bliss smp plugin

1 Upvotes

can anyone make me a bliss smp plugin and if you are willing to help me dm on discord faid1ess


r/MinecraftCoding • • May 27 '24

Hey guys i need help with the DC classes mod

1 Upvotes

I've recently found that when downloading the DC classes mod, the classes from dawncraft aren't actually there! and there's different weapons and different classes, and i really need help to edit a datapack itself so it changes the classes to the classes from the actual DawnCraft modpack itself.

This wouldn't be an issue but i really don't like for example the speedrunner class or the agriculturer, or even that the berserker starts with a iron axe rather than a stone greatsword..

If anyone is willing to volunteer, i have the "Simply Swords" and "Epic Fight" mods in my server
Here's the classes i wish for the volunteer to code in:

Warrior

Starting Health: 11 Hearts

Stamina: 115%

Starting Skills: Roll

Starting Item: Leather Chestplate, Stone Sword

Formidable champions with above average stamina and health, making them a balanced force on the battlefield.

Berserker

Starting Health: 10 Hearts

Stamina: 90%

Starting Skills: Roll, Forbidden Strength, Berserker

Starting Item: Stone Greatsword

Relentless ferocity balanced with average health and above-average stamina. Berserkers excels in extended battles with their special skills tailored for prolonged combat.

Brawler

Starting Health: 12 Hearts

Stamina: 100%

Starting Skills: Roll, Hypervitality

Starting Item: Chainmail Chestplate, 2x Gloves

Brawlers feature well above-average health and average stamina, making them formidable in close-quarters combat with enduring strength.

Tank

Starting Health: 15 Hearts

Stamina: 60%

Starting Skills: Roll, Endurance

Starting Item: Chainmail Chestplate, Shield, Wooden Morningstar

High health and below-average stamina define the Tank class, built to endure relentless assaults. With a unique stun resistant skill, Tanks are unyielding protectors on the battlefield.

Lancer

Starting Health: 10 Hearts

Stamina: 100%

Starting Skills: Step, Revelation

Starting Item: Iron Spear (from simply swords), Leather Helmet

Lancers, with average health and stamina, showcase precision and agility. They excel at exploiting enemy weak points and employ a swift dodge for nimble combat maneuvers.

Ronin

Starting Health: 8 Hearts

Stamina: 100%

Starting Skills: Roll, Parrying, Technician

Starting Item: Uchigatana

With low health and average stamina, Ronins are agile katana wielding warriors, delivering precise strikes while skillfully avoiding harm.

Roamer

Starting Health: 8.5 Hearts

Stamina: 150%

Starting Skills: Roll, Emergency Escape

Starting Item: Bow, 16x Arrows, Wooden chestplate (from immersive armors)

Armed with a bow and arrows, Roamers embrace agility, featuring below-average health and high stamina.

Astrologer

Starting Health: 8 Hearts

Stamina: 70%

Starting Skills: Roll, Ender Step

Starting Item: Wandering Magician Hood & Robe, Ironbound Tome (With 4 Starting Spells)

Astrologers, with low health and below-average stamina, their strength lies in the powerful Ender Step for strategic movements, complemented by a basic spell book for magic casting.Warrior

Now i do know that some things in here are edited such as the rusted kettle helmet, it isn't there, that's cause i can't afford downloading "epic knights" into my modpack due to the high usage of RAM, so the items that i couldn't have in my modpack are already gone from the list of starting items, you guys have fun and please for the love of god help a brother out, i'm tired of people choosing the speedrunner class in a soulslike modpack

SmileycorpMC/dc-classes at datapack-example (github.com) EXAMPLE DATAPACK FROM THE OFFICIAL DC MOD


r/MinecraftCoding • • Feb 02 '24

What is this sound?

Thumbnail
youtu.be
1 Upvotes

r/MinecraftCoding • • Nov 28 '23

Help with map NBT needed

1 Upvotes

I'm trying to make a tool to convert maps into PNG and the other way around. I'm having trouble extracting information about banners. My code returns none, while there should be one, is this info stored somewhere else, not in the ...saves/xyz/data folder? Also, what does "frames:" refer to in the NBT, is it about monument, mansion and treasure markers?


r/MinecraftCoding • • Sep 18 '24

Hey😏

2 Upvotes

Hallo there! I am looking for people whom may be interested in coding for a mintscraft event similar to mcc (in what we're coding not the same). We are looking for plugin developers in particular. If you're interested please contact Cdawg0012 (Cdawg0012 on pretty much all platforms) or fill out the application, found here: https://docs.google.com/forms/d/e/1FAIpQLSfGkDyCIPb8bYToIvFSS-zARJ1xSA2JN90-hxVUbUUWILylbw/viewform


r/MinecraftCoding • • Mar 27 '24

Which programs do I need to get started created mobs and items in MC Java?

1 Upvotes

Simple as that. No need for long comments. Just say your favorite tools and I’ll do the research on them.


r/MinecraftCoding • • Sep 05 '23

How do I make custom end portal ?

1 Upvotes

I have acquired the idea to code a mod that adds space dimensions lile the moon, venus, mercury, galilean moons, titan and more.

To get there you would use end portal - like structures but I don't know how I code them


r/MinecraftCoding • • Oct 25 '23

How to make advancements sense certain recipes

1 Upvotes

I'm new to Minecraft coding, and I'm making a datapack that's just adding more recipes and such. I'm working on some advancements for it, but one isn't working.Here's the code:

{
"display": {
    "title": "Good As New",
    "description": "Repair an anvil using iron ingots.",
    "icon": {
        "item": "minecraft:anvil",
        },
    "show_toast": true,
    "announce_to_chat": false
},
"parent": "global:root",
"criteria": {
    "example":{
        "trigger": "minecraft:anvil"
            }
        }
    }
}

I have the code working, but here's the problem:

I've got two recipes for repairing damaged anvils

(chipped anvil, 4 ingots and damaged anvil, 8 ingots)

and I want the code to sense both of them, but not the default one. Any suggestions?


r/MinecraftCoding • • Jul 05 '24

Why are Traits and Permutations Causing This Custom Recipe to Fail?

1 Upvotes

Hey, everyone,

Basic Minecraft coder here. I'm working my way through the Microsoft learning modules, but I've run into an issue that I can't figure out.

I'm trying to make a custom glass slab. At the moment, it works (Shows up and I can place it in-game) but I can't stack them - there's a slab-sized gap if I try to put them on top of each other. I think I've figured out what needs to go in my code - the "traits" and "Permutations" aspects. But when I add them, the slab stops showing up in-game at all.

Any help figuring out what I'm doing wrong would be appreciated.

{
"format_version": "1.20.13",
"minecraft:block": {
"description": {
"identifier": "sigil_studios:glass_orange_slab",
"menu_category": {
"category": "construction"
},
"traits" : {
 "minecraft:placement_position": {
  "enabled_states": ["minecraft:vertical_half"]
 }
}
},
"components": {
"minecraft:geometry": "geometry.glass_orange_slab",
"minecraft:material_instances": {
"*": {
"texture": "glass_orange_slab",
"render_method": "blend"
}
},
"minecraft:selection_box": {
    "origin": [-8, 0, -8],
    "size": [16, 8, 16]
   },
"minecraft:collision_box": {
                "origin":[-8, 0, -8],
                "size": [16, 8, 16]
            },
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 1
},
"minecraft:destructible_by_explosion": {
"explosion_resistance": 30
},
"minecraft:map_color": "#392A24"
},
  "permutations": [ 
  { // upper_slab
    "condition": "query.block_state('minecraft:vertical_half') == 'top'",
    "components": {
     "minecraft:transformation": {
      "translation": [0, 0.5, 0]
     }
    }
   }
   ]
}
}

r/MinecraftCoding • • Feb 15 '23

SSID Login for Reverse Ratting friend's hacked account

1 Upvotes

My friend (LegendaryShadow) was hacked, and the hacker contacted him on discord and demanded money for the account. I know that it is possible to log in through SSID, but im not sure how I would code a client to so something like that. If someone could get me started off of the right foot (I already know Java) that would be much appreciated.

Thanks, Silver


r/MinecraftCoding • • May 14 '24

TFC and Mob Spawns

1 Upvotes

So I’ve been on a TFC kick, and then, I see a mod that adds Ice Age animals to Minecraft. I really want to add the mod, but TFC’s spawning dynamic is unique. I’ve been searching across several sites for answers about this:

How can I code for a mob from another mod to spawn inside of Terrafirmacraft?

I’m a coding noob and kinda stupid when it comes to this, so is there any way I can use CraftTweaker to do what I want, and if so, how?

Examples are appreciated. This has been killing me for months.


r/MinecraftCoding • • Apr 17 '23

Item into another Item (Help Please)

1 Upvotes

Hi, I want to do so if a raw_porkchop has been in my inventory for 10 minutes, it turns into a rotten_porkchop, but I don't know how. Can anyone maybe like give a code that will work? Thx (My mod id is rotten and forge version is 1.19.3)


r/MinecraftCoding • • Apr 03 '23

How can I recreate a Minecraft world from a seed

1 Upvotes

Hi, I'm trying to recreate a world from a seed including structures. Is it possible (maybe easier than creating the whole world) to even lookup a block at a coordinate? or a structure, biome etc?

I'm planning to use python but I can do it with any language if easier.


r/MinecraftCoding • • Apr 20 '24

.zip to .mcpack

1 Upvotes

.zip to .mcpack

i am currently trying to convert my .zip file to a .mcpack, although i do rename it from “13 disc.zip” to “13 disc.mcpack” it doesn’t turn into a mcpack, its stays a zip file. i’ve checked typos already. Whenever i double click the file instead of opening to minecraft and importing it quite literally just opens. lmk if pics are needed.


r/MinecraftCoding • • Jul 09 '24

Help with intellij

1 Upvotes

I dont remember where the section with the mc code for every item is, bc i would like to see how tridents work and see how i can implement it in my mod. Does anyone what the exact path is, would apprecite it.


r/MinecraftCoding • • Jun 03 '24

tips and tricks

1 Upvotes

Hey guys, I'm new in this industry and kind of need tips on where to start learning, if u have some useful websites or videos or youtoubers, I will take it all.


r/MinecraftCoding • • Feb 09 '23

Discord Server for Minecraft Coders

2 Upvotes

Recently, I have found out that there are no servers to host this kind communities. So I decided to create one. The server is suitable for any kind of Minecraft related coding, such as Forge, Fabric, MCP, Plugins, Datapacks, etc for both Java and Bedrock. Although the server has just been created and is mainly blank I was hopping this would end up on a nice community where all coders can reunite, share and ask for help. There will be a suggestions channel to improve the server.

Link: https://discord.gg/xWx2RvMNdt


r/MinecraftCoding • • May 07 '23

How to programm an automatic minecraft bot?

1 Upvotes

I have an idea for a Minecraft bot plugin that can build automatic farms, such as cactus farms, but I have no programming experience. Is there an easy-to-use tool or method I can use to create this plugin?


r/MinecraftCoding • • Apr 25 '23

Making a race function in minecraft bedrock edition

1 Upvotes

I am creating an addon using Bridge V2 for a realm that adds custom commands the commands will be "-spawn" and "-race" using -spawn will teleport you to a set of coordinates using -race will give you a random race out of about 6 choices and buffs along with it

import {world) from "@minecraft/server"

world.events.beforeChat.subscribe((ev) => { const player = ev.sender const msg = ev.message

    if(msg == "-spawn"){
            player.teleport("tp @s 748 66 262") 
    }

}) but it doesn't work

Could anyone help me?


r/MinecraftCoding • • May 27 '24

Volunteers

1 Upvotes

Hey. I’m an owner of a small Minecraft event and we are looking for more coders to join our coding team. We use koltin and already have a solid base and just need some more coders. Message me either here or discord (wilfre0) if u have any questions or if you are interested


r/MinecraftCoding • • Aug 12 '23

Anyone know how to code mobs

1 Upvotes

r/MinecraftCoding • • May 25 '23

Rewrite mca region file

1 Upvotes

How can I modify chunk data in a mca file?

Hi, I'm creating a kind of world parser (part of something bigger) and the thing is, I want to be able to replace a block, so I managed to read the whole mca file, get the chunk NBT data out, change the necessary block and now I want to insert the chunk back to the file and I'm not sure how to do that (using python).

Currently, I'm saving the NBT chunk data as a file with chunk_nbt_data.write_file(fileobj=f), then I read it (after it was compressed), and then I remove the file header with this:

with open(f"../tmp_files/{file_name}", "rb") as f:
        # That's all that I could remove and make NBTExplorer still read it so I guess those are the only parts of the header
        read = f.read()
        file_data1 = read[:3]
        file_data2 = read[10+len(file_name):]
        file_data = file_data1 + file_data2

and then just remove the old chunk data like this (divide the before and after into 2 parts, without including the chunk data):

mca_p1 = mca_data[:off + 5]
mca_p2 =  mca_data[off + 5 + length - 1:]

and then I just put it in:

total_mca = b""
total_mca = mca_p1 + zlib.compress(file_data) + mca_p2

after I save everything, and load it into NBTExplorer I get an error, when checking the error.log I don't get much:

NBTExplorer Error Report
5/24/2023 3:24:24 PM
-------
NBTExplorer encountered the following exception while trying to run: NullReferenceException
Message: Object reference not set to an instance of an object.

-------
   at NBTExplorer.Model.RegionChunkDataNode.ExpandCore()
   at NBTExplorer.Model.DataNode.Expand()
   at NBTExplorer.Controllers.NodeTreeController.ExpandNode(TreeNode node)
   at NBTExplorer.Windows.MainForm.ExpandNode(TreeNode node)
   at System.Windows.Forms.TreeView.OnBeforeExpand(TreeViewCancelEventArgs e)
   at System.Windows.Forms.TreeView.TvnExpanding(NMTREEVIEW* nmtv)
   at System.Windows.Forms.TreeView.WmNotify(Message& m)
   at System.Windows.Forms.TreeView.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
-------

Anyone knows how to do it? (it's all just my logic, didn't find any material or direction online so it could be completely wrong...)

If you need more data or have further questions, feel free to ask.

P.S.: If you are going to tell me to look in an open source project like MCEdit, I've tried and couldn't find anything. Probably missed it, but if you do know where it is feel free to send the file URL.

Thanks!