### Author Topic: Chalex's MC2D Mod  (Read 249 times)

0 Members and 1 Guest are viewing this topic.

#### chalex

• LV0 Newcomer (Next: 5)
• Posts: 4
• Rating: +0/-0
##### Chalex's MC2D Mod
« on: May 22, 2021, 11:06:16 am »
It's a real shame not many people are aware of these updates, they're great.

I was working on a quality of life mod and I didn't even know about the superior 1.0 pre 2 version until I was basically finished.
Anyway, I present to you..
Chalex's Minecraft 2D Enhanced Controls Mod!

NOTICE: THERE ARE TWO VERSIONS, 0.13 AND 1.0 PRE 2. 0.13 USES THE OLD VERSION OF MC2D AND HAS LESS FEATURES!!

"Fixes":
- The unused hamster block acts as a super light source, with a strength of 1000. This is a bad way to fix the lighting problems on emulator, but alas, I am bad at coding.

Quality of life improvements:
- New control schemes!:
1: Old controls with enter placing and destroying
2: Old controls with (-) placing and enter destroying
4: Controls scheme 2 but numpad moves Steve and touchpad moves cursor (this is the one I recommend!)
- Control schemes 3&4 also have wasd and space mappings to make pc play intuitive
- Unused hamster block can be crafted...
- Updated a few other things too that I presumably forgot about

Other improvements:
- New splash text? idk

Future:
- I intend on making new craftable blocks as soon as I can understand how to make a graphic
- New tree types maybe too
- Relatively simple stuff honestly I'm only 15 perhaps something more drastic when I have experience
« Last Edit: May 22, 2021, 11:48:35 am by chalex »
Wow! I am working on:
that's amazing!
mineraft...i cant even spell

#### chalex

• LV0 Newcomer (Next: 5)
• Posts: 4
• Rating: +0/-0
##### Re: Chalex's MC2D Mod
« Reply #1 on: May 23, 2021, 05:34:36 pm »
New update!
I am releasing the v2 version Chalex's MC2D Mod!

Textures look bad due to being taken with an emulator!! They look crisp on hardware!
A showcase of all the new blocks!

Strongholds now have a 1 in 10 chance of generating in place of dungeons!

Fixes:
- Hamster changed to glowstone
- A few crashes fixed

New!:
- Strongholds generate in place of 1/10th of a dungeon! They contain an end portal and some stairs. Once I manage to make a new dimension I might even be able to implement the End
- New stone brick block types!:
- Stone Bricks (craftable from 4 stone)
- Mossy Stone Bricks (craftable from 1 vine and 1 stone brick)
- Cracked Stone Bricks (craftable by smelting stone bricks)
- Stone Brick Stairs (craftable from 6 stone bricks)
- Other new blocks!
- Vines (obtainable as chest loot and act like ladders)
- Iron bars (craftable from 6 iron)
- End portal frames (not craftable)

Bugs :
- Sometimes the roof of strongholds spit an error. I have no clue why.

Future:
- The end!
- Valuable blocks (block of iron, gold etc)
- Nether Portals to teleport to the "Nether" layer!
- Endermen!
« Last Edit: May 23, 2021, 05:43:57 pm by chalex »
Wow! I am working on:
that's amazing!
mineraft...i cant even spell

#### chalex

• LV0 Newcomer (Next: 5)
• Posts: 4
• Rating: +0/-0
##### Re: Chalex's MC2D Mod
« Reply #2 on: May 29, 2021, 03:08:09 pm »
New update!
I am releasing the v3 version Chalex's MC2D Mod!

Textures look bad due to being taken with an emulator!! They look crisp on hardware!
The photo doesn't do a good job at demonstrating this, I recommend trying it out!

A showcase of all the new features!

Fixes:
- Crashes that I forgot about

New!:
- Endermen! They teleport about 7 blocks away when attacked, and move very fast. They drop 0-1 ender pearls.
- Ender pearls! They are quite buggy because of (my) bad code. They are not game breaking, and the most you can do with them is clip through a 1 block floor. For this reason the bedrock layer is now 2 blocks tall. Improving them is currently not my priority.
- Scrolling in the creative menu! I was initially worried about the limit of blocks I would be able to add because of the limited space, so now that is not a worry any more!
- Beds explode in the nether with FIRE! Yes, a very fiery explosion occurs when you try to sleep in the nether... not recommended in a survival world.

Bugs :
- Sometimes the roof of strongholds spit an error. I have no clue why.

Priorities:
- Blazes and nether fortresses (or at least the spawner room)

Future:
- The end!
- Valuable blocks (block of iron, gold etc)
- Nether Portals to teleport to the "Nether" layer!

