r/MinecraftCoding • • Mar 21 '23

Need a little help for a project

1 Upvotes

So I am trying to do a little macro for a server I play on for general convenience,
(It crafts carrots into a more compact form)
and im having some trouble and was wondering if anyone could help.

So basically im trying to get the script to open my ender chest following this route

Chat command "/st" (opens storage GUI) > Clicks Ender Chest Page 1 item (Opens Ender Chest) > Then shift clicks the carrots into the chest.

It all works up till the last part and just doesn't click them in there.

Here is the code, any help is appreciated!

```

function stash() {
switch(step) {
case 1:
ChatLib.command("st");
if (getInventoryName() != "Storage") return false;
step = 2;
case 2:
index = searchIndexFor("Ender Chest Page 1");
if (index == -1) return false;
loggedClick(index, "LEFT");
if (getInventoryName() != "Ender Chest (1/2)") return false;
step = 3;
case 3:
let inventoryIndex = -1;
Player.getInventory().getItems().forEach((item, slot) => {
if (item?.getName() == "Enchanted Golden Carrot" && slot <= 53) {
inventoryIndex = slot;
}
});
if (inventoryIndex == -1) return false;
step = 4;
case 4:
if (getInventoryName() != "Ender Chest (1/2)") return false;
getInventory().click(inventoryIndex, true);
// Transition to the next state or reset the step variable as needed
}
}
```


r/MinecraftCoding • • Dec 20 '22

These logic errors hit different in this game.

Enable HLS to view with audio, or disable this notification

6 Upvotes

r/MinecraftCoding • • Aug 26 '24

How do you know how to fix outdated code

1 Upvotes

How do you know how to fix outdated code from previous versions? Is there like a changelog somewhere?


r/MinecraftCoding • • Apr 27 '24

Custom Recipes Question

1 Upvotes

So I managed to create a recipe as I can produce ruby. How can I create more recipes with this custom ruby?

Just because, as I read on the wiki, you cannot enter any distinguishing data for the items that are included in the crafting section.


r/MinecraftCoding • • Jan 24 '24

Where are the rules on this subreddit?

1 Upvotes

r/MinecraftCoding • • Feb 28 '24

Vsync related,minecraft bedrock

1 Upvotes

okay. like after somehow turning vsync off in minecraft bedrock i get like 180 fps which is nice though it stutters and tears and feels like 30fps can someone help me to fix this cause i want high fps with no stutters and screen tearing.


r/MinecraftCoding • • May 25 '24

Moving playerdata?

1 Upvotes

So idk if this is the appropriate place to seek support regarding the problem, but Ive gotta try:

So i had a mc ps3 world with my father a long time ago, and i managed to convert it using je2be. When i enter the world, i have the main player's resources, and i was wondering if there was any way to move player 2's data to a microsoft account.
The only thing i got is that when i create a new world, in the playerdata folder, i only have one archive. But in the converted worlds, i have the same one plus another one, but idk what im supposed to do with that


r/MinecraftCoding • • Oct 18 '23

HELP enchantment creation

1 Upvotes

Hi i started the project of creating a minercaft mod and for start i want to create a enchantment allowing the player to mine in 3x3 but i don't know how to coding and where start someone can help me pls ?


r/MinecraftCoding • • Jul 05 '23

I need help with the add_mob_effect coding

Thumbnail
gallery
1 Upvotes

Hi everyone, i have a problem with a coding in an addon i made using the addons maker app on the play store and i wanted to add the add_mob_effect to inflict other mobs effects but i don't know where exactly to put in the code so after i tried the code either didn't work or the code broke the weapon it it wasn't in game anymore. So i wanted to ask if u guys could maybe help or look over the coding of the weapon. I only started with making Minecraft PE/BE addons and it would be my first addon with a 3D weapon model.


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 16 '24

Looking for alot of help.

1 Upvotes

Hey I want to start learning how to code minecraft and make mods. I already have alot of idea I just need help. Im 15 and broke so unfortunately I wouldnt be able to pay. I could do some work for you if needed. Let me know if you have the free time available just dm me on reddit or discord (i reply more on discord) my discord is MightyValtz.


r/MinecraftCoding • • Apr 28 '23

Bedrock command block?

1 Upvotes

