mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-26 21:28:35 +01:00
Compare commits
4 commits
0a0fc6b4ab
...
99dcd0f1ad
Author | SHA1 | Date | |
---|---|---|---|
99dcd0f1ad | |||
911f68d3b2 | |||
7a18cd29d2 | |||
9f97008323 |
5 changed files with 17 additions and 7 deletions
|
@ -13,7 +13,7 @@ apply plugin: 'net.minecraftforge.gradle'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
version = '38.1'
|
version = '38.2'
|
||||||
group = 'de.ellpeck.naturesaura' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
group = 'de.ellpeck.naturesaura' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
archivesBaseName = 'NaturesAura'
|
archivesBaseName = 'NaturesAura'
|
||||||
|
|
||||||
|
|
|
@ -34,10 +34,11 @@ public final class CommandAura {
|
||||||
source.sendSuccess(Component.literal("Removed aura from area"), true);
|
source.sendSuccess(Component.literal("Removed aura from area"), true);
|
||||||
return 0;
|
return 0;
|
||||||
})))
|
})))
|
||||||
.then(Commands.literal("reset").executes(context -> {
|
.then(Commands.literal("reset").then(Commands.argument("range", IntegerArgumentType.integer(10, 1000)).executes(context -> {
|
||||||
|
var range = IntegerArgumentType.getInteger(context, "range");
|
||||||
var source = context.getSource();
|
var source = context.getSource();
|
||||||
var pos = new BlockPos(source.getPosition());
|
var pos = new BlockPos(source.getPosition());
|
||||||
IAuraChunk.getSpotsInArea(source.getLevel(), pos, 35, (spot, amount) -> {
|
IAuraChunk.getSpotsInArea(source.getLevel(), pos, range, (spot, amount) -> {
|
||||||
var chunk = IAuraChunk.getAuraChunk(source.getLevel(), spot);
|
var chunk = IAuraChunk.getAuraChunk(source.getLevel(), spot);
|
||||||
if (amount > 0)
|
if (amount > 0)
|
||||||
chunk.drainAura(spot, amount);
|
chunk.drainAura(spot, amount);
|
||||||
|
@ -46,6 +47,6 @@ public final class CommandAura {
|
||||||
});
|
});
|
||||||
source.sendSuccess(Component.literal("Reset aura in area"), true);
|
source.sendSuccess(Component.literal("Reset aura in area"), true);
|
||||||
return 0;
|
return 0;
|
||||||
})));
|
}))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class ClientEvents {
|
||||||
if (mc.options.renderDebug && ModConfig.instance.debugText.get()) {
|
if (mc.options.renderDebug && ModConfig.instance.debugText.get()) {
|
||||||
var prefix = ChatFormatting.GREEN + "[" + NaturesAura.MOD_NAME + "]" + ChatFormatting.RESET + " ";
|
var prefix = ChatFormatting.GREEN + "[" + NaturesAura.MOD_NAME + "]" + ChatFormatting.RESET + " ";
|
||||||
List<String> left = event.getLeft();
|
List<String> left = event.getLeft();
|
||||||
if (mc.player.isCreative()) {
|
if (mc.player.isCreative() || mc.player.isSpectator()) {
|
||||||
left.add("");
|
left.add("");
|
||||||
var amount = new MutableInt(IAuraChunk.DEFAULT_AURA);
|
var amount = new MutableInt(IAuraChunk.DEFAULT_AURA);
|
||||||
var spots = new MutableInt();
|
var spots = new MutableInt();
|
||||||
|
@ -187,7 +187,7 @@ public class ClientEvents {
|
||||||
|
|
||||||
// aura spot debug
|
// aura spot debug
|
||||||
ClientEvents.hoveringAuraSpot = null;
|
ClientEvents.hoveringAuraSpot = null;
|
||||||
if (mc.options.renderDebug && mc.player.isCreative() && ModConfig.instance.debugLevel.get()) {
|
if (mc.options.renderDebug && (mc.player.isCreative() || mc.player.isSpectator()) && ModConfig.instance.debugLevel.get()) {
|
||||||
var playerEye = mc.player.getEyePosition(event.getPartialTick());
|
var playerEye = mc.player.getEyePosition(event.getPartialTick());
|
||||||
var playerView = mc.player.getViewVector(event.getPartialTick()).normalize();
|
var playerView = mc.player.getViewVector(event.getPartialTick()).normalize();
|
||||||
var range = mc.gameMode.getPickRange();
|
var range = mc.gameMode.getPickRange();
|
||||||
|
|
|
@ -9,10 +9,14 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"text": "As described in the $(l:creating/on_generating)On Creating Aura$() section, most $(thing)creational devices$() lack the ability to create $(aura) beyond a certain point. The $(item)Creational Catalyst$() easily solves this problem: Placing it directly below any creational device will cause its limit to be lifted, making it able to generate $(aura) far beyond the previously mentioned point.$(br)This comes at no cost in return."
|
"text": "As described in the $(l:creating/on_generating)On Creating Aura$() section, most $(thing)creational devices$() lack the ability to create $(aura) beyond a certain point. The $(item)Creational Catalyst$() easily solves this problem: Placing it directly below any creational device will cause its limit to be lifted, making it able to generate $(aura) far beyond the previously mentioned point.$(br)This comes at no cost in return."
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"text": "While generating $(aura) indefinitely may be an exciting prospect for some magical botanists, it has also recently been discovered that doing so may be of little use due to $(l:intro/aura#fizzling)Aura fizzling$(). This should be kept in mind, and mitigated using a device like the $(l:devices/aura_detector)Aura Detector$()."
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "crafting",
|
"type": "crafting",
|
||||||
"recipe": "naturesaura:generator_limit_remover",
|
"recipe": "naturesaura:generator_limit_remover",
|
||||||
"text": "Crafting the $(item)Creational Catalyst$() using the tokens"
|
"text": "Crafting the $(item)Creational Catalyst$() using the tokens"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,11 @@
|
||||||
{
|
{
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"text": "Similarly, if a draining instrument is placed close to a rich area, it will first drain that area before moving on to draining the area directly around itself.$(p)While this behavior surely sounds complicated, the consensus is that letting the apparatus and $(aura) do their thing for a while seems to be a good approach of analysis, as sometimes $(aura) tends to migrate and move around to balance itself out naturally."
|
"text": "Similarly, if a draining instrument is placed close to a rich area, it will first drain that area before moving on to draining the area directly around itself.$(p)While this behavior surely sounds complicated, the consensus is that letting the apparatus and $(aura) do their thing for a while seems to be a good approach of analysis, as sometimes $(aura) tends to migrate and move around to balance itself out naturally."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"text": "Lastly, and more recently, magical botanists have discovered a behavior not previously observed: $(item)Aura fizzling$(). This behavior seems to occur when $(aura) has spread far enough in all directions to be so distant from the point it originated that it starts slowly $(thing)fizzling out$(). While this does not affect the $(aura) closer to its origin in any way, it may still be something to be aware of, and mitigate using something like the $(l:devices/aura_detector)Aura Detector$().",
|
||||||
|
"anchor": "fizzling"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue