Skip to content

Commit

Permalink
update 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
paulieg626 committed Oct 12, 2020
1 parent 4010c36 commit 3e8d815
Show file tree
Hide file tree
Showing 24 changed files with 82 additions and 110 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Cheat [MindustryBE Mod]

`paulieg626/Cheat`

- Fill the core up to 900kk items!!!

- Spawn units who you want!!!

- [Cheat VK](https://vk.com/mindustry_cheat)
2 changes: 1 addition & 1 deletion mod.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description:"[green]Добавляет разные штуки для читов
author:"[blue]paulieg626"
version:"1.8"
dependencies:[]
minGameVersion: "105"
minGameVersion: 105
15 changes: 9 additions & 6 deletions scripts/blocks/cc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
const cc = extendContent(Wall, "cc", {
const cc = extendContent(Wall, "cc", {});
cc.buildType = () => extend(Building, {
update(){
this.entity.health = Number.MAX_VALUE
c = Vars.state.teams.closestCore(this.getX(), this.getY(), this.team);
var x = this.x;
var y = this.y;
var core = Vars.state.teams.closestCore(x, y, this.team)
var coreBlock = Vars.world.tileWorld(core.x, core.y)
for(y = 0; y < Vars.content.items().size; y++){
i = Vars.content.items().get(y);
if(this.items.get(i) < 900000000){
this.items.add(i, 10000000)
var i = Vars.content.items().get(y);
if(core.items.get(i) < 900000000){
core.items.add(i, 10000000)
}
}
}
Expand Down
115 changes: 60 additions & 55 deletions scripts/blocks/magic.js
Original file line number Diff line number Diff line change
@@ -1,55 +1,60 @@
const magic=extendContent(Wall,"magic", {
add(b, table){
button = table.addImageButton(new TextureRegionDrawable(Vars.content.units().get(b).icon(Cicon.small)), Styles.clearFulli, 50, run(() => {
u = Vars.content.units().get(b);
unit = u.create(this.getTeam());
unit.set(this.drawx(), this.drawy()+8);
unit.add();
})).size(75)
},
buildConfiguration(table){
size = 75;
image = 50;
for(b = 0; b <= Vars.content.units().size; b++){
if(b<Vars.content.units().size){
this.add(b, table);
if(b % 6 == 5){
table.row()
}}else{
table.addImageButton(new TextureRegionDrawable (Core.atlas.find("cheat-unit-all")), Styles.clearTransi, image, run(() => {
for(o = 0; o < Vars.content.units().size; o++){
u = Vars.content.units().get(o);
unit = u.create(this.getTeam());
unit.set(this.drawx(), this.drawy()+8);
unit.add();
}
})).size(size);
}};
table.row();
table.addImageButton(new TextureRegionDrawable (Core.atlas.find("cheat-units")), Styles.clearTransi, image, run(() => {})).size(size);
table.addImageButton(new TextureRegionDrawable (Core.atlas.find("cheat-null")), Styles.clearTransi, image, run(() => {})).size(size);
table.addImageButton(new TextureRegionDrawable (Core.atlas.find("cheat-players")), Styles.clearTransi, image, run(() => {})).size(size);
table.addImageButton(new TextureRegionDrawable (Core.atlas.find("cheat-null")), Styles.clearTransi, image, run(() => {})).size(size);
table.row()
table.addButton("[#ff0000]Kill", run(() =>{
Vars.unitGroup.all().each(cons(unit=>unit.kill()))
})).size(size);
table.addButton("[#00ff00]Heal", run(() =>{
Vars.unitGroup.all().each(cons(unit=>unit.heal()))
})).size(size);
table.addButton("[#ff4040]Kill", run(() =>{
Vars.player.kill()
})).size(size);
table.addButton("[#40ff40]Heal", run(() =>{
Vars.player.heal()
})).size(size);
},
update(){
this.entity.health = Number.MAX_VALUE
}});
magic.solid = true;
magic.configurable = true;
magic.layer = Layer.turret
magic.update = true;
magic.health = 900000000;
magic.itemCapacity=10;
var unitsGroup = [];
var teamsGroup = [];

const m = extendContent(Block, "magic",{
init(){
this.super$init();
unitsGroup = Vars.content.units()
teamsGroup = Team.baseTeams
}
})

m.buildType = prov(() => extend(Building,{
pint: 0,
unitAll: [],
addButtonTeam(i, table){
table.button(new TextureRegionDrawable(Core.atlas.find(m.name + "-" + i)), Styles.clearFulli, 30, run(() => {
this.team = teamsGroup[i]
Vars.player.team(teamsGroup[i])
})).size(40);
},
addButtonUnit(b, table){
table.button(new TextureRegionDrawable(unitsGroup.get(b).icon(Cicon.small)), Styles.clearFulli, 30, run(() => {
this.unitAll.push(b);
})).size(40);
},
buildConfiguration(table) {
for(var i = 0; i < teamsGroup.length; i++){
this.addButtonTeam(i, table)
};
table.row();
for(var b = 0; b < unitsGroup.size; b++){
this.addButtonUnit(b, table);
if(b % 6 == 5){
table.row()
}
};
table.row();
table.button(new TextureRegionDrawable(Core.atlas.find(m.name + "-" +"close")), Styles.clearFulli, 30, run(() => {
Groups.unit.each(cons(unit => unit.kill()))
})).size(40);
table.button(new TextureRegionDrawable(Core.atlas.find(m.name + "-" +"play")), Styles.clearFulli, 30, run(() => {
for(var b = 0; b < this.unitAll.length; b++){
unitsGroup.get(this.unitAll[b]).spawn(this.team, this.spawnX, this.spawnY);
}
this.unitAll = [];
})).size(40);
},
loadTex(){
this.spawnX = this.x;
this.spawnY = this.y;
},
update(tile){
if(this.pint <= 0){
this.loadTex()
this.pint++
}
}
}));
m.update = true;
m.configurable = true;
5 changes: 3 additions & 2 deletions scripts/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//Block

require("blocks/liquid");
require("blocks/power");
require("blocks/wall");
Expand All @@ -16,5 +15,7 @@ require("blocks/item");
//require("units/unit");

print("$$$$$$$$$$$$$$$$$$$");
print("Загружено: 12 скрипта");
print("Загружено: 11 скрипта");
print("Mindustry Cheat Mod");
print("by paulieg626");
print("$$$$$$$$$$$$$$$$$$$");
46 changes: 0 additions & 46 deletions scripts/test.js

This file was deleted.

Binary file added sprites/blocks/boost-top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sprites/blocks/item.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sprites/blocks/liquid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sprites/blocks/magic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sprites/blocks/power.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sprites/blocks/wall.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/icons/magic-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/icons/magic-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/icons/magic-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/icons/magic-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/icons/magic-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/icons/magic-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/icons/magic-close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprites/icons/magic-play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed sprites/icons/null.png
Binary file not shown.
Binary file removed sprites/icons/players.png
Binary file not shown.
Binary file removed sprites/icons/unit-all.png
Binary file not shown.
Binary file removed sprites/icons/units.png
Binary file not shown.

0 comments on commit 3e8d815

Please sign in to comment.