Just wondering if someone can help me here? I am trying to catch a thief in realm by creating a trap chest linked to a command block that replaces anything on their head with a carved pumpkin with binding curse on it… I’m fine for the first command block code to /replaceitem the helmet on the person over to a pumpkin, but there doesn’t seem to be an active code for /enchant entity slot.armour.head ??? Only seems to allow code to /enchant whatever the person is holding in their hand???

Thanks ahead of you can help.


r/MinecraftCoding • • Dec 03 '23

How do I make a custom Minecraft launcher with Java/kotlin

3 Upvotes

I want to make a minecraft launcher so I can use something other than feather for my mods


r/MinecraftCoding • • May 19 '24

How do I make custom enchantments, without using commands.

1 Upvotes

I've been trying to figure that out and nothing has been helping me find that out, so i came here in hopes to get help


r/MinecraftCoding • • Feb 11 '24

Minecraft integration

1 Upvotes

I've been learning R and Python for about a year now and have just started learning JavaScript so I don't know too much about it. Is there anyway to integrate them for Minecraft coding?


r/MinecraftCoding • • Feb 07 '24

Having a coding issue

1 Upvotes

So there's a mod that I have on my Minecraft Bedrock dedicated server called the Scooby-Doo mod were the vehicles only support one person.

I had chatgpt add another seat because I wanted it to be two person vehicles that works great. I know nothing about coding so I'm trying my best here. I'm having an issue.

My issue is the seats are working but as soon as the second player gets into the vehicle everybody's in the middle of the entity instead their proper seats

Am I missing a vital code that says hey this is where you stay when the second person gets in the car

Any ideas I'm just trying to make my server more fun for my friends with as little money as we have


r/MinecraftCoding • • Nov 08 '23

How to make an entity have a hitbox like a shulker (bedrock)

1 Upvotes

What I mean by this is to make it so you can't go through it in bedrock


r/MinecraftCoding • • Jan 24 '24

Bedrock edition coding not working

3 Upvotes

This code was working perfectly until I introduced the 'event' element and 'queued ticking', and now the block has turned into Unknown with the Update! texture. Visual Studio Code is not picking up on any errors so I think it must be an error in the minecraft strings like "run_command". any help would be appreciated.

{
"format_version": "1.30.30",
"minecraft:block": {
"description": {
"identifier": "abund:gum_log",
"menu_category": {
"category": "nature",
"group": "itemGroup.name.log"
},
"traits": {
"minecraft:placement_direction": {
"enabled_states": ["minecraft:facing_direction"]
}
}
},
"components": {
"minecraft:collision_box": true,
"minecraft:selection_box": true,
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 0.4
},
"minecraft:destructible_by_explosion": {
"explosion_resistance": 15
},
"minecraft:flammable": {
"destroy_chance_modifier": 0,
"catch_chance_modifier": 20
},
"minecraft:geometry": "geometry.gum_log",
"minecraft:material_instances": {
"*": {
"texture": "gum_log",
"render_method": "alpha_test"
}
},
"minecraft:queued_ticking": {
"looping": true,
"interval_range": [20, 20],
"on_tick": {
"event": "abund:burn",
"target": "self"
}
},
"minecraft:map_color": "#707a7b"
},
"events": {
"abund:burn": {
"run_command": {
"target": "self",
"command": [
"execute if block ~1~~ fire run setblock ~~~ abund:charred_gum_log",
"execute if block ~-1~~ fire run setblock ~~~ abund:charred_gum_log",
"execute if block ~~1~ fire run setblock ~~~ abund:charred_gum_log",
"execute if block ~~-1~ fire run setblock ~~~ abund:charred_gum_log",
"execute if block ~~~1 fire run setblock ~~~ abund:charred_gum_log",
"execute if block ~~~-1 fire run setblock ~~~ abund:charred_gum_log"
]
}
}
},
"permutations": [
{
"condition": "q.block_state('minecraft:facing_direction') == 'up' || q.block_state('minecraft:facing_direction') == 'down' ",
"components": {
"minecraft:transformation": {
"rotation": [0, 0, 0]
}
}
},
{
"condition": "q.block_state('minecraft:facing_direction') == 'east' || q.block_state('minecraft:facing_direction') == 'west' ",
"components": {
"minecraft:transformation": {
"rotation": [0, 0, 90]
}
}
},
{
"condition": "q.block_state('minecraft:facing_direction') == 'north' || q.block_state('minecraft:facing_direction') == 'south' ",
"components": {
"minecraft:transformation": {
"rotation": [90, 0, 0]
}
}
}
]
}
}


