Skip to main content

Questions tagged [minecraft]

Minecraft is a voxel-based sandbox game coded in Java by Mojang where players place and destroy blocks to gain armor, weapons and tools in a randomly generated world.

4 votes
2 answers
259 views

Is it possible to make this Minecraft Bedrock addon script less resource intensive, so that it no longer triggers performance warnings?

Following the notice that block events will be removed in a future update, I have been implementing custom block mechanics (such as crop growth and groundcover spreading) using server-side scripts ...
Quack E. Duck's user avatar
4 votes
1 answer
90 views

How can I make my mini-game simpler and more efficient?

I've recently started to learn Python and the task was to create a "hot or cold" game. They gave me the basic structure for the code and so far so good. But the bonus objective is to find a ...
Spirit's user avatar
  • 43
4 votes
1 answer
354 views

2D Minecraft - infinite chunk system

I am making a 2d minecraft clone for a hobby. Here is my code: 2D_MC.py: ...
coder's user avatar
  • 179
0 votes
1 answer
596 views

Using a RegEx to create a UUID string

I'm writing a Discord bot that sometimes requires a Minecraft account UUID to be looked up so this is the function (and MWE) I have written to do this. ...
Jake's user avatar
  • 131
2 votes
0 answers
272 views

Minecraft Code That Gives Player God Like Abilities

Here's Some Context So I was messing around in Minecraft and decided to make some code that basically makes you god. While making the code and testing it I noticed there were some problems that I didn'...
Boneless Cheese Flame's user avatar
6 votes
1 answer
397 views

Base Class System for splitting a spigot command in subcommands

Related to this question: Spigot Plugin: Generic form of the plugin's main clas I've created a Clan-Plugin, in which I have one "main" command, which is simply ...
monamona's user avatar
  • 475
4 votes
2 answers
906 views

Find minecraft colour codes in string

I've written a simple util-method in my spigot plugin to check if a message contains a valid minecraft colour code. A valid minecraft colour code consists of a &...
monamona's user avatar
  • 475
4 votes
1 answer
375 views

Spigot Plugin: Generic form of the plugin's main class

I have created a lot of spigot plugins in my "career" as a developer for a bunch of Minecraft servers, but every time I start writing a new plugin, I basically "reinvent" the ...
monamona's user avatar
  • 475
2 votes
1 answer
250 views

SafeBlockPopulator to ensure neighboring chunks are generated before population

Bukkit/CraftBukkit/Spigot are Minecraft server extenders that allow for creating and using plugins. A particular type of plugin is a generator, which creates the game world. Generators operate chunk-...
Michael Brandon Morris's user avatar
2 votes
1 answer
101 views

Refactoring coordinates for Minecraft Pi buildings written in Python

I'm fairly new to coding and I wrote this script in Python for a house with a roof in Minecraft Pi. I've found different ways to write the coordinates to make the code base shorter, but I'm wondering ...
DysFunction's user avatar
16 votes
2 answers
2k views

Minecraft block generator

This script is a tool to help minecraft mod development. When you want to add a new block to the game you have to create three json files. This script generates three JSON files in specific locations. ...
Dalton's user avatar
  • 263
-2 votes
1 answer
335 views

Using Reflection to call multiple methods and cast various classes [closed]

I have written the following Reflection code: ...
Joehot200's user avatar
  • 107
1 vote
1 answer
119 views

Building a 64 × 64 particle accelerator frame in Minecraft with a computercraft turtle

I dont think this will work anywhere besides in minecraft with computercraft but it's all correct syntax. I just feel like it has some lines of code I could eliminated somehow and made it a cleaner ...
Donnie's user avatar
  • 13
1 vote
2 answers
870 views

Minecraft resource calculator

I'm writing a basic program that calculates the total base resources needed to craft items in Minecraft. It's intended to be modular for support for modded versions of Minecraft (new items or ...
Hobopowers's user avatar
6 votes
1 answer
621 views

Library for RCON clients

I wrote a library implementing the RCON protocol to automate interaction with Minecraft servers. I know that there are already a couple of implementations out there, but neither I found was convincing ...
Richard Neumann's user avatar

15 30 50 per page