« Last Edit: May 29, 2021, 03:14:59 pm by chalex »
Wow! I am working on:
that's amazing!
mineraft...i cant even spell

#### Ryan

• LV0 Newcomer (Next: 5)
• Posts: 1
• Rating: +0/-0
##### Re: Chalex's MC2D Mod
« Reply #3 on: May 31, 2021, 09:13:37 am »
New update!
I am releasing the v3 version Chalex's MC2D Mod!

Textures look bad due to being taken with an emulator!! They look crisp on hardware!
The photo doesn't do a good job at demonstrating this, I recommend trying it out!

A showcase of all the new features!

Fixes:
- Crashes that I forgot about

New!:
- Endermen! They teleport about 7 blocks away when attacked, and move very fast. They drop 0-1 ender pearls.
- Ender pearls! They are quite buggy because of (my) bad code. They are not game breaking, and the most you can do with them is clip through a 1 block floor. For this reason the bedrock layer is now 2 blocks tall. Improving them is currently not my priority.
- Scrolling in the creative menu! I was initially worried about the limit of blocks I would be able to add because of the limited space, so now that is not a worry any more!
- Beds explode in the nether with FIRE! Yes, a very fiery explosion occurs when you try to sleep in the nether... not recommended in a survival world.

Bugs :
- Sometimes the roof of strongholds spit an error. I have no clue why.

Priorities:
- Blazes and nether fortresses (or at least the spawner room)

Future:
- The end!
- Valuable blocks (block of iron, gold etc)
- Nether Portals to teleport to the "Nether" layer!

Hey! I was wondering if you would like some help? I’ve attempted something like this in the past, but I couldn’t figure out how to open the code up, but considering someone else is doing it I wanted to help. I’ve been programming for about 3 years now so this shouldn’t be that hard to work with. If you would like some help, you can just reply to me here, but it would probably be easier to email me at [email protected] as I will be able to respond quicker there. Also, attacking endermen crash your game, check on line 2018 for a null value .

#### Eeems

• Mr. Dictator
• LV13 Extreme Addict (Next: 9001)
• Posts: 6233
• Rating: +318/-36
• little oof
##### Re: Chalex's MC2D Mod
« Reply #4 on: May 31, 2021, 10:37:34 am »
I've split this into it's own topic.
/e

#### chalex

• LV0 Newcomer (Next: 5)
• Posts: 4
• Rating: +0/-0
##### Re: Chalex's MC2D Mod
« Reply #5 on: May 31, 2021, 05:03:36 pm »
Hey! I was wondering if you would like some help? I’ve attempted something like this in the past, but I couldn’t figure out how to open the code up, but considering someone else is doing it I wanted to help. I’ve been programming for about 3 years now so this shouldn’t be that hard to work with. If you would like some help, you can just reply to me here, but it would probably be easier to email me at [email protected] as I will be able to respond quicker there. Also, attacking endermen crash your game, check on line 2018 for a null value .

Editing the code is easy providing you have the student software, you just need to click Insert>Script Editor>Edit Script. I don't know anything about coding myself honestly, I coded for 5 years in Scratch and now that I'm older I'm translating my knowledge into written code (which meant stopping the use of hardcoding, endless if statements and endless loops - but I at least understand the fundamentals). This is really the first time I've touched real programming and for that reason, I feel I'd frustrate both of us if we both worked on it. You are however free to try and patch something better from my code, but I also don't want to feel guilty of throwing garbage to you to fix .

And the error on line 2018, that has something to do with teleportation.

Code: [Select]
function AbstractMob:teleport(x, y, distanceX, distanceY, rangeX, rangeY)    local searchX=0    local searchY=-100    local searchNum=math.random(0,1)    local attempts=0    while (world[searchX][searchY].solid and world[searchX][searchY+1].solid) and attempts<=9999 do --LINE 2018        searchNumX=math.random(0,1)        searchNumY=math.random(0,1)        if searchNumX==0 then searchX=math.random(x-distanceX-rangeX, x-distanceX)        else searchX=math.random(x+distanceX, x+distanceX+rangeX)        end        if searchNumY==0 then searchY=math.random(y-distanceY-rangeY, y-distanceY)        else searchY=math.random(y+distanceY, y+distanceY+rangeY)        end        attempts=attempts+1    end    if attempts<=9999 then        return searchX, searchY+1    else        return x,y,2    endendThe code checks random areas for an area to teleport to within a certain range and if its in a hole for example the attempts var exceeds 9999 then it doesn't move.
I don't think I can reproduce that error as well, perhaps you remember the circumstances that it occured in? I never got an error like that in my testing.
I've split this into it's own topic.
Thank you
Wow! I am working on:
that's amazing!
mineraft...i cant even spell