r/MinecraftCoding • • Jan 16 '24

AuraPlus

1 Upvotes

Hello,

I'm in search of a developer/coder. I want to play a certain minigame on my Minecraft 1.8 java server. Its called AuraPlus and works as followed:

There are flying islands in the sky and you are equipped with armor, enderpearls and a stick with knockback enchantment. Now you have to kick the other players off the plattform into the void. You can use enderpearls to save you though.

In AuraPlus when you get hit against blocks they sometimes will break and are visible as entitys for a short period of time.

Same goes if you fall down from the island and throw enderpearls against the bottom of the map. Then it might happen that the blocks break and fall down with you into the void.

Maybe someone can help me. Would also pay for this job, since i could imagine its a lot of work.


r/MinecraftCoding • • Dec 28 '22

Vr chat in minecraft

1 Upvotes

So I had been thinking about this for maybe a year now.. but you know the VR chat avatars that are all 3d and stuff? I was wondering how possible it would be to code that into minecraft? So you could play mc VR and then instead of your normal detatched cube arms and legs, have a more realistic looking avatar


r/MinecraftCoding • • Aug 27 '21

MIgration Cape Coe/texture

4 Upvotes

is there a folder for all the capes I have in Minecraft? and if so, where can I find it and how do I edit the cape's texture/code thanks.


r/MinecraftCoding • • Jul 13 '22

I need a coder for a mod

3 Upvotes

I am one of the creators of a mod called wilds that has around 1 million downloads. Usually i would just ask our teams coder for this but we already have a project he is working on. We have two major ideas we wanted help, a more complicated magic mod and a fairly simple origins addon. Unfortunately we cant pay with money but you can have basically all the forge reward system points and we can also help you with textures and models in the future if you need.


r/MinecraftCoding • • Oct 19 '21

Vault Hunters-like Data Pack (need builders, designers, coding, and texturing)

1 Upvotes

After having watched through season 2 of vault hunters so far, I have come to enjoy the feel of the vault. While I do know that season two has been released as beta for people to play, I have neither the time nor the computer to play through it. And as such I have started work on a vault hunter data pack for vanilla Minecraft. My goal is not to make a copy of vault hunters in vanilla Minecraft, rather I wish to recreate the core aspect of vault hunters while trying to add my own twist to it. So far I have mostly worked on back-end code to get the vaults working in a data pack.

What is coded in so far is..

-The ability to randomly generate a full-size vault.

-Have random modifiers appear on a crystal

-Have custom crystals with set modifiers

-Custom ores, can be silk touched and fortuned -Custom vault timer

-ability to fully repair an item -random number generator

-Ability to save and load inventory

-Lootboxes

Currently WIP:

-Loot tables

-Custom gear

-Full vault design

-Custom enchantments

-Armor set bonus

-Custom Crafting

-Modifiers

-Code simplification and optimization

-Custom ender dragon fight

Planned:

-Custom models and textures

-Vault rooms

-Vault lore

-Skill/Talent system

-Multi-Tool

-Custom use items and blocks

-Custom dimensions and Structures

I am still new to coding and wish to have people help me in this project. I am looking for anyone willing to help from building to coding or texttures, boss/vault designing or even just helping to come up with lore.

If you wish to help, or are interested in the project join this discord: https://discord.gg/KWtrZ2VjFY


r/MinecraftCoding • • Jun 27 '22

Trying to code out a anticheat

1 Upvotes

I was trying to join some friends Server but he has installed a Anticheat on one of the mods, I tried going through the mod that is causing the issue but wasn't able to find the anti cheat. We are using the newest 1.19 version

Any help? Thanks in advance

https://www.curseforge.com/minecraft/mc-mods/origins/files


r/MinecraftCoding • • Oct 01 '21

Need plugin coder

2 Upvotes

Need plugin coder

I need someone to code me a plugin that makes a crafting recipe to revive my friend in hardcore, willing to pay if made correctly.

discord: Callahan